Hi, i am new in IBController, i made a code for autotrading but when i turn on IBController show me this error, " Error 321. An error occurred while validating the request:-'bq' : cause - Invalid account code ".
I saw many topics but i didn't find the solution. I have a demo account in Interactive Brokers, it can be the reason for that?
321: Server error when validating an API client request
bq : not listed by IB API error codes, but cause => 'Invalid account code'
Please check your TWS/AB setup is working fully, your AB database is connected via IB data Plug-in, configure port 7496 and localhost 127.0.0.1.
You have to configure port 7496 additional in 'TWS API' section.
I think you try something like backfill quotes/send order and it is not supported by IB with your demo account/login cerdentials through TWS, you are not authenticated correct (at)IB or your TWS/AB setup does not work.
To check out this first try to create orders direct in TWS.
Configure your ip/port settings correct, port must be the same configured in TWS API section
IB Controller - File - "Configure"
127.0.0.1 := local host := your PC
If your setup is correct you will be able to verify correct communication via
IB Controller - (TAB) "Messages", you can also check your account information is correct ...
In any case of errors you will find in (TAB) "Messages" other corresponding errors with TWS API
If you have errors, you have to check your TWS API settings. It is absolut necessary you enable option "Enable ActiveX and Socket Client". You will find all TWS API settings in TWS Main - Edit - "Global Configuration..."
Your settings should look like:
And YES, if everything is done correct you will see/find your current positions in AB IB Controller "Portfolio"
tnx for your reply. my problem as you can see from the pic. attach is that in the account code I got A at the end of the account that makes the problem, my question is.is it in the TWS setting or in the account set by the web?
again tnx for your help