HomeDocumentationAPI Reference
Log In
API Reference

Set Mmp Config

Method Name

private/set_mmp_config

Set the mmp config for the subaccount and currency
Required minimum session key permission level is account

Parameters

currency  string required
Currency of this mmp config

mmp_frozen_time  integer required
Time interval in ms setting how long the subaccount is frozen after an mmp trigger, if 0 then a manual reset would be required via private/reset_mmp

mmp_interval  integer required
Time interval in ms over which the limits are monotored, if 0 then mmp is disabled

subaccount_id  integer required
Subaccount_id for which to set the config

mmp_amount_limit  string
Maximum total order amount that can be traded within the mmp_interval across all instruments of the provided currency. The amounts are not netted, so a filled bid of 1 and a filled ask of 2 would count as 3.
Default: 0 (no limit)

mmp_delta_limit  string
Maximum total delta that can be traded within the mmp_interval across all instruments of the provided currency. This quantity is netted, so a filled order with +1 delta and a filled order with -2 delta would count as -1
Default: 0 (no limit)

Response

id  string or integer required

result  object required

result. currency  string required
Currency of this mmp config

result. mmp_frozen_time  integer required
Time interval in ms setting how long the subaccount is frozen after an mmp trigger, if 0 then a manual reset would be required via private/reset_mmp

result. mmp_interval  integer required
Time interval in ms over which the limits are monotored, if 0 then mmp is disabled

result. subaccount_id  integer required
Subaccount_id for which to set the config

result. mmp_amount_limit  string
Maximum total order amount that can be traded within the mmp_interval across all instruments of the provided currency. The amounts are not netted, so a filled bid of 1 and a filled ask of 2 would count as 3.
Default: 0 (no limit)

result. mmp_delta_limit  string
Maximum total delta that can be traded within the mmp_interval across all instruments of the provided currency. This quantity is netted, so a filled order with +1 delta and a filled order with -2 delta would count as -1
Default: 0 (no limit)

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}