Candle
GET/api/v1/dex/candle
Fetch historical candle data for a given chain
, exchange
, pool
and interval
.
Request
Query Parameters
chain stringrequired
Specifes chain
Example: kaia_mainnet
exchange stringrequired
Specifes exchange
Example: binance
pool stringrequired
Specifies pool
Example: 0x
interval string
Specifies interval
Default value:
1d
Example: 1d
from string
Specifies from
Example: 2021-01-01
to string
Specifies to
Example: 2021-01-01
page integer
Page number
Default value:
1
Example: 1
limit integer
Page size
Default value:
1000
Example: 1000
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 [
]
chain string
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
from string
interval string
key string
limit integer
page integer
pool string
sort string
to string
total integer
{
"chain": "string",
"data": [
{
"c": 60778.21,
"d": 0,
"h": 60778.21,
"l": 60724.33,
"o": 60724.33,
"v": 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 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...