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
1dSpecifies from
Specifies to
Page number
1Page size
1000Possible values: [asc, desc]
Specifies sort
ascHeader 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.94612specifies close price of the candle
60778.21specifies the opening date and time of candle
specifies high price of the candle
60778.21specifies low price of the candle
60724.33specifies open price of the candle
60724.33specifies 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"
}