sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
350 stars 148 forks source link

How to get at what price was executed my market order? #87

Open Th0rgal opened 3 years ago

Th0rgal commented 3 years ago

Hello,

When I perform a market order using: client.create_market_order I get a json which contains my orderId. How can I find at what price it was performed or what amount of tokens I bought?

I tried : print(client.get_fills(order_id))

But I only got: {'currentPage': 1, 'pageSize': 50, 'totalNum': 0, 'totalPage': 0, 'items': []}