Returns data from the [stocks] table.
This table provides adjusted and unadjusted EOD stock prices for more than 20,000 US public companies. The data includes:
For more information on the dataset and the available indicators, please review the stocks table on the Data Explorer page.
The table is queried via the following endpoint
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key
The queries are authenticated and filtered using query parameters. A query parameter specifies a particular option or filter for the data to be returned. Examples of query parameter include the data format to be returned (format), the table columns to return (fields) or a filter to be applied (tablename). These are appended to the endpoint above, following a ?. The most important of these is your API key (apiKey) which is used to authenticate you. Without a valid API key, results will not be returned.
The stocks table supports the following query parameters.
Parameter | Description | Default | Examples |
---|---|---|---|
format | The format of the results to be returned. | csv | format=json |
from | Specifies the filing date from which to return data. | 30 days ago | from=2023-08-01 |
to | Specifies the filing date to return data until. | prior day | to=2023-08-31 |
fields | The fields (table columns) to return. | all | fields=ticker,date,close |
lastupdated | Specifies the last date on which a record was updated. This can be used to retrieve recently updated records. | lastupdated.gte=2023-09-31 | |
ticker | Returns results for the specified ticker. Multiple tickers should be separated with a comma(,). | all | ticker=TSLA |
limit | The number of records to return. | 10000 | limit=100000 |
skip | The number of results to skip before returning data. | 0 | skip=10000 |
sort | The field used to sort the data and the sort method (asc/desc). | date.desc | sort=close.asc |
Return all price data for a ticker
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key&format=csv&ticker=AAPL
Return all price data for multiple tickers
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key&format=csv&ticker=AAPL,TSLA
Return price data that has been updated since a specified date
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key&format=csv&lastupdated.gte=2023-08-01
Return all price data for a date range
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key&format=csv&from=2023-08-01&to=2023-08-31
Return specific columns from price data for a ticker in a date range sorted by volume
https://api.findl.com/v1.0/data/stocks?apiKey=test-api-key&format=csv&ticker=AAPL&from=2023-08-01&to=2023-08-31&fields=date,open,volume&sort=volume.desc
Copyright © findl 2024. All rights reserved.