symbol must be provided.
side is a Side enum and must be provided.
order_type is an OrderType enum and must be provided.
time_in_force is a TimeInForce enum and is not mandatory.
quantity is the quantity you want to buy or sell, you don't need it if you specify a quote_order_quantity.
quote_order_quantity specifies the amount you want to spend (in market orders).
price is the price you are going to pay (it is not needed for market orders for example)
new_client_order_id is a unique id for the order. Automatically generated if not sent.
stop_price is mandatory with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
icerberg_quantity is used to create an iceberg order.
response_type is a ResponseType enum and is not mandatory.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
test can be set to True to send a test request, if this is the case the response will be empty.
Response
response_type = ACK
{"symbol": "BTCUSDT","orderId": 28,"orderListId": -1,//Unless OCO, value will be -1"clientOrderId": "6gCrw2kRUAF9CvJDGP16IP","transactTime": 1507725176595}
response_type = RESULT
{"symbol": "BTCUSDT","orderId": 28,"orderListId": -1,//Unless OCO, value will be -1"clientOrderId": "6gCrw2kRUAF9CvJDGP16IP","transactTime": 1507725176595,"price": "0.00000000","origQty": "10.00000000","executedQty": "10.00000000","cummulativeQuoteQty": "10.00000000","status": "FILLED","timeInForce": "GTC","type": "MARKET","side": "SELL"}
symbol must be provided.
Either order_id or origin_client_order_id must be sent.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
Response
{"symbol": "LTCBTC","orderId": 1,"orderListId": -1//Unless part of an OCO, the value will always be -1."clientOrderId": "myOrder1","price": "0.1","origQty": "1.0","executedQty": "0.0","cummulativeQuoteQty": "0.0","status": "NEW","timeInForce": "GTC","type": "LIMIT","side": "BUY","stopPrice": "0.0","icebergQty": "0.0","time": 1499827319559,"updateTime": 1499827319559,"isWorking": true,"origQuoteOrderQty": "0.000000"}
symbol must be provided.
Either order_id or origin_client_order_id must be sent.
new_client_order_id is used to uniquely identify this cancel. Automatically generated by default.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
Response
{"symbol": "LTCBTC","origClientOrderId": "myOrder1","orderId": 4,"orderListId": -1,//Unless part of an OCO, the value will always be -1."clientOrderId": "cancelMyOrder1","price": "2.00000000","origQty": "1.00000000","executedQty": "0.00000000","cummulativeQuoteQty": "0.00000000","status": "CANCELED","timeInForce": "GTC","type": "LIMIT","side": "BUY"}
Cancel All Open Orders on a Symbol (TRADE)
Cancels all active orders on a symbol. This includes OCO orders.
symbol must be provided.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
symbol is not mandatory.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
Response
[ {"symbol":"LTCBTC","orderId":1,"orderListId":-1,//Unless OCO, the value will always be -1"clientOrderId":"myOrder1","price":"0.1","origQty":"1.0","executedQty":"0.0","cummulativeQuoteQty":"0.0","status":"NEW","timeInForce":"GTC","type":"LIMIT","side":"BUY","stopPrice":"0.0","icebergQty":"0.0","time":1499827319559,"updateTime":1499827319559,"isWorking":true,"origQuoteOrderQty":"0.000000" }]
All orders (USER_DATA)
Get all account orders; active, canceled, or filled.
symbol must be provided.
If order_id is set, it will get orders >= that order_id. Otherwise most recent orders are returned.
start_time is not mandatory.
end_time is not mandatory.
limit should be inferior to 1000.
receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.
Response
[ {"symbol":"LTCBTC","orderId":1,"orderListId":-1,//Unless OCO, the value will always be -1"clientOrderId":"myOrder1","price":"0.1","origQty":"1.0","executedQty":"0.0","cummulativeQuoteQty":"0.0","status":"NEW","timeInForce":"GTC","type":"LIMIT","side":"BUY","stopPrice":"0.0","icebergQty":"0.0","time":1499827319559,"updateTime":1499827319559,"isWorking":true,"origQuoteOrderQty":"0.000000" }]