Perp Prices
Query latest index and mark prices for provided perp products.
Rate limits
1200 requests/min or 200 requests/10secs per IP address. (weight = 2)
See more details in API Rate limits
Single Product
Request
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
product_id | number | Yes | Id of perp product to fetch prices for. |
Response
Multiple Products
Request
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
product_ids | number[] | Yes | Ids of perp products to fetch prices for. |
Response
Note: the response is a map of product_id -> perp_prices
for each requested product.
Response Fields
Field name | Description |
---|---|
product_id | Id of the perp product. |
index_price_x18 | Latest index price of the perp product, multiplied by 10^18. |
mark_price_x18 | Latest mark price of the perp product, multiplied by 10^18. |
update_time | Epoch time in seconds the perp prices were last updated at. |
Last updated