Data
GET/api/v1/cex/candle
Get historical candle data for a given exchange
, symbol
, interval
and market
.
Request
Query Parameters
exchange stringrequired
Specifes exchange
Example: binance
market string
Possible values: [spot
, futures
]
Specifies market
Default value:
spot
Example: spot
symbol stringrequired
Specifies symbol
Example: BTC-USDT
interval string
Specifies interval
Default value:
1d
Example: 1d
page string
Page number
Default value:
1
Example: 1
limit string
Page size
Default value:
1000
Example: 1000
from string
Specifies from
Example: 2021-01-01
to string
Specifies to
Example: 2021-01-01
sort string
Possible values: [asc
, desc
]
Specifies sort
Default value:
asc
Example: asc
Header Parameters
X-DTMX-APIKEY stringrequired
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
c number
specifies close price of the candle
Example:
60778.21
d integer
specifies the opening date and time of candle
h number
specifies high price of the candle
Example:
60778.21
l number
specifies low price of the candle
Example:
60724.33
o number
specifies open price of the candle
Example:
60724.33
v number
specifies trading volume (base token) of the candle
Example:
22.94612
exchange string
interval string
limit integer
market string
page integer
sort string
symbol string
{
"data": [
{
"c": 60778.21,
"d": 0,
"h": 60778.21,
"l": 60724.33,
"o": 60724.33,
"v": 22.94612
}
],
"exchange": "string",
"interval": "string",
"limit": 0,
"market": "string",
"page": 0,
"sort": "string",
"symbol": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Loading...