Candle
GET/api/v1/dex/candle
Fetch historical candle data for a given chain
, exchange
, pool
and interval
.
Request
Query Parameters
Specifes chain
Specifes exchange
Specifies pool
Specifies interval
1d
Specifies from
Specifies to
Page number
1
Page size
1000
Possible values: [asc
, desc
]
Specifies sort
asc
Header Parameters
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
specifies trading volume (base token) of the candle
22.94612
specifies close price of the candle
60778.21
specifies the opening date and time of candle
specifies high price of the candle
60778.21
specifies low price of the candle
60724.33
specifies open price of the candle
60724.33
specifies trading volume (quote token) of the candle
22.94612
{
"chain": "string",
"data": [
{
"bv": 22.94612,
"c": 60778.21,
"d": 0,
"h": 60778.21,
"l": 60724.33,
"o": 60724.33,
"qv": 22.94612
}
],
"exchange": "string",
"from": "string",
"interval": "string",
"key": "string",
"limit": 0,
"page": 0,
"pool": "string",
"sort": "string",
"to": "string",
"total": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error
specifies the error message
{
"error": "string"
}
Unauthorized
- 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"
}