For the complete documentation index, see llms.txt. This page is also available as Markdown.

setCLimit

Sets or modifies a counterparty limit

POST api/setCLimit

{
    "counterpartyId": 4,
    "currency": "EUR",
    "grossLimit": 15000000000000,
    "maintenanceMargin": 1000, // For makers and masters only
    "restrictedTrading": 1500, // For makers and masters only
    "initialMargin": 2000
}
{
    "error": 0
}
{
    "error": 2
}

Request parameters

Field name
Type
Description

counterpartyId

Efx::ClientId

Counterparty Id

currency

string

Currency name

grossLimit

Efx::Size

Gross limit size

maintenaceMargin

Efx::Percent

Optional. For makers and masters only! Maintenance margin level. In % multiplied by 1e4. From 0 to 1000000, that is 0% to 100% of gross limit.

restrictedTrading

Efx::Percent

Optional. For makers and masters only! 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.

initialMargin

Efx::Percent

Optional. For makers and masters only! 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.

Only one limit could be set against the counterparty.

Setting the new limit will modify the existing one.

Last updated