TqSdk2.TqAccount - 中继实盘类

class tqsdk2.TqAccount(self: tqsdk2.tqsdk2.TqAccount, broker_id: str, account_id: str, password: str, default_trading_unit: int = 0, _td_url: str = '')

天勤2实盘类, 通过中继服务器接入券商柜台.

Args:

broker_id (str): [必填] 期货公司, 支持的期货公司列表见 https://www.shinnytech.com/blog/tq-support-broker/.

account_id (str): [必填] 帐号.

password (str): [必填] 密码.

default_trading_unit (int): [可选] 默认交易单元, 如果指定该参数, 后续下单查询等操作均视为对该交易单元的操作.