get_price_history
Get historical OHLCV price bars for a ticker. US symbols are bare (AAPL, MSFT); TSX symbols use the Yahoo .TO form (RY.TO) or the TSX:RY form. interval is one of 1m,5m,15m,30m,1h,1d,1wk,1mo (default 1d); range is one of 5d,1mo,3mo,6mo,1y,2y,5y,max (default 1y). Returns an envelope whose values contains interval, range, currency, count, and bars (records with an ISO timestamp plus open, high, low, close, volume).
Parameters
| ticker | string | required | |
| interval | string | optional | |
| range | string | optional |
Raw schema
{
"type": "object",
"properties": {
"ticker": {
"type": "string"
},
"interval": {
"type": "string",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"1d",
"1wk",
"1mo"
]
},
"range": {
"type": "string",
"enum": [
"5d",
"1mo",
"3mo",
"6mo",
"1y",
"2y",
"5y",
"max"
]
}
},
"required": [
"ticker"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}