DEV Community

VS
VS

Posted on

Yahoo Finance API Tutorial

Yahoo Finance API is a robust API that offers stock quotes, press releases, financial reports, and original content. It also offers online financial management tools. Developers can use Yahoo finance to query financial summaries, stock quotes, movers, and price charts. Even though there is no official Yahoo Finance, an unofficial version of yahoo finance api is available. This API offers the following four endpoints.

  1. market/get-summary
  2. market/get-movers
  3. market/get-quotes
  4. market/get-charts

Let's see what these endpoints have to offer.

get-summary endpoint allows you to get the real-time live market summary information in a specific region at that given time.

get-movers endpoint retrieves the day’s gainers, losers, and actives within a given region. For each category, the endpoint returns totals, specific quotes, and other information for that region.

get-quotes endpoint returns all relevant information for a specific stock quote or groups of stock quotes specified by symbol. For each quote this endpoint returns.

  • language
  • region
  • quote type
  • exchange
  • market
  • post market information
  • regular market information

get-charts endpoint returns data for visualizing a chart for a specific symbol and its comparisons. The data includes trading periods, timestamps, comparisons, and more to help draw out charts.

Yahoo Finance API can be used in the following languages.

  • NodeJS
  • PHP
  • Python
  • Ruby
  • Java
  • Objective-C
  • .NET
  • cURL

Top comments (0)