Market Data Endpoints
V2 Aggregated Endpoints (Recommended)
V1 vs V2 Interface Differences
Feature
V1 Interface
V2 Interface
Last updated
Last updated
GET /api/v1/depth?pool_id=text HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
{
"data": {
"asks": [
[
"text"
]
],
"bids": [
[
"text"
]
],
"pool_id": 1,
"precision": "text",
"timestamp": 1
}
}GET /api/v1/klines?pool_id=text&interval=1m HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
{
"data": [
{
"close": 1,
"count": 1,
"high": 1,
"interval": "text",
"low": 1,
"open": 1,
"pool_id": 1,
"timestamp": "text",
"turnover": 1,
"volume": 1
}
]
}GET /api/v1/latest-trades HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
{
"data": [
{
"buyer": "text",
"pool_id": 1,
"price": "text",
"quantity": "text",
"seller": "text",
"side": "buy",
"traded_at": "text"
}
]
}