顯示已登入帳號

顯示目前已登入的帳號資訊。

input
api.login_info() 
output
{'證券': {'account': 'xxxxxxx', 'account_flag': '證券', 'broker_id': 'yyyy', 'group': '', 'trader': ''},
'複委託': {'account': 'xxxxxxx', 'account_flag': '複委託', 'broker_id': 'yyyy', 'group': '', 'trader': ''},
'期貨': {'account': 'xxxxxxx', 'account_flag': '期貨', 'broker_id': 'yyyyyyy', 'group': '', 'trader': ''}}

Attribute

無需設定參數,只調用實例本身。

Return Attribute

參數 說明
key 帳戶類型,如「證券」、「期貨」、「複委託」。
account 帳號。
account_flag 帳戶類型,ex:’證券’,’期貨’,’複委託’
broker_id 券商代碼。