Get Candles
Header Parameters
Bearer token issued for your trading account.
Query Parameters
Instrument to return candles for. One instrument per call.
Candle length. M1, M5, M15, and M30 are minutes, H1 and H4 are hours, D1 is one day, W1 is one week, and MN1 is one month. An unsupported value returns 400 error://trader-api/candle-interval-invalid.
M1M5M15M30H1H4D1W1MN1Start of the time range.
End of the time range.
Number of candles to return. Defaults to 100, maximum 750.
Response
OK
Response Attributes
Instrument the candles belong to.
Interval the candles were aggregated at.
M1M5M15M30H1H4D1W1MN1The candles, ordered from oldest to newest.
Show child attributes
error://trader-api/trading-validation-failed, error://trader-api/candle-interval-invalid
Response Attributes
The request path with the actual identifiers filled in, without query parameters.
The HTTP status code, the same as the response status.
A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.
error://trader-api/trading-validation-failederror://trader-api/candle-interval-invalidA short, human-readable name of the error. Several types can share the same title.
A description of this particular occurrence. The wording can change, so never parse it or base logic on it.
Extra information as key-value pairs.
error://trader-api/unauthorized
Response Attributes
The request path with the actual identifiers filled in, without query parameters.
The HTTP status code, the same as the response status.
A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.
error://trader-api/unauthorizedA short, human-readable name of the error. Several types can share the same title.
A description of this particular occurrence. The wording can change, so never parse it or base logic on it.
Extra information as key-value pairs.
error://trader-api/forbidden
Response Attributes
The request path with the actual identifiers filled in, without query parameters.
The HTTP status code, the same as the response status.
A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.
error://trader-api/forbiddenA short, human-readable name of the error. Several types can share the same title.
A description of this particular occurrence. The wording can change, so never parse it or base logic on it.
Extra information as key-value pairs.
error://trader-api/symbol-not-found
Response Attributes
The request path with the actual identifiers filled in, without query parameters.
The HTTP status code, the same as the response status.
A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.
error://trader-api/symbol-not-foundA short, human-readable name of the error. Several types can share the same title.
A description of this particular occurrence. The wording can change, so never parse it or base logic on it.
Extra information as key-value pairs.