shioaji 永豐API
Quick Start1234!pip install shioaji!pip install -U shioaji# docker run -it sinotrade/shioaji:latest# docker run -p 8888:8888 sinotrade/shioaji:jupyter
Login123456789101112131415161718import shioaji as sjprint(sj.__version__)print("*"*20)# 模擬模式api = sj.Shioaji(simulation = True)# 需到官方網站申請APIaccounts = api.login("YOUR_API_KEY", "YOUR_SECRET_KEY")print(accounts)# 憑證需要先下載永豐windows App ,OS X 就沒有研究了api.activate_ca( ca_path="/c/your/ca/path/Sinopac.pfx ...