Skip to main content
Version: testnet (v0.71)

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
    marketId string required

    Market ID.

    openVolume int64 required

    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.

    collateralAvailable string

    Optional argument specifying collateral available for the position, if provided then response will contain the liquidation price estimate.

Responses

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.

    includingBuyOrders string
    includingSellOrders string
    openVolumeOnly string
    worstCase object

    Liquidation price estimate assuming slippage cap is applied.

    includingBuyOrders string
    includingSellOrders string
    openVolumeOnly string
    margin object

    Margin level range estimate for the specified position.

    bestCase object

    Margin level estimate assuming no slippage.

    asset string
    collateralReleaseLevel string
    initialMargin string
    maintenanceMargin string
    marketId string
    partyId string
    searchLevel string
    timestamp int64
    worstCase object

    Margin level estimate assuming slippage cap is applied.

    asset string
    collateralReleaseLevel string
    initialMargin string
    maintenanceMargin string
    marketId string
    partyId string
    searchLevel string
    timestamp int64
Loading...