Skip to content

Commit

Permalink
fix sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
nooperpudd committed Jan 20, 2021
1 parent ea20acd commit cc8018d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/trader_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def main():
user_trader.Create()
user_trader.RegisterFront(server)
user_trader.SubscribePrivateTopic(2) # 只传送登录后的流内容
user_trader.SubscribePrivateTopic(2) # 只传送登录后的流内容

user_trader.Init()

Expand All @@ -189,7 +188,7 @@ def main():

user_trader.ReqSettlementInfoConfirm(settlement_info, user_trader.request_id)

trader_account = ApiStructure.QryTradingAccountField(BrokerID=broker_id, InvestorID=investor_id)
trader_account = ApiStructure.QryTradingAccountField(BrokerID=broker_id, InvestorID=investor_id, BizType="1")
user_trader.ReqQryTradingAccount(trader_account, user_trader.request_id)

user_trader.Join()
Expand Down

0 comments on commit cc8018d

Please sign in to comment.