REST APITradeMargin

GET

Returns the margin risk settings for the specified account.

Path Params

  • accountId string required
    The ID of the account

Responses

200
Margin risk settings

Response Body

object

  • totalShortPositionLimit object
    Quantity representing the total NOP limit across all currencies. It sets a limit that is compared to the total short position across all currencies (eg. 1000000). Currency represents the currency that the quantity is valued in (eg. USD)
    totalShortPositionLimit object
    • quantity string decimal required
      The specified quantity.
    • currency string required
      The specified quantity currency.
  • marginCallPercentage string
    Number representing the percentage at which a margin call will be initiated if the margin percentage falls below this number. It is in decimal form (eg. 0.8 to mean 80%)

    matches ^[0-9]+(\.[0-9]+)?$

  • liquidationThresholdPercentage string
    Number representing the liquidation threshold percentage at which positions will be automatically liquidated if the margin utilization exceeds this level. It is in decimal form (eg. 1.2 to mean 120%)

    matches ^[0-9]+(\.[0-9]+)?$

  • marginRequirementPercentage string
    Number representing the margin requirement percentage which is used with the NOP to determine the margin required. It is in decimal form (eg.0.2 for 20%)

    matches ^[0-9]+(\.[0-9]+)?$

  • minimumTransferredCollateral object
    Quantity representing the minimum transferred collateral value required for margin trading. Currency represents the currency that the quantity is valued in (eg. USD)
    minimumTransferredCollateral object
    • quantity string decimal required
      The specified quantity.
    • currency string required
      The specified quantity currency.
401
Unauthorized - Invalid or missing authentication

Response Body

object

  • error string required
  • errorName string required
  • reqId string required
  • context object
    Optional structured metadata for REST validation failures. The schema is fixed for client contract stability.
    context object
    • errorName string required
      Same value as the top-level errorName.
    • field string
      Request field associated with the validation failure.
    • message string
      Human-readable field-level validation message.
403
Forbidden - Insufficient permissions

Response Body

object

  • error string required
  • errorName string required
  • reqId string required
  • context object
    Optional structured metadata for REST validation failures. The schema is fixed for client contract stability.
    context object
    • errorName string required
      Same value as the top-level errorName.
    • field string
      Request field associated with the validation failure.
    • message string
      Human-readable field-level validation message.
500
Internal Server Error

Response Body

object

  • error string required
  • errorName string required
  • reqId string required
  • context object
    Optional structured metadata for REST validation failures. The schema is fixed for client contract stability.
    context object
    • errorName string required
      Same value as the top-level errorName.
    • field string
      Request field associated with the validation failure.
    • message string
      Human-readable field-level validation message.