POST /swap

Swaps collateral.

Log in to see full request history
Body Params
string
required

Name of the collateral asset.

boolean
required

True for long order, false for short order.

string

The collateral amount. In 6 decimals fixed number for USDT, 18 decimals for WETH, and 8 decimals for WBTC.

string

Amount of USDC. In 6 decimals fixed number.

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json