Risk Settings Set
Set or update risk thresholds and trading limits.
Overview
Creates or updates the agent’s risk settings. If no settings row exists yet, default values are applied first. Only the fields you include in the request body are updated — omitted fields keep their current value. Defaults (applied when no settings exist):Request body
Examples
- curl
- Python SDK
Response
Response Fields
Common errors
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Enable/disable trading limits
Max amount per trade (USD)
x >= 1Daily trading cap (USD)
x >= 1Max position value (USD)
x >= 1Max trades per day
1 <= x <= 5000Enable/disable risk control
Take-profit % (1-100), null to clear
1 <= x <= 100Stop-loss % (1-100), null to clear
1 <= x <= 100Response
Updated risk settings
Maximum trades per day
500
Maximum amount per single trade (USD)
"5.00000000"
Whether trading limits are enabled
true
Daily total trading amount cap (USD)
"500.00000000"
Maximum value per position (USD)
"100.00000000"
Whether risk control is enabled
false
Take-profit % (1-100), null if not set
null
Stop-loss % (1-100), null if not set
50
Last update timestamp (ms)
"1713000000000"