This code can only run on windows machine (becuse win32ui
is available only on Windows)
install win32ui
using pip install pywin32
, and import it using import win32ui
install Spark
from https://sparktrader.com/download
make sure that the Spark app is running in the background, when you run the code