Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- The free plan allows 60 calls a minute and 30 calls a second overall; some endpoints (candles, international quotes, many fundamentals) need a paid plan and answer 403 otherwise.
- Dates are YYYY-MM-DD and timestamps are UNIX seconds.
- Real-time prices for US stocks only on the free plan.
Endpoints
Get a stock quote
- Response keys are single letters: c current, d change, dp percent change, h high, l low, o open, pc previous close, t timestamp (epoch seconds).
Search symbols
List symbols on an exchange
- Large response for big exchanges.
Get a company profile
- Give exactly one of symbol, isin or cusip. Market cap is in millions of the reporting currency.
Get stock candles
- Only one month of intraday data is returned per call.
- Candles come back as parallel arrays: o, h, l, c, v, t.
- May require a paid plan; a free key can be refused with 403.
Get basic financials
Get earnings surprises
Get company news
- North American companies only.