v1

latestOpenAPI 3.0.32026-07-2613529376.3 KB
Collateral Trading

Collateral Account Summary

The endpoint returns a collateral account summary including total equity, used margin, free margin, unrealized profit and loss, and the current leverage level. The marginFraction field indicates the ratio of used margin to total equity.

<Warning> Rate limit: 12000 requests/10 sec. </Warning>
post/api/v4/collateral-account/summary

Request body

requeststring
nonceinteger

Example request

{
  "request": "{{request}}",
  "nonce": 1594297865000
}

Response

Successful response - returns collateral account summary

equitystring

Total equity value of the collateral account

marginstring

Total margin used

freeMarginstring

Available margin for trading

unrealizedFundingstring

Unrealized funding payments

pnlstring

Unrealized profit and loss

leverageinteger

Current leverage level

marginFractionstring

Margin fraction ratio (margin / equity)

Example response

{
  "equity": "15000.50",
  "margin": "5000.00",
  "freeMargin": "10000.50",
  "unrealizedFunding": "25.75",
  "pnl": "150.25",
  "leverage": 3,
  "marginFraction": "0.3333"
}