跳转到主要内容
PUT
/
api
/
v1
/
admin
/
strategies
/
{strategyId}
更新策略
curl --request PUT \
  --url https://api.example.com/api/v1/admin/strategies/{strategyId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "params": {
    "min_profit_rate": 0.003,
    "base_quantity": 0.02
  },
  "riskProfileId": "conservative_profile"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "strategyId": "cross_arb_btc_01",
    "status": "created"
  }
}

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.

路径参数

strategyId
string
必填

策略 ID。

示例:

"cross_arb_btc_01"

请求体

application/json

策略更新请求。

params
object

更新后的策略参数。

示例:
{ "min_profit_rate": 0.003 }
riskProfileId
string

更新后的风控模板 ID。

示例:

"conservative_profile"

响应

200 - application/json

成功返回更新结果

统一响应包裹结构。

code
integer
必填

业务状态码。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object

策略状态变更结果。