I need help with the code to stary binance futures userdata stream as the package is not working.
I tried following changes in the code but it failed stating that APIERROR(code=0) Invalid Jason
error message from Binance. The tweaks I made to subscribe futures userdatastream are as follows:
In my script:
bm = BinanceSocketManager(client)
def processmessage(msg):
print(msg)
conn_keys = bm.start_user_socket(processmsg)
bm.start()
In websockets.py
in def start_socket:
I replaced stream_url
with fstream_url
In client.py
in def create_api_uri:
I replaced api_url
with futures_url
I am in need of binance futures’s userdata stream websockets.