Oasis Dex

Overview - REST API v1 - REST API v2

GET orders

Retrieve current orderbook for all known markets.

Returns at most 100 orders for each side.

curl -X GET https://api.oasisdex.com/v2/orders
200 OK
{
  "data":
  {
    "ETH/DAI":
    {
      "bids": [
        ["292.90600000", "12.20186681"],  // Best order: price, volume (base)
        ["292.79972194", "10.00000000"],  // 2nd order: price, volume (base)
        ...
      ],
      "asks": [
        ["296.16000000", "12.10000000"],  // Best order: price, volume (base)
        ["296.25000000", "43.50676794"],  // 2nd order: price, volume (base)
        ...
      ]
    },
    ...
  }
  "time": "2019-07-08T15:29:40.639Z",  // Timestamp at which info was valid
  "message": "success"                 // Status message
}
GET orders/$base/$quote

Retrieve current orderbook for a given pair of $base and $quote.

curl -X GET https://api.oasisdex.com/v2/orders/eth/dai
200 OK
{
  "data":
  {
    "bids": [
      ["292.90600000", "12.20186681"],  // Best order: price, volume (base)
      ["292.79972194", "10.00000000"],  // 2nd order: price, volume (base)
      ...
    ],
    "asks": [
      ["296.16000000", "12.10000000"],  // Best order: price, volume (base)
      ["296.25000000", "43.50676794"],  // 2nd order: price, volume (base)
      ...
    ]
  },
  "time": "2019-07-08T15:29:40.639Z",  // Timestamp at which info was valid
  "message": "success"                 // Status message
}
400 Bad Request
{
  "time": "2019-07-08T15:29:40.639Z",
  "message": "Unknown pair"
}