Candle
GET/api/v1/cex/candle
Fetch historical candle data for a given exchange
, symbol
, interval
and market
.
Request
Query Parameters
Specifes exchange
Possible values: [spot
, futures
]
Default value: spot
Specifies market
Specifies symbol
Default value: 1d
Specifies interval
Default value: 1
Specifies page
Default value: 1000
Specifies limit
Specifies from
Specifies to
Possible values: [asc
, desc
]
Default value: asc
Specifies sort
Header Parameters
Your DataMaxi+ API key
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
specifies close price of the candle
specifies the opening date and time of candle
specifies high price of the candle
specifies low price of the candle
specifies open price of the candle
specifies trading volume (base token) of the candle
[
{
"c": "60778.21000000",
"d": "2021-01-01 00:00:00",
"h": "60778.21000000",
"l": "60724.33000000",
"o": "60724.33000000",
"v": "22.94612000"
}
]
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error
specifies the error message
{
"error": "string"
}