Market Data Endpoints

Get depth

get

Get order book by pool id

Query parameters
pool_idstringRequired

pool_id

precisionstringOptional

0.00000001 ~ 10000

limitintegerOptional

limit

Responses
200
order depth
application/json
get
GET /api/v1/depth HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
200

order depth

{
  "data": {
    "asks": [
      [
        "text"
      ]
    ],
    "bids": [
      [
        "text"
      ]
    ],
    "pool_id": 1,
    "precision": "text",
    "timestamp": 1
  }
}

Get kline data

get

Get kline data by pool id and interval

Query parameters
pool_idstringRequired

pool id

intervalstring · enumRequired

interval

Possible values:
startintegerOptional

start timestamp

endintegerOptional

end timestamp

Responses
200
kline data
application/json
get
GET /api/v1/klines HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
200

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

get

Get latest trades

Query parameters
pool_idstringOptional

pool_id

limitintegerOptional

limit count

Responses
200
trade list
application/json
get
GET /api/v1/latest-trades HTTP/1.1
Host: api-v1.1dex.com
Accept: */*
200

trade list

{
  "data": [
    {
      "buyer": "text",
      "pool_id": 1,
      "price": "text",
      "quantity": "text",
      "seller": "text",
      "side": "buy",
      "traded_at": "text"
    }
  ]
}

Last updated