Get Order History
Last updated
Last updated
GET
https://api.swivel.exchange/v4/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.
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:
enum Protocols {
Erc4626 = 0,
Compound = 1,
Rari = 2,
Yearn = 3,
Aave = 4,
Euler = 5,
Lido = 6
}