Sinotrade/sinopac_gateway

Just can't run sinopac_gateway

Opened this issue · 0 comments

Lots of errors, below is one of them.

line 327, in get_stock_account_unreal_profitloss
stock_type, currency, filter_rule, account
File "shioaji\backend\http\main.pyx", line 62, in shioaji.backend.http.main.HttpApi.get_stock_account_unreal_profitloss
File "shioaji\backend\http\account.pyx", line 214, in shioaji.backend.http.account.AccountUnRealProfitLoss.init
File "shioaji\backend\http\account.pyx", line 217, in shioaji.backend.http.account.AccountUnRealProfitLoss.update
File "shioaji\backend\http\stock\account.pyx", line 52, in shioaji.backend.http.stock.account._query_unreal_profitloss
AttributeError: 'NoneType' object has no attribute 'broker_id'