Data API / Financial Data / Prices
Get historical stock price data
Historical OHLCV bars for one stock. All four of ticker, interval, start_date and end_date are required — there is no trailing-window shortcut. interval is one of day, week, month or year. Each bar carries open, close, high, low, volume and time, wrapped in a prices array alongside the echoed ticker. Use it to chart or to measure a move across a known window. For just the latest price use get_financial_prices_snapshot.
Параметры
запрос
tickerstringОбязательныйThe stock ticker symbol (e.g. AAPL, MSFT).
intervalstringОбязательныйДопустимые значения: day · week · month · year
The time interval for the price data.
start_datestringОбязательныйThe start date for the price data (format: YYYY-MM-DD).
end_datestringОбязательныйThe end date for the price data (format: YYYY-MM-DD).
Пример запроса
curl -G "https://openapi.felo.ai/v1/beta/financial/prices" \
--data-urlencode "ticker=<string>" \
--data-urlencode "interval=<string>" \
--data-urlencode "start_date=<string>" \
--data-urlencode "end_date=<string>" \
-H "Authorization: Bearer $FELO_API_KEY"Ответ
Поля ответа
pricesobject[]НеобязательныйopennumberНеобязательныйThe open price of the ticker in the given time period.
closenumberНеобязательныйThe close price of the ticker in the given time period.
highnumberНеобязательныйThe high price of the ticker in the given time period.
lownumberНеобязательныйThe low price of the ticker in the given time period.
volumeintegerНеобязательныйThe volume of the ticker in the given time period.
timestringНеобязательныйThe human-readable time format of the price in UTC.
time_millisecondsnumberНеобязательныйThe timestamp of the price in milliseconds since epoch.
next_page_urlstringНеобязательныйThe URL to the next page of results.