Place an order
Description: Place an order on the trading bridge
group=tradeApi
version=0.0.1
bizType=tradeapi.admin.OrderAdminApiService.addDirectOrder
Special instructions for binance exchange:
- The minimum order requirement is 5 USDT
- Trading rules for placing orders: https://www.binance.com/zh-CN/trade-rule
- Limit orders only support volume-based orders.
OKX Exchange Special Instructions
- The timeInForce input parameter of the order interface is invalid.
- The order interface only returns the clientOrderId and status fields.
- Limit orders only support volume-based orders.
Company ID
{{company}}
Global link unique identifier
{{mock_trace}}
apiKey
{{apikey}}
time window
5000
sign
{{sign}}
language
zh-CN
Interface version
0.0.1
tradeApi
Game type. 10-Transaction Bridge;
CustomerId
Customer code
Customer group ID: 1=default customer group;
Platform identifier. binance-Binance; okx-OUYi
Platform account alias
ProductId
Business type. 1-market price; 2-limit price
Order buying and selling direction, 1-buy; 2-sell;
Required for limit orders. Limit price, this field is invalid for market orders
Order quantity. Fill in at least one with amount
. All fields shall be filled in with num
.
The total amount of the order. Fill in at least one with num
. All fields shall be filled in with num
.
Order Validity Method. GTC - until all transactions are completed or canceled; IOC - as many transactions as possible immediately, and partial cancellations that cannot be completed; FOK - all transactions or all cancellations; (This field is invalid for market orders, and the limit price defaults to GTC)
Customer-defined unique order ID. If left blank, it will be automatically generated. (Need to meet this regular expression rule: ^[a-zA-Z0-9]{1,20}$)
Request time. 13-digit timestamp. If not filled in, the default is the time when the system receives the order.
POST /global/tradeapi.admin.OrderAdminApiService.addDirectOrder HTTP/1.1
Host:
companyId: text
trace: text
apiKey: text
signature: text
version: text
group: text
Content-Type: application/json
Accept: */*
Content-Length: 254
{
"tradeType": 1,
"customerId": 1,
"customerNo": "text",
"customerGroupId": 1,
"exchangeId": "text",
"accountName": "text",
"symbolId": 1,
"bizType": 1,
"direction": 1,
"price": "text",
"num": "text",
"amount": "text",
"timeInForce": "text",
"clientOrderId": "text",
"requestTime": 1
}
{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": {
"exchangeId": "text",
"orderId": "text",
"clientOrderId": "text",
"status": "text",
"timeInForce": "text",
"executeNum": "text",
"executeAmount": "text",
"executeList": [
{
"executeNum": "text",
"executePrice": "text",
"commission": "text",
"commissionCurrency": "text",
"tradeId": "text"
}
]
}
}
Last updated