跳转到主要内容
POST
/
api
/
v1
/
execution
/
orders
下单
curl --request POST \
  --url https://api.example.com/api/v1/execution/orders \
  --header 'Content-Type: application/json' \
  --data '
{
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "side": "buy",
  "type": "limit",
  "price": 65000,
  "quantity": 0.01,
  "strategyId": "cross_arb_btc_01"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "clientOrderId": "ord_20260511_0001",
    "exchangeOrderId": "789123456",
    "exchange": "binance",
    "symbol": "BTCUSDT",
    "status": "new"
  }
}

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

执行下单请求。

exchange
enum<string>
必填

目标交易所。

可用选项:
binance,
okx
示例:

"binance"

symbol
string
必填

交易对。

示例:

"BTCUSDT"

side
string
必填

下单方向。

示例:

"buy"

type
string
必填

订单类型。

示例:

"limit"

quantity
number
必填

下单数量。

示例:

0.01

price
number

限价单价格,市价单可选。

示例:

65000

strategyId
string

来源策略 ID。

示例:

"cross_arb_btc_01"

响应

200 - application/json

成功返回订单结果

统一响应包裹结构。

code
integer
必填

业务状态码。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object

执行订单结果载荷。