Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Automated Market Impact Report | Retrieving and Reporting Financial Data
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Accountants

bookChallenge: Automated Market Impact Report

Tarea

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_data function.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Automated Market Impact Report

Desliza para mostrar el menú

Tarea

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_data function.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

some-alt