LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 164 forks source link

How to stream - https://binance-docs.github.io/apidocs/futures/en/#event-order-update #95

Closed lucky-ali closed 4 years ago

lucky-ali commented 4 years ago

Hello,

How can i stream my account inforamtion and get the event-order-update steam?

https://binance-docs.github.io/apidocs/futures/en/#event-order-update

I would like to know when an order is placed, updated or closed.

Sorry for the noob question.

oliver-zehentleitner commented 4 years ago

Hi! Take a look here: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/blob/master/example_userdata_stream.py Then trigger some events and see what you receive... Best regards, Oliver

lucky-ali commented 4 years ago

Hello,

I have followed the code that you mentioned and i am getting the data in the screenshots below. I placed a couple of orders on my futures account and nothing showed up in the stream any help would be appreciated.

Code: image

Output: image

oliver-zehentleitner commented 4 years ago

Try exchange="binance.com-futures"

lucky-ali commented 4 years ago

Perfect that worked. Thanks alot.

oliver-zehentleitner commented 4 years ago

Your welcome!