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 page
1
Specifies limit
1000
Specifies from
Specifies to
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 [
Array [
]
]
data
object[]
data
specifies an array of candle data
specifies close price of the candle
60778.21000000
specifies the opening date and time of candle
2021-01-01 00:00:00
specifies high price of the candle
60778.21000000
specifies low price of the candle
60724.33000000
specifies open price of the candle
60724.33000000
specifies trading volume (base token) of the candle
22.94612000
specifies the start date of the requested data (either from
or to
can be used, but not both)
specifies the number of records per page
specifies the current page of the response
specifies the order of the records
specifies the end date of the requested data (either from
or to
can be used, but not both)
[
{
"data": [
{
"c": "60778.21000000",
"d": "2021-01-01 00:00:00",
"h": "60778.21000000",
"l": "60724.33000000",
"o": "60724.33000000",
"v": "22.94612000"
}
],
"from": "string",
"limit": 0,
"page": 0,
"sort": "string",
"to": "string"
}
]
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"
}