Oasis Dex

Overview - REST API v1 - REST API v2

GET prices

Retrieve price info for all known pairs.

curl -X GET https://api.oasisdex.com/v2/prices
200 OK
{
  "data":
  {
    "ETH/DAI":
    {
      "24hrvwap":"1078.67340867",  // Volume weighted price over last 24 hours
      "12hrvwap":"951.51748486",   // Volume weighted price over last 12 hours
      "6hrvwap": "178.67340867",   // Volume weighted price over last 6 hours
      "1hrvwap": "91.51748486",    // Volume weighted price over last 1 hour
      "last":    "1063.16640000",  // Most recent trade execution price
    },
    ...
  },
  "time": "2019-06-13T10:49:40.639Z",  // Timestamp at which info was valid
  "message": "success"                 // Status message
}
GET prices/$base/$quote

Retrieve price info for a given pair of $base and $quote.

curl -X GET https://api.oasisdex.com/v2/prices/eth/dai
200 OK
{
  "data":
  {
    "24hrvwap":"1078.67340867",  // Volume weighted price over last 24 hours
    "12hrvwap":"951.51748486",   // Volume weighted price over last 12 hours
    "6hrvwap": "178.67340867",   // Volume weighted price over last 6 hours
    "1hrvwap": "91.51748486",    // Volume weighted price over last 1 hour
    "last":    "1063.16640000",  // Most recent trade execution price
  }
  "time": "2019-06-13T10:49:40.639Z",  // Timestamp at which info was valid
  "message": "success"                 // Status message
}

400 BAD REQUEST
{
  "time": "2019-06-13T10:49:40.639Z",
  "message": "Unknown pair"
}