跳转到主要内容
GET
/
api
/
v1
/
admin
/
backtests
/
{backtestId}
查询回测结果
curl --request GET \
  --url https://api.example.com/api/v1/admin/backtests/{backtestId}
{
  "code": 0,
  "msg": "ok",
  "data": {
    "backtestId": "bt_001",
    "status": "completed",
    "metrics": {
      "sharpe": 1.8,
      "pnl": 15230.5,
      "maxDrawdown": 0.09
    },
    "trades": [
      {
        "symbol": "BTC/USDT",
        "side": "buy",
        "quantity": 0.01,
        "pnl": 12.5
      }
    ]
  }
}

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.

路径参数

backtestId
string
必填

回测任务 ID。

示例:

"bt_001"

响应

200 - application/json

成功返回回测结果

统一响应包裹结构。

code
integer
必填

业务状态码。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object

回测结果载荷。