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
exchange stringrequired
Specifes exchange
Example: binance
pool stringrequired
Specifies pool
Example: 0x
interval string
Default value: 1d
Specifies interval
Example: 1d
page string
Default value: 1
Specifies page
Example: 1
limit string
Default value: 1000
Specifies limit
Example: 1000
from string
Specifies from
Example: 2021-01-01
to string
Specifies to
Example: 2021-01-01
sort string
Possible values: [asc
, desc
]
Default value: asc
Specifies sort
Example: asc
Header Parameters
X-DTMX-APIKEY stringrequired
Your DataMaxi+ API key
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
c string
specifies close price of the candle
d string
specifies the opening date and time of candle
h string
specifies high price of the candle
l string
specifies low price of the candle
o string
specifies open price of the candle
v string
specifies trading volume (base token) of the candle
[
{
"c": "60778.21000000",
"d": "2021-01-01 00:00:00",
"h": "60778.21000000",
"l": "60724.33000000",
"o": "60724.33000000",
"v": "22.94612000"
}
]
Bad Request
- 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...