Estimate position
Estimate the margin that would be required for maintaining the specified position. If the optional collateral available argument is supplied, the response also contains the estimate of the liquidation price.
Query Parameters
Market ID.
Open volume. This field is an signed integer (negative for short position) passed as a string and needs to be scaled using the market's position decimal places.
Optional argument specifying collateral available for the position, if provided then response will contain the liquidation price estimate.
- 200
- 500
- default
A successful response.
Schema
liquidation object
Liquidation price range estimate for the specified position. Only populated if available collateral was specified in the request.
bestCase object
Liquidation price estimate assuming no slippage.
worstCase object
Liquidation price estimate assuming slippage cap is applied.
margin object
Margin level range estimate for the specified position.
bestCase object
Margin level estimate assuming no slippage.
worstCase object
Margin level estimate assuming slippage cap is applied.
{
"liquidation": {
"bestCase": {
"includingBuyOrders": "string",
"includingSellOrders": "string",
"openVolumeOnly": "string"
},
"worstCase": {
"includingBuyOrders": "string",
"includingSellOrders": "string",
"openVolumeOnly": "string"
}
},
"margin": {
"bestCase": {
"asset": "string",
"collateralReleaseLevel": "string",
"initialMargin": "string",
"maintenanceMargin": "string",
"marketId": "string",
"partyId": "string",
"searchLevel": "string",
"timestamp": "string"
},
"worstCase": {
"asset": "string",
"collateralReleaseLevel": "string",
"initialMargin": "string",
"maintenanceMargin": "string",
"marketId": "string",
"partyId": "string",
"searchLevel": "string",
"timestamp": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}