캔들
GET/api/v1/dex/candle
지정된 chain, exchange, pool, interval의 과거 캔들 데이터를 조회합니다.
요청
쿼리 파라미터
chain stringrequired
Specifes chain
exchange stringrequired
Specifes exchange
pool stringrequired
Specifies pool
interval string
Specifies interval
Default value:
1dfrom string
Specifies from
to string
Specifies to
page integer
Page number
Default value:
1limit integer
Page size
Default value:
1000sort string
Possible values: [asc, desc]
Specifies sort
Default value:
asc헤더 파라미터
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[]
bv number
specifies trading volume (base token) of the candle
Example:
22.94612c number
specifies close price of the candle
Example:
60778.21d integer
specifies the opening date and time of candle
h number
specifies high price of the candle
Example:
60778.21l number
specifies low price of the candle
Example:
60724.33o number
specifies open price of the candle
Example:
60724.33qv number
specifies trading volume (quote token) of the candle
Example:
22.94612exchange string
from string
interval string
key string
limit integer
page integer
pool string
sort string
to string
total integer
{
"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
}
잘못된 요청
- application/json
- Schema
- Example (from schema)
Schema
error string
error specifies the error message
{
"error": "string"
}
인증 실패
- application/json
- Schema
- Example (from schema)
Schema
error string
error specifies the error message
{
"error": "string"
}
서버 오류
- application/json
- Schema
- Example (from schema)
Schema
error string
error specifies the error message
{
"error": "string"
}
Loading...