Challenge: Automated Market Impact Report
Tâche
Swipe to start coding
Automate the process of generating a simple market impact report for a given stock symbol using real financial data.
- Complete the
market_impact_report(symbol)function. - Use the provided
fetch_market_data(symbol)function to retrieve the last 5 business days of closing prices and volume for the given stock symbol. - Calculate the following metrics from the data:
- The average closing price over the period;
- The total trading volume over the period;
- The maximum closing price over the period.
- Return a dictionary with keys
'average_close','total_volume', and'max_close', with their corresponding computed values. - Do not modify the
fetch_market_datafunction.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 7.14
Challenge: Automated Market Impact Report
Glissez pour afficher le menu
Tâche
Swipe to start coding
Automate the process of generating a simple market impact report for a given stock symbol using real financial data.
- Complete the
market_impact_report(symbol)function. - Use the provided
fetch_market_data(symbol)function to retrieve the last 5 business days of closing prices and volume for the given stock symbol. - Calculate the following metrics from the data:
- The average closing price over the period;
- The total trading volume over the period;
- The maximum closing price over the period.
- Return a dictionary with keys
'average_close','total_volume', and'max_close', with their corresponding computed values. - Do not modify the
fetch_market_datafunction.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 4
single