Intro
The Market data API tracks stocks listed in the S&P 500 or NASDAQ.
It provides end of day price data from 2000 onwards.
New Feature: Use the range parameter for efficient server-side filtering. This automatically optimizes data points based on the time period you need, reducing bandwidth and improving performance.
Price
example: http://apiii.online/api/market-data/v1/historical-prices?symbol=AAPL&range=year
Params
Param | Required | Type | Description |
---|---|---|---|
symbol | true | string | Stock symbol |
range | false | string | Predefined time ranges for efficient filtering: all - Last 10 years (monthly data points) 5years - Last 5 years (monthly data points) year - Last 1 year (every 3rd day) month - Last 1 month (daily data points) Default: 5years |
from | false | string | Date in format: YYYY-MM-DD Default: 1 year ago |
to | false | string | Date in format: YYYY-MM-DD |
Examples
Using range parameter (recommended):
http://apiii.online/api/market-data/v1/historical-prices?symbol=AAPL&range=year
Using from/to parameters:
http://apiii.online/api/market-data/v1/historical-prices?symbol=AAPL&from=2023-01-01&to=2024-01-01
Range Parameter Examples
Returns
Dividend
example: http://apiii.online/api/market-data/v1/dividend?symbol=AAPL
Params
Param | Type | Description |
---|---|---|
symbol | string | Stock symbol |