sammchardy / python-binance-chain

Binance Chain Exchange API python implementation for automated trading
http://python-binance-chain.rtfd.io
MIT License
302 stars 132 forks source link

websockets don't seem to work. #28

Open tvdsluijs opened 5 years ago

tvdsluijs commented 5 years ago

So I tried implementing the websockets code from here

But I get some strange error messages.

First this code

bcsm = await BinanceChainSocketManager.create(loop, handle_evt, address2, env=testnet_env)

Does not work because address2 does not exists. I get a NameError: name 'address2' is not defined error

When I remove the 2 in address2 I get the next error.

TypeError: create() got multiple values for argument 'env'

I'm not really sure how to solve this issue.

Did anyone get the websockets to work?

oliver-zehentleitner commented 4 years ago

I guess the address2is just a type. remove the 2 and i guess it will work.