Skip to main content
PUT
/
api
/
v1
/
risk
/
config
Update risk config
curl --request PUT \
  --url https://api.example.com/api/v1/risk/config \
  --header 'Content-Type: application/json' \
  --data '
{
  "maxPosition": 2,
  "maxTotalExposure": 1000000,
  "maxOrderSize": 100000,
  "maxOrdersPerSecond": 5,
  "maxDailyLoss": 20000,
  "maxDrawdown": 0.15,
  "killSwitch": false
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "maxPosition": 2,
    "maxTotalExposure": 1000000,
    "maxOrderSize": 100000,
    "maxOrdersPerSecond": 5,
    "maxDailyLoss": 20000,
    "maxDrawdown": 0.15,
    "killSwitch": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Risk configuration payload.

maxPosition
number

Maximum position size per symbol.

Example:

2

maxTotalExposure
number

Maximum total exposure.

Example:

1000000

maxOrderSize
number

Maximum single order size.

Example:

100000

maxOrdersPerSecond
integer

Maximum orders per second.

Example:

5

maxDailyLoss
number

Maximum daily loss.

Example:

20000

maxDrawdown
number

Maximum drawdown threshold.

Example:

0.15

killSwitch
boolean

Global kill switch.

Example:

false

Response

200 - application/json

Risk config update response

Standard response envelope.

code
integer
required

Business status code.

Example:

0

msg
string
required

Human-readable response message.

Example:

"ok"

data
object

Risk configuration payload.