Get Order History
Get Order History
GET
https://api.swivel.exchange/v2/users/:address/orders?underlying=u&maturity=m&protocol=p&status=s
This endpoint allows you to request the order history for a given address, and allows filtering by active, cancelled, full and expired statuses. Returns chronologically sorted orders for a given address.
Query Parameters
Name | Type | Description |
---|---|---|
address* | string | Public key of an order's creator |
underlying* | string | The underlying token being transacted. E.g. USDC, DAI, etc., |
maturity* | string | The maturity of market in unix seconds. |
status | list(string) | List of statuses expired, cancelled, full or insolvent. |
protocol* | integer | A pointer that refers to a given yield bearing market like Lido or Compound. The protocol enum values:
|
Last updated