Open eduardomaas82 opened 2 years ago
That endpoint will only list open orders, not trades.
To view your open positions you need to use the following and filter by symbol:
client.futures_position_information()
To cancel the order, I could not. what procedure to search ID and cancel the order?
You can view your open orders with the following:
client.futures_get_open_orders()
You can also filter by symbol:
client.futures_get_open_orders(symbol='BTCUSDT')
These will return the orderId
which you can then use to cancel the order. Both the symbol
and orderId
parameters are required (replace orderId
with the value that was returned by the previous endpoint):
client.futures_cancel_order(symbol='BTCUSDT', orderId=orderId)
It is not listing open trades in futures.
client.futures_get_open_orders()