Skip to main content
POST
/
api
/
v1
/
admin
/
backtests
Create backtest
curl --request POST \
  --url https://api.example.com/api/v1/admin/backtests \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategyType": "cross_exchange_arbitrage",
  "symbols": [
    "BTC/USDT"
  ],
  "timeRange": {
    "from": "2026-01-01",
    "to": "2026-03-01"
  },
  "params": {
    "min_profit_rate": 0.002,
    "base_quantity": 0.01
  }
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "backtestId": "bt_001",
    "status": "queued"
  }
}

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

Backtest creation request.

strategyType
string
required

Strategy type.

Example:

"cross_exchange_arbitrage"

symbols
string[]
required

Backtest symbols.

Example:
["BTC/USDT"]
timeRange
object
required

Backtest time range.

Example:
{ "from": "2026-01-01", "to": "2026-03-01" }
params
object
required

Backtest parameters.

Example:
{ "min_profit_rate": 0.002 }

Response

200 - application/json

Backtest creation response

Standard response envelope.

code
integer
required

Business status code.

Example:

0

msg
string
required

Human-readable response message.

Example:

"ok"

data
object

Backtest creation result.