I'm trying to make some api calls from the Binance Exchange and do some live calculations, displaying results in a window. I have spent 4 hours and am still getting the same error. There is no other documentation to suggest I am doing anything wrong - unless I have installed the pip Binance wrongly? I am new to python and APIs so I would no know where to start with command prompt pip issues.
renaming file, installing pip3 commands, a bunch of other pip commands.
from tkinter import *
from binance.client import BinanceRESTAPI, BinanceWebSocketAPI
#And I have tried renaming my file test_app.py nothing works
bina = Binance()
rest_client = BinanceRESTAPI(pub_APIKEY, pvt_APIKEY)
ws_client = BinanceWebSocketAPI(pub_APIKEY)
master = Tk()
master.geometry("480x360")
mainloop( )
I get the following exception:
ModuleNotFoundError
No module named 'binance'
File "/Users/tha-messenja/blockchaintutorial/test_app.py", line 2, in <module>
from binance.client import BinanceRESTAPI, BinanceWebSocketAPI