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

bookChallenge: Automated Market Impact Report

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 4
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

Can you explain that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Automated Market Impact Report

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 4
single

single

some-alt