Get Last Trade Info
Get Last Trade Info
GET
https://api.swivel.exchange/v2/fills?underlying=u&maturity=m&protocol=p&depth=d
This endpoint allows you to request the agreement most recently initiated in a given market. (The trade last made in a given market) Returns the parameters of the most recent agreement for the specified market.
Query Parameters
underlying*
string
The underlying token being transacted. E.g. USDC, DAI, etc.,
maturity*
string
The maturity of market in unix seconds.
depth*
string
Specify 1 for getting the last trade. If more depth is specified, the result will be a sorted list of last trades.
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
}
Last updated