price-history
GET/scrappy/markets/v1/price-history1 credit / call
Open, high, low, close, and volume bars, daily or intraday, oldest first.
Daily bars are recorded once a day, five years back, through yesterday in New York from 05:00 there. An earlier start is read on every call. An intraday bar is served from 2 minutes after it closes, or later where the exchange's prices are delayed. Intraday bars reach back 1 day at 1min, 7 days at 5min, 28 days at 15min, 21 days at 30min and 84 days at 1hour.
Parameters
- symbol
- required · a ticker symbol, or a currency pair such as USDCNY
- interval
- optional · 1day when omitted, or 1min, 5min, 15min, 30min or 1hour, which take both from and to
- from
- optional · ISO date, inclusive; for daily bars, five years before the end when omitted
- to
- optional · ISO date, inclusive
Request
curl "https://api.sfaie.com/scrappy/markets/v1/price-history?symbol=AAPL" \
-H "Authorization: Bearer $SFAIE_API_KEY"Response
{
"data": [
{
"date": "2024-12-30",
"start": "2024-12-30T05:00:00.000Z",
"open": 205.6,
"high": 208.4,
"low": 205.1,
"close": 207.25,
"volume": 38400000
},
{
"date": "2024-12-31",
"start": "2024-12-31T05:00:00.000Z",
"open": 208.1,
"high": 211.9,
"low": 207.8,
"close": 210.4,
"volume": 41200000
}
]
}Try it
a ticker symbol, or a currency pair such as USDCNY
1day when omitted, or 1min, 5min, 15min, 30min or 1hour, which take both from and to
ISO date, inclusive; for daily bars, five years before the end when omitted
ISO date, inclusive
Sign in to try this endpoint.
Calls are real. Accepted calls cost 1 credit.