Get Effective Price (Preview Market Order)
Get Effective Price (Preview Market Order)
GET
https://api.swivel.exchange/v2/fillpreview?underlying=u&maturity=m&volume=v&vault=w&exit=e
This endpoint allows you to request a limit order payload that matches a given market order. Returns the effective price as well as orders for consumption.
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. |
volume* | string | The amount of currency to use. |
vault* | boolean | Indicates if an order is in relation to a initiating/exiting a vault or zcToken |
exit* | boolean | Indicated if an order is an exit or an initiate |
Last updated