Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Tickers are CODE.EXCHANGE (AAPL.US); for US stocks the .US suffix may be omitted on EOD requests.
- Output is CSV unless you send fmt=json (fundamentals is JSON only).
- Free plan: 20 calls a day with one year of data; each request costs API calls and failed requests can still be billed.
- The demo token (api_token=demo) works on six tickers: AAPL.US, TSLA.US, BTC-USD.CC, VTI.US, AMZN.US, EURUSD.FOREX.
Endpoints
Get end-of-day prices
- One symbol per request; with no dates the whole history comes back.
- An unrecognised fmt, period or order is silently replaced by its default instead of failing, so validate them.
- A ticker not carried answers 404 and still costs one call.
Get a delayed quote
- Stocks are delayed 15 to 20 minutes, forex about 1 minute. open, high, low and volume describe the session so far; only close moves.
Search tickers
- The demo token does not work for search; use a real key.
Get fundamentals
- JSON only. The full payload for a stock is large; use filter to narrow it.