Skip to main content
POST
/
api
/
v1
/
admin
/
strategies
Create strategy
curl --request POST \
  --url https://api.example.com/api/v1/admin/strategies \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategyId": "cross_arb_btc_01",
  "strategyType": "cross_exchange_arbitrage",
  "symbols": [
    "BTC/USDT"
  ],
  "exchanges": [
    "binance",
    "okx"
  ],
  "params": {
    "min_profit_rate": 0.002,
    "base_quantity": 0.01,
    "max_position_size": 0.05
  },
  "riskProfileId": "default_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.

Body

application/json

Strategy creation request.

strategyId
string
required

Unique strategy identifier.

Example:

"cross_arb_btc_01"

strategyType
enum<string>
required

Strategy type.

Available options:
cross_exchange_arbitrage,
triangular_arbitrage,
funding_rate_arbitrage
Example:

"cross_exchange_arbitrage"

symbols
string[]
required

Trading symbols.

Example:
["BTC/USDT"]
exchanges
enum<string>[]
required

Target exchanges.

Available options:
binance,
okx
Example:
["binance", "okx"]
params
object
required

Strategy parameters.

Example:
{
"min_profit_rate": 0.002,
"base_quantity": 0.01
}
riskProfileId
string

Linked risk profile ID.

Example:

"default_profile"

Response

200 - application/json

Strategy creation response

Standard response envelope.

code
integer
required

Business status code.

Example:

0

msg
string
required

Human-readable response message.

Example:

"ok"

data
object

Strategy state change result.