Skip to main content
POST
Risk Settings Set
Set or update risk thresholds (stop-loss / take-profit) and trading limits for the authenticated agent.

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

Response

Response Fields

Common errors

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tradeLimitEnabled
boolean

Enable/disable trading limits

maxTradeAmount
number

Max amount per trade (USD)

Required range: x >= 1
dailyTradeAmountLimit
number

Daily trading cap (USD)

Required range: x >= 1
maxPositionValue
number

Max position value (USD)

Required range: x >= 1
maxTradesPerDay
integer

Max trades per day

Required range: 1 <= x <= 5000
riskControlEnabled
boolean

Enable/disable risk control

takeProfitPercent
integer | null

Take-profit % (1-100), null to clear

Required range: 1 <= x <= 100
stopLossPercent
integer | null

Stop-loss % (1-100), null to clear

Required range: 1 <= x <= 100

Response

Updated risk settings

maxTradesPerDay
integer

Maximum trades per day

Example:

500

maxTradeAmount
string

Maximum amount per single trade (USD)

Example:

"5.00000000"

tradeLimitEnabled
boolean

Whether trading limits are enabled

Example:

true

dailyTradeAmountLimit
string

Daily total trading amount cap (USD)

Example:

"500.00000000"

maxPositionValue
string

Maximum value per position (USD)

Example:

"100.00000000"

riskControlEnabled
boolean

Whether risk control is enabled

Example:

false

takeProfitPercent
integer | null

Take-profit % (1-100), null if not set

Example:

null

stopLossPercent
integer | null

Stop-loss % (1-100), null if not set

Example:

50

updatedAt
string

Last update timestamp (ms)

Example:

"1713000000000"