Oracle Price

Query latest oracle price for provided product ids

Rate limits

  • 1200 requests/min or 200 requests/10secs per IP address. (weight = 2)

See more details in API Rate limits

Request

POST [ARCHIVE_ENDPOINT]

Body

{
  "oracle_price": {
    "product_ids": [1, 2, 3, 4]
  }
}

Request Parameters

Parameter
Type
Required
Description

product_ids

number[]

Yes

Ids of products to fetch oracles price for.

Response

{
  "prices": [
    {
      "product_id": 1,
      "oracle_price_x18": "29464023750000000000000",
      "update_time": "1683315718"
    },
    {
      "product_id": 2,
      "oracle_price_x18": "29430225194712740000000",
      "update_time": "1683315721"
    },
    {
      "product_id": 3,
      "oracle_price_x18": "1983367400000000000000",
      "update_time": "1683315720"
    },
    {
      "product_id": 4,
      "oracle_price_x18": "1981528989642697000000",
      "update_time": "1683315721"
    }
  ]
}

Response Fields

Prices

Field name
Description

product_id

Id of product oracle price corresponds to.

oracle_price_x18

Latest oracle price multiplied by 10^18.

update_time

Epoch in seconds the oracle price was last updated at.

Last updated