-1

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

Zak Pinter
  • 21
  • 5

1 Answers1

0

Here is an example how response looks. It is JSON-like dict object.

So order ID may be taken by: order["orderId"]

rzlvmp
  • 7,512
  • 5
  • 16
  • 45