Submit order
POST: /v1/spot/order
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
symbol | string | true | |||
clientOrderId | string | false | Pattern: ^[a-zA-Z0-9_]{4,32}$ | ||
side | enum | true | BUY,SELL | ||
type | enum | true | order type:LIMIT,MARKET | ||
timeInForce | enum | true | effective way:GTC, FOK, IOC, GTX | ||
bizType | enum | true | SPOT, LEVER | ||
price | number | false | price. Required if it is the LIMIT price; blank if it is the MARKET price | ||
quantity | number | false | quantity. Required if it is the LIMIT price or the order is placed at the market price by quantity | ||
quoteQty | number | false | amount. Required if it is the LIMIT price or the order is the market price when placing an order by amount | ||
nftId | string | false | nft id | ||
media | string | false | |||
mediaChannel | string | false |
Remark
Create a BUY order based on market price, quantity must be null, quoteQty required; Create a SELL order based on market price, quoteQty must be null, quantity required.
Limit Flow Rules
50/s/apikey
Java
public String orderPost(){
}
Response
{
"code": 200,
"msg": "string",
"msgInfo": [
{}
],
"data": {
"orderId": "6216559590087220004",
"clientOrderId": "6216559590087220004"
}
}