-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this work with on the apple silicon version of tws ? #204
Comments
Attach your IBC logfile. |
I have a similar problem. Is it still not working on apple silicon version of tws? |
It has always worked with Apple silicon. It works anywhere that TWS/Gateway work. But you do need to follow the instructions! Look at the comment that describes the TWS_MAJOR_VRSN variable in |
I don't understand the documentation completely... |
After changing 1019 to 10.19, I can succesfully use ibc! |
The comments in the .sh files make it pretty clear which parts you may need to change, and which parts you shouldn't. The only script files where you may need to make changes are I realised yesteday that the default setting for Why do you think it's weird that you 'don't need to type my username and password, but I can still log in my own account'? Logging in automatically is the main purpose of IBC. Perhaps I'm misunderstanding what you mean. |
Before I even try to type username and password in config.ini and twsstartmacos.sh/gatewaystartmacos.sh, I can login in my account rather than demo account, is it normal? |
First, no need to apologise about your 'poor English': it seems pretty good to me! I don't speak a word of Chinese (or whatever your native language is)... But I really don't understand what you're doing. You mention 'demo account'. What do you mean by that? IBKR offer a free trial demo account, which you can use for a limited time to try out their service and see if you want to open a real account. Do you mean that? Or do you mean your paper-trading account? I don't know whether IBC will work with the free demo account, because I'm unable to test it. It certainly works with a paper-trading account. Don't put your username and password in twsstartmacos.sh or gatewaystartmacos.sh, it's not a good idea. Just put it in config.ini. If you run IBC without putting your username and password in config.ini (or the .sh files), then it will just give you the normal login dialog and wait for you to enter your username and password there, as if you were starting TWS manually. So make sure IBC/TWS are not running, put your username and password in config.ini, and then start IBC. I don't know whether anything I've written here will clarify things for you. If not, please explain step-by -step what you are doing, and where you have a problem. |
"If you run IBC without putting your username and password in config.ini (or the .sh files), then it will just give you the normal login dialog and wait for you to enter your username and password there, as if you were starting TWS manually." IB API Authentication Settings------------------------------Your TWS username:IbLoginId=edemo Your TWS password:IbPassword=demouser (In .sh file, I only changed TWS_MAJOR_VRSN to 10.19 after I realized that I should plus a dot) That's why I'm so confused... |
When you run IBC, it uses whatever information is in config.ini at the time. Any changes you make to config.ini while IBC is running have no effect until next time you start it. So just don't start IBC until after you've put youir correct username and password in config.ini. There's no reason at all to run it before then . The Getting Started section of the User Guide says this:
So it doesn't tell you to start IBC until after you've done steps 7 and 8. By the way, the edemo/demouser username and password relate to an old demo system that IB used to provide: it was shut down several years ago. config.ini contains these as defaults just because that what it's always had. Nothing else would make any more sense, so I've just left it like that. |
Actually, I run it without setting my username and password in the IbLoginId and IbPassword settings on purpose. |
IBC doesn't modify TWS's behaviour in any way. All it does is the same things the user might do, but it does them automatically so that the user doesn't have to do them. So if you put the wrong user name and password in config.ini, what will happen is exactly the same as if you run TWS manually, (ie not using IBC)and then enter the wrong username and password. It's pointless wasting your time (and mine!) doing this sort of experimenting. Why don't you just put the correct username and password in there, and then run it. You'll never need to touch it again unless you want to run with a different username/password. |
Okay... it just feels kind of weird that it can automatically use the username and password typed before😅 |
No, I sitll don't understand what you mean. Let me try to explain what happens. First, without IBC:
Now consider what happens when running under IBC:
To summarise, when you are using IBC the only effect it has on login is to enter the values for username and password that it read from config.ini and click the login button. And TWS behaves exactly as if it were a physical user logging in (it doesn't know that it isn't!). So when you say "it just feels kind of weird that it can automatically use the username and password typed before", that doesn't make any sense to me. IBC uses whatever is in config.ini. It's as simple as that. |
@rlktradewright this is a really good explanation of what is going on, please add it to the docs |
After I deleted all the files, redownload, and followed the instructions to set .ini and .sh again, all the problems were gone. |
@bug-or-feature Thanks. I won't promise anything - these things take time, and spending time on IBC is something I rather begrudge. We'll see... |
Does this work with on the apple silicon version of tws ? I tried the standalone version but it does not work.
I have installed the offline 10.19 version of both gateway and tws and i get this error,
The text was updated successfully, but these errors were encountered: