Orderbook
Get Orderbook
GET
https://api.swivel.exchange/v4/orderbook?underlying=x&maturity=y&protocol=p&depth=z
This endpoint allows you to request an orderbook of a given depth for a specified market. Returns receiving premium and paying premium orders in descending/ascending order including availableVolume translated into both premiumAvailable and principalAvailable.
Query Parameters
Name | Type | Description |
---|---|---|
underlying* | string | The underlying token being transacted. E.g. USDC, DAI, etc., |
maturity* | string | The maturity of market in unix seconds. |
depth* | integer | The number of orders on each side of the orderbook to return. |
protocol* | integer | A pointer that refers to a given yield bearing market like Lido or Compound. The protocol enum values:
|
Last updated