Closed muh005 closed 1 year ago
Run:
from futu import * pwd = 'XXXXX' trade_context = OpenUSTradeContext(host='127.0.0.1', port=11111) print(trade_context.unlock_trade(pwd)) print(trade_context.accinfo_query())
Return:
2023-04-06 08:06:09,492 | 36718 | [open_context_base.py] _send_init_connect_sync:311: InitConnect ok: conn_id=16, host=127.0.0.1, port=11111, user_id=XXXXXX (-1, 'ERROR. No one available account!') (-1, 'Something wrong with the specified securities firm ')
FutuOpenD 7.01.3308 py-futu-api 6.3.2808 python 3.6.6
Closed with the following fix
trade_context = OpenUSTradeContext(host='127.0.0.1', port=11111, security_firm=SecurityFirm.FUTUINC)
Run:
Return:
2023-04-06 08:06:09,492 | 36718 | [open_context_base.py] _send_init_connect_sync:311: InitConnect ok: conn_id=16, host=127.0.0.1, port=11111, user_id=XXXXXX (-1, 'ERROR. No one available account!') (-1, 'Something wrong with the specified securities firm ')
FutuOpenD 7.01.3308 py-futu-api 6.3.2808 python 3.6.6