Documentation
The Questrade API allows developers to create their own fully featured trading and analytical applications through their brokerage account.
REST operations
GET markets/candles/:id
Retrieves historical market data in the form of OHLC candlesticks for a specified symbol.
This call is limited to returning 2,000 candlesticks in a single response.
Request parameters
| Parameter | Type | Description |
|---|---|---|
| Parameterid | Typeinteger | DescriptionInternal symbol identifier. Can occur in the ‘location’ header only. |
| ParameterstartTime | TypeDateTime | DescriptionBeginning of the candlestick range. |
| ParameterendTime | TypeDateTime | DescriptionEnd of the candlestick range. |
| Parameterinterval | TypeEnumeration | DescriptionInterval of a single candlestick. See Historical Data Granularity for all allowed values. |
Response properties
| Property | Type | Description |
|---|---|---|
| Propertycandles | TypeComplex | DescriptionList of Candle records. |
| PropertyNested property, level 2. Candle | TypeComplex | Description |
| PropertyNested property, level 3. start | TypeDateTime | DescriptionCandlestick start timestamp (in ISO format). |
| PropertyNested property, level 3. end | TypeDateTime | DescriptionCandlestick end timestamp (in ISO format). |
| PropertyNested property, level 3. open | TypeDouble | DescriptionOpening price. |
| PropertyNested property, level 3. high | TypeDouble | DescriptionHigh price. |
| PropertyNested property, level 3. low | TypeDouble | DescriptionLow price. |
| PropertyNested property, level 3. close | TypeDouble | DescriptionClosing price. |
| PropertyNested property, level 3. volume | TypeInteger | DescriptionTrading volume. |
Sample request
GET https://api01.iq.questrade.com/v1/markets/candles/38738?startTime=2014-10-01T00:00:00-05:00&endTime=2014-10-20T23:59:59-05:00&interval=OneDaySample JSON response:
{
"candles": [
{
"start": "2014-01-02T00:00:00.000000-05:00",
"end": "2014-01-03T00:00:00.000000-05:00",
"low": 70.3,
"high": 70.78,
"open": 70.68,
"close": 70.73,
"volume": 983609
},
...
]
}Already a Questrade client?
Create your first application using your Questrade account.
Integrate your application with Questrade API
Support
If you are using an api app developed by a third party, you are required to read, understand and accept the end-user license agreement for application program interface. If you are utilizing api access for an api-enabled app you built, you are required to read, understand and accept the Questrade personal application program interface ("api") license agreement ("license agreement"). This agreement can be found below. You may be bound by both agreements.


