Last updated 8 days ago
Get order book by pool id
pool_id
0.00000001 ~ 10000
limit
GET /api/v1/depth HTTP/1.1 Host: api-v1.1dex.com Accept: */*
order depth
{ "data": { "asks": [ [ "text" ] ], "bids": [ [ "text" ] ], "pool_id": 1, "precision": "text", "timestamp": 1 } }
Get kline data by pool id and interval
pool id
interval
1m
5m
15m
30m
1h
4h
1d
1w
1M
start timestamp
end timestamp
GET /api/v1/klines HTTP/1.1 Host: api-v1.1dex.com Accept: */*
kline data
{ "data": [ { "close": 1, "count": 1, "high": 1, "interval": "text", "low": 1, "open": 1, "pool_id": 1, "timestamp": "text", "turnover": 1, "volume": 1 } ] }
Get latest trades
limit count
GET /api/v1/latest-trades HTTP/1.1 Host: api-v1.1dex.com Accept: */*
trade list
{ "data": [ { "buyer": "text", "pool_id": 1, "price": "text", "quantity": "text", "seller": "text", "side": "buy", "traded_at": "text" } ] }