Place limit order (USER_DATA)
API Description
Enable users to place a limit order
HTTP Request
POST /sapi/v1/convert/limit/placeOrder
Request Weight
500(UID)
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
baseAsset | STRING | YES | base asset (use the response fromIsBase from GET /sapi/v1/convert/exchangeInfo api to check which one is baseAsset ) |
quoteAsset | STRING | YES | quote asset |
limitPrice | DECIMAL | YES | Symbol limit price (from baseAsset to quoteAsset) |
baseAmount | DECIMAL | NO | Base asset amount. (One of baseAmount or quoteAmount is required) |
quoteAmount | DECIMAL | NO | Quote asset amount. (One of baseAmount or quoteAmount is required) |
side | ENUM | YES | BUY or SELL |
walletType | ENUM | NO | SPOT or FUNDING or SPOT_FUNDING . It is to use which type of assets. Default is SPOT . |
expiredType | ENUM | YES | 1_D, 3_D, 7_D, 30_D (D means day) |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
baseAsset
orquoteAsset
can be determined viaexchangeInfo
endpoint.- Limit price is defined from
baseAsset
toquoteAsset
.- Either
baseAmount
orquoteAmount
is used.
Response Example
{
"quoteId":"12415572564",
"ratio":"38163.7",
"inverseRatio":"0.0000262",
"validTimestamp":1623319461670,
"toAmount":"3816.37",
"fromAmount":"0.1"
}