How should this work? - German TWS - don't work with history? #38
Replies: 6 comments 1 reply
-
Hi Name, Your connection looks correct for paper trading account.
"history data" is the issue here. The program does NOT download your existing trades. (it doesn't download the data because there is no api that allows you to do that!). Let me explain. For example, if you have a lot of existing trades in TWS and then start the program for the first time, you will NOT see all of those existing trades. The trade first needs to exist in both the program AND in TWS. You need to create the trade within the program first. Once the trade exists within the program, then the program interacts with TWS to track the trade from that point forward. Still, even after creating the trade within the program, you will NOT get all of the history of the trade from TWS (there is no api that does this). So, for example, you would not be able to retrieve all of the Option's rolls, etc. You need to create those types of transactions locally within the program. Currently, there is no import existing trades from TWS type of feature. That would be a good feature and would probably involve having the user create some type of custom report from the Interactive Broker's web portal. I think web programs like "Wingman" does this but it is extremely cumbersome and unintuitive. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the link. I really appreciate it and I will investigate how that program imports the historical data from IB. Hopefully I can implement a similar import for my program. 👍 |
Beta Was this translation helpful? Give feedback.
-
I am re-opening this discussion. I am able to download all the existing positions. I do this already because of the "Reconcile" functionality within TradeTracker. Therefore, I have all of the existing "OPEN" positions, however I do not have any financial history for those positions. My plan is to design logic so that if the trade database is empty on startup, the program will prompt the user if they wish to import existing data. If yes, then the program will attempt to connect to IBKR and download the data. I will create a visual editor where the user can take the downloaded trade data and organize them into the correct groupings. This is not perfect, but it certainly will gives the user a great head start on using existing data. They could always edit the transactions to change things like transaction date, etc. |
Beta Was this translation helpful? Give feedback.
-
Here is a first look at the Import Trades dialog in action. |
Beta Was this translation helpful? Give feedback.
-
Initial working code to import existing IBKR / TWS positions. If your local database is empty, then you will get a notification question asking if you wish to import existing online data. If yes, a dialog will appear where you can manipulate the incoming trades into logical trade groups. |
Beta Was this translation helpful? Give feedback.
-
This is implemented and is in Version 4. |
Beta Was this translation helpful? Give feedback.
-
Hello,
this software could be nice. It's not working as it should (i guess so) for me.
The connection is working, but there are no historical datas (tested on live and paper trading).
I tested it in german TWS and i changed to english TWS - connection is working.
How it is supposed to work? I don't find a manual but i guess it should be self explained.
This is the API setting in a german TWS. Connection is working, but i have no history data.
I also tried the setting "API English transfer" in ASCII 7 and "OS-Codepage C++) (API-Mitteilungen auf Englisch übermitteln).
Thanks in advance
Name
Beta Was this translation helpful? Give feedback.
All reactions