How do I print the response from an order like below?
order = client.order_limit_buy(
symbol='ADABUSD',
quantity=buy_quantity,
price=price,
newOrderRespType = 'ACK'
)
I wish to get the orderId from it so I can check its status...
Thanks in advance
Here is an example how response looks. It is JSON-like dict
object.
So order ID may be taken by: order["orderId"]