sammchardy / python-binance-chain

Binance Chain Exchange API python implementation for automated trading

Home Page:http://python-binance-chain.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

websockets don't seem to work.

tvdsluijs opened this issue · comments

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?

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