You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param cancelReplaceMode: required - STOP_ON_FAILURE or ALLOW_FAILURE
2182
+
:type cancelReplaceMode: enum
2183
+
:param timeInForce: optional
2184
+
:type timeInForce: enum
2185
+
:param quantity: optional
2186
+
:type quantity: decimal
2187
+
:param quoteOrderQty: optional
2188
+
:type quoteOrderQty: decimal
2189
+
:param price: optional
2190
+
:type price: decimal
2191
+
:param cancelNewClientOrderId: optional - Used to uniquely identify this cancel. Automatically generated by default.
2192
+
:type cancelNewClientOrderId: str
2193
+
:param cancelOrigClientOrderId: optional - Either the cancelOrigClientOrderId or cancelOrderId must be provided. If both are provided, cancelOrderId takes precedence.
2194
+
:type cancelOrigClientOrderId: str
2195
+
:param cancelOrderId: optional - Either the cancelOrigClientOrderId or cancelOrderId must be provided. If both are provided, cancelOrderId takes precedence.
2196
+
:type cancelOrderId: long
2197
+
:param newClientOrderId: optional - Used to identify the new order.
2198
+
:type newClientOrderId: str
2199
+
:param strategyId: optional
2200
+
:type strategyId: int
2201
+
:param strategyType: optional - The value cannot be less than 1000000.
2202
+
:type strategyType: int
2203
+
:param stopPrice: optional
2204
+
:type stopPrice: decimal
2205
+
:param trailingDelta: optional
2206
+
:type trailingDelta: long
2207
+
:param icebergQty: optional
2208
+
:type icebergQty: decimal
2209
+
:param newOrderRespType: optional - ACK, RESULT or FULL. MARKET and LIMIT orders types default to FULL; all other orders default to ACK
2210
+
:type newOrderRespType: enum
2211
+
:param selfTradePreventionMode: optional - EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH or NONE.
2212
+
:type selfTradePreventionMode: enum
2213
+
:param cancelRestrictions: optional - ONLY_NEW or ONLY_PARTIALLY_FILLED
2214
+
:type cancelRestrictions: enum
2215
+
:param recvWindow: optional - The value cannot be greater than 60000
2216
+
:type recvWindow: int
2217
+
2218
+
:returns: API response
2219
+
2220
+
.. code-block:: python
2221
+
2222
+
//Both the cancel order placement and new order placement succeeded.
2223
+
{
2224
+
"cancelResult": "SUCCESS",
2225
+
"newOrderResult": "SUCCESS",
2226
+
"cancelResponse": {
2227
+
"symbol": "BTCUSDT",
2228
+
"origClientOrderId": "DnLo3vTAQcjha43lAZhZ0y",
2229
+
"orderId": 9,
2230
+
"orderListId": -1,
2231
+
"clientOrderId": "osxN3JXAtJvKvCqGeMWMVR",
2232
+
"transactTime": 1684804350068,
2233
+
"price": "0.01000000",
2234
+
"origQty": "0.000100",
2235
+
"executedQty": "0.00000000",
2236
+
"cummulativeQuoteQty": "0.00000000",
2237
+
"status": "CANCELED",
2238
+
"timeInForce": "GTC",
2239
+
"type": "LIMIT",
2240
+
"side": "SELL",
2241
+
"selfTradePreventionMode": "NONE"
2242
+
},
2243
+
"newOrderResponse": {
2244
+
"symbol": "BTCUSDT",
2245
+
"orderId": 10,
2246
+
"orderListId": -1,
2247
+
"clientOrderId": "wOceeeOzNORyLiQfw7jd8S",
2248
+
"transactTime": 1652928801803,
2249
+
"price": "0.02000000",
2250
+
"origQty": "0.040000",
2251
+
"executedQty": "0.00000000",
2252
+
"cummulativeQuoteQty": "0.00000000",
2253
+
"status": "NEW",
2254
+
"timeInForce": "GTC",
2255
+
"type": "LIMIT",
2256
+
"side": "BUY",
2257
+
"workingTime": 1669277163808,
2258
+
"fills": [],
2259
+
"selfTradePreventionMode": "NONE"
2260
+
2261
+
}
2262
+
}
2263
+
Similar to POST /api/v3/order, additional mandatory parameters are determined by type.
2264
+
2265
+
Response format varies depending on whether the processing of the message succeeded, partially succeeded, or failed.
0 commit comments