跳转到主要内容
PUT
/
api
/
v1
/
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.

请求体

application/json

风控配置载荷。

maxPosition
number

单标的最大仓位。

示例:

2

maxTotalExposure
number

总敞口上限。

示例:

1000000

maxOrderSize
number

单笔最大下单量。

示例:

100000

maxOrdersPerSecond
integer

每秒最大下单数。

示例:

5

maxDailyLoss
number

每日最大亏损。

示例:

20000

maxDrawdown
number

最大回撤阈值。

示例:

0.15

killSwitch
boolean

全局熔断开关。

示例:

false

响应

200 - application/json

成功返回更新后的风控配置

统一响应包裹结构。

code
integer
必填

业务状态码。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object

风控配置载荷。