private/change-account-settings
POSTChange account level settings regarding STP and other properties./private/change-account-settings
Request
Body
required
- ➖ M: Matches Master or Sub a/c
- ➖ S: Matches Sub a/c only
- ➖ D: reset all STP fields to default (stp_inst and stp_id in same request are ignored).
- ➖ M: Cancel Maker
- ➖ T: Cancel Taker
- ➖ B: Cancel Both Maker and Taker
Request id (echoed in response)
Must be "private/change-account-settings"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
Possible values: [M, S, D]
Self-trade prevention scope. Used in private/change-account-settings (params) and private/get-account-settings (result).
Possible values: [M, T, B]
Self-trade prevention instruction. Used in private/change-account-settings (params) and private/get-account-settings (result). Mandatory if stp_scope is set.
Optional. 0 to 32767. If stp_scope and stp_inst not specified, REJECT. If stp_scope specified, default 0.
Maximum leverage for the account. When account effective leverage exceeds this, further risk-increasing orders are rejected.
Schema
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
Present when code !== 0.
Present when code !== 0.