-
Notifications
You must be signed in to change notification settings - Fork 22
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
Basic understanding how to start? #5
Comments
It's probably very close to working! Try: It will also need your account id and gateway port (if different than the default of 4001) as described in the readme somewhere: https://github.com/mattsta/icli?tab=readme-ov-file#download-icli |
vim env.sh #!/bin/bash export ICLI_IBKR_ACCOUNT_ID="U12345678" then then source env.sh then poetry run icli |
That is one way. It also supports a .env.icli file where you can place those values directly into a file and they are read on startup (noted in the README). Also, command lines support single-line temporary variables so you can also do:
|
I'm receiving another error in a fresh install, with or without the .env.cli file. Looks like the else result should be two single quotes, not two double quotes.
|
oh, good catch. It's using a python 3.12 string feature but I should probably fix it so it works on older versions. Until I can fix it in the repo, for now you could just change the section from: >= usePrice else "":<6}" to: >= usePrice else '':<6}" and it should work for that case. |
Thank you @mattsta, I was able to figure that out and actually considered posting it as a pull req, glad I saw this :) Not sure if this is the best place for this, but I'd also like to get this working but I suspect an issue with ib_async (and also the retired ib_insync) which I posted here . My apologies for tagging you in both, if you have any time to lend insight to this I would really appreciate it, but thank you for your contributions either way! Here is what my
Each of those Failed to connect comes up the second the "allow" dialog in TWS comes up. Whitelisting doesn't help and neither does extending the timeout because something is causing a disconnect just as we have success. Just a little background, I have been successfully using the ib_insync library for trading through TWS for years up until 2 or 3 weeks ago when all these issues started. Strangely, the old ruby implementation from ibkr connects and submits trades successfully, its just very annoying to use and many of the augmenting libraries are obsolete. Not to get off topic, just to say I did verify that TWS is still set up correctly as it always has been for API connections. |
Despite my issues above connecting through TWS, I was able to start icli successfully by running the IB Gateway on localhost 👍 |
Hi there,
Good that you have created some tool like this but I fail to understand how to use it. I'm just a noob to python but i have been using/writing in Unix as well as perl scripts.
I merely installed pyhton3, pipx, poetry and than you installation command you gave.
and try to run the tool (hoping that it is installed somewhere else and saved in the PATH. But nothing comes out. Could you please give some elobaration in your usage deescription so someone noob like me can also understand how to use it ?
The text was updated successfully, but these errors were encountered: