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 | It is to choose which wallet of assets. The wallet selection is SPOT, FUNDING and EARN. Combination of wallet is supported i.e. SPOT_FUNDING, FUNDING_EARN, SPOT_FUNDING_EARN or SPOT_EARN Default is SPOT. |
| expiredType | ENUM | YES | 1_D, 3_D, 7_D, 30_D (D means day) |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
baseAssetorquoteAssetcan be determined viaexchangeInfoendpoint.- Limit price is defined from
baseAssettoquoteAsset.- Either
baseAmountorquoteAmountis used.
Response Example
{
"quoteId":"12415572564",
"ratio":"38163.7",
"inverseRatio":"0.0000262",
"validTimestamp":1623319461670,
"toAmount":"3816.37",
"fromAmount":"0.1"
}