Open githubbla opened 6 years ago
Is this a FA account?
do not think so. it's a regular login with a few accounts.
Can you confirm this still happens when using version 1.5.80?
Yes, still happens
Requirement already up-to-date: qtpylib in lib/python3.6/site-packages (1.5.80)
2018-09-13 01:29:27,791 [INFO] qtpylib.blotter: Connecting to Interactive Brokers... Server Version: 76 TWS Time at connection:20180913 01:29:27 IST 2018-09-13 01:29:28,824 [INFO] qtpylib.blotter: Connection established... 2018-09-13 01:29:29,550 [INFO] qtpylib.blotter: Contract Added [QQQ] 2018-09-13 01:29:29,842 [ERROR] qtpylib.blotter: [IB #321] Error validating request:-'bh' : cause - Invalid account code 'U2XXXX,U2XXXX,U2XXXX,U2XXXX,'.
When I specify accountCode = "U21234569" - one of the listed accounts, I getting following one:
2018-09-13 01:30:07,127 [ERROR] qtpylib.blotter: [IB #321] Error validating request:-'bh' : cause - Invalid account code '0'.
I'm trying to figure this out... Where do you specify accountCode = "U21234569"
?
` if name == "main": blotter = MainBlotter( dbhost = "localhost", # MySQL server dbname = "qtpy", # MySQL database dbuser = "qtpyuser", # MySQL username dbpass = "qtpypass", # MySQL password ibport = 4001, # IB port (7496/7497 = TWS, 4001 = IBGateway) accountCode = "U21234569" )
` now i get with or without accountCode same error: 2018-09-15 08:31:27,237 [ERROR] qtpylib.blotter: [IB #321] Error validating request:-'bh' : cause - Invalid account code '0'.
[WARNING] qtpylib.blotter: [IB #321] Error validating request:-'be' : cause - Invalid account code 'U20XXXXX,U21XXXXX,U21XXXXX,U21XXXXX,'.
Is there any workaround?