FutunnOpen / py-futu-api

富途 OpenAPI Python SDK
Apache License 2.0
1.03k stars 221 forks source link

缺少必要的参数: securityFirm #84

Closed Timlo512 closed 3 years ago

Timlo512 commented 3 years ago

試運行 from futu import * pwd_unlock = 'XXXXX' trd_ctx = OpenHKTradeContext(host='127.0.0.1', port=11111) print(trd_ctx.unlock_trade(pwd_unlock)) print(trd_ctx.accinfo_query()) trd_ctx.close()

返回: (-1, '缺少必要的参数: securityFirm') (-1, '没有解锁交易,请先解锁交易')

FutuOpenD 5.1.1320 py-futu-api 3.25.0 python 3.7.6

hughex commented 3 years ago

请将py-futu-api 也更新到5.1,保持和FutuOpenD版本一致。

------------------ 原始邮件 ------------------ 发件人: "FutunnOpen/py-futu-api" @.>; 发送时间: 2021年4月7日(星期三) 下午2:22 @.>; @.***>; 主题: [FutunnOpen/py-futu-api] 缺少必要的参数: securityFirm (#84)

試運行 from futu import * pwd_unlock = 'XXXXX' trd_ctx = OpenHKTradeContext(host='127.0.0.1', port=11111) print(trd_ctx.unlock_trade(pwd_unlock)) print(trd_ctx.accinfo_query()) trd_ctx.close()

返回: (-1, '缺少必要的参数: securityFirm') (-1, '没有解锁交易,请先解锁交易')

FutuOpenD 5.1.1320 py-futu-api 3.25.0 python 3.7.6

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Timlo512 commented 3 years ago

Solved