setSubaccountLimit

Sets or modifies a sub-account limit. For masters only

POST api/setSubaccountLimit

{
  "subaccountId": 0,
  "limits": {
    "grossLimit": 12345,
    "currency": "USD",
    "markup": 123,
    "margins": {
      "initialMargin": 3,
      "maintenanceMargin": 2,
      "restrictedTrading": 1
    }
  }
}

Request parameters

Field nameTypeDescription

subaccountId

integer

Sub-account Id

limits

object

grossLimit

integer

Gross limit size

currency

string

Currency name

markup

integer

Optional. Set markup that is applied to your raw prices and, eventually, widens spread for a sub-account. In % multiplied by 1e4. From -100000 to 100000, that is from 10% to -10%

margins

object

initialMargin

integer

Optional. Initial margin level. In % multiplied by 1e4. From 0 to 1000000, that is 0% to 100% of gross limit. Should be greater or equal to the restricted trading level.

maintenanceMargin

integer

Optional. Maintenance margin level. In % multiplied by 1e4. From 0 to 1000000, that is 0% to 100% of gross limit.

restrictedTrading

integer

Optional. Restricted trading level. In % multiplied by 1e4. From 0 to 1000000, that is 0% to 100% of gross limit. Should be greater or equal to the maintenance margin.

Setting internal limit is essential for trading (even with external counterparties).

Last updated