tag:blogger.com,1999:blog-261139923818144971.post8586618194497765371..comments2024-03-29T07:20:07.753+00:00Comments on This Blog is Systematic: Things I wish interactive brokers would do with their API softwareRob Carverhttp://www.blogger.com/profile/10175885372013572770noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-261139923818144971.post-89666707397544566562017-03-31T15:39:28.152+01:002017-03-31T15:39:28.152+01:00You can actually get access to delayed market data...You can actually get access to delayed market data if you call reqMarketDataType(3) before you request your market data. But I have been told you cannot get access to historical data through API without a live data feed subscription.Anonymoushttps://www.blogger.com/profile/02013559549614917886noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-38197119810038347752017-03-31T15:35:55.575+01:002017-03-31T15:35:55.575+01:00The delayed market data is available after you cal...The delayed market data is available after you call the reqMarketDataType(3) function and the field IDs will be changed in the msg from the server. But interestingly, you cannot get historical data from API without a live data feed subscription. Anonymoushttps://www.blogger.com/profile/02013559549614917886noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-37205641414511004592016-08-29T11:46:40.649+01:002016-08-29T11:46:40.649+01:00Hello! Anybody use PTMC platform which recenly has...Hello! Anybody use PTMC platform which recenly has connected to Interactive Brokers? http://www.financemagnates.com/forex/technology/pfsofts-multibroker-platform-protrader-now-connects-to-interactive-brokers/Anonymoushttps://www.blogger.com/profile/12084144966758167469noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-41306865069605042062016-08-29T11:41:56.230+01:002016-08-29T11:41:56.230+01:00As far as I know, yes you need a GUI.As far as I know, yes you need a GUI.Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-71959617246004183222016-08-23T17:12:59.998+01:002016-08-23T17:12:59.998+01:00This comment has been removed by the author.Chrishttps://www.blogger.com/profile/15651123175166218603noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-15923877248701222302016-08-07T15:51:40.358+01:002016-08-07T15:51:40.358+01:00Thanks Dan. Looks niceThanks Dan. Looks niceRob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-52070057726749753252016-08-07T14:27:56.380+01:002016-08-07T14:27:56.380+01:00Another tip, in case you want to switch back to co...Another tip, in case you want to switch back to command line:<br />https://mosh.mit.edu/autoencoderhttps://www.blogger.com/profile/15276894431071453667noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-85129556717707492522016-03-10T07:43:00.533+00:002016-03-10T07:43:00.533+00:00Yeah I run on Windows :)
That's quite unusual ...Yeah I run on Windows :)<br />That's quite unusual about your paper account. When you log into TWS under your username, do you see only your live account details? Or do you see the paper details as well?<br /><br />I think when you set up a paper account, via account management, you have enter a username. I always entered a separate name but possibly you can enter the same name as live?Anonymoushttps://www.blogger.com/profile/09101279632106287673noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-24172229993695471152016-03-10T06:32:56.381+00:002016-03-10T06:32:56.381+00:00Hi Craig
My paper account has the same username as...Hi Craig<br />My paper account has the same username as my live one (though a different account number) - I thought that was the norm?<br /><br />I haven't tried the activity monitor. Unfortunately a quick google reveals it only runs on windows machines...<br /><br />RobRob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-50001523435611896642016-03-09T21:20:45.640+00:002016-03-09T21:20:45.640+00:00Hi Rob
You should be able to run two instances of ...Hi Rob<br />You should be able to run two instances of the IB Gateway on the same machine, if you log in as different users on the two instances.<br /><br />Your test/paper account should have a separate login for it.<br /><br />For example, I have a server set up to run both a Gateway client with my live account under one username and another client with the paper account under a separate username.<br /><br />Also have you tried the IB Customer Activity Monitor? It allows you to view (read-only) orders and executions on your account, even when you have IB Gateway/TWS open. I've found this to be very useful sometimes :)<br /><br />Regards<br />CraigAnonymoushttps://www.blogger.com/profile/09101279632106287673noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-46005824521271515252016-02-07T20:01:11.654+00:002016-02-07T20:01:11.654+00:00Ah gotcha thanksAh gotcha thankscosmohttps://www.blogger.com/profile/05764463403728122772noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-27030043512355200282016-02-05T06:07:11.824+00:002016-02-05T06:07:11.824+00:00No, that's exactly what you *can't do*. Un...No, that's exactly what you *can't do*. Unless you have multiple accounts (with different logins).<br /><br />You can run multiple clients though. Just need to add the client local IP address to the whitelist on the gateway software.Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-63907831988932804712016-02-04T23:38:53.300+00:002016-02-04T23:38:53.300+00:00Hi Rob does this mean that you can run multiple in...Hi Rob does this mean that you can run multiple instances of the API Gateway on multiple machines on the same network simultaneously?cosmohttps://www.blogger.com/profile/05764463403728122772noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-68958767123376075942016-02-02T16:32:03.626+00:002016-02-02T16:32:03.626+00:00I think its really hard to find a Broker that has ...I think its really hard to find a Broker that has worse manual trading interfaces. It seems that they don't care that people are only trading 1/5 of what they would because of their rubbish interfaces. TWS is a piece of junk and webtrader keeps logging me quicker than I can enter an order... IB could quadruple their income from trade commissions if they employed some decent designers and coders for 12 month. Whoever wrote/design the rubbish they have now should be take out and shot in the testicles and that would only be 1/2 as painful as using one their interfaces!<br />Anyone have any better solutions I would love to know... I'm not going to start writing my own interface and fighting with any of their API servers.<br />Rgds<br />TonyAnonymoushttps://www.blogger.com/profile/10667725662376629029noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-86897199934529050352015-08-07T08:54:52.957+01:002015-08-07T08:54:52.957+01:00Thanks JB.Thanks JB.Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-53216886019129819832015-08-07T05:18:49.193+01:002015-08-07T05:18:49.193+01:00To help you solve Interactive Brokers TWS performa...To help you solve Interactive Brokers TWS performance issue (freezing) - you may want to increase amount of memory your Java Virtual Machine is allowed to use when its running. You can find instructions here:<br /><br /><a href="http://www.tradinggeeks.net/2014/05/interactive-brokers-performance-optmization/" rel="nofollow">http://www.tradinggeeks.net/2014/05/interactive-brokers-performance-optmization/</a>Anonymoushttps://www.blogger.com/profile/12399206488483532752noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-41848465169958080082015-08-07T05:17:34.511+01:002015-08-07T05:17:34.511+01:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/12399206488483532752noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-18376420015808548222015-04-01T00:10:46.868+01:002015-04-01T00:10:46.868+01:00if you want a process to persist, install vncserve...if you want a process to persist, install vncserver on the server (apt-get install vncserver), run a vncserver session via ssh (vnc4server :1). "vnc" into the server (vncviewer 192.168.1.100:1), run xterm in the vnc session, run whatever command-line process you'd like in xterm, then just exit out of the vnc session. the vnc server will persist, together with the open xterm window and attached running processes. you don't need to keep the ssh session open during any of this. the vncserver session stays alive after ssh is terminated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-83101307919371570672015-03-24T11:50:35.874+00:002015-03-24T11:50:35.874+00:00You're welcome. I enjoy reading your blog so g...You're welcome. I enjoy reading your blog so glad to try and help out.Tobias Brandthttps://www.blogger.com/profile/02713562657485250692noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-88566162647401173002015-03-24T11:42:38.335+00:002015-03-24T11:42:38.335+00:00Re: being out of your depth, that makes two of us ...Re: being out of your depth, that makes two of us :-)<br /><br />IB controller is something I looked at a while ago, unfortunately it won't work unless you disable the physical security on your account (displays codes in CAPTCHA form, for which you have to enter the corresponding matching codes on a plastic card). Right now the minor inconvenience of having to plug a bunch of stuff in every few weeks doesn't outweigh the concerns I have about dropping back to just username/password security.<br /><br />Thanks for all your thoughts on this issue though.<br />Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-67133268170317688712015-03-24T11:22:40.179+00:002015-03-24T11:22:40.179+00:00Ok, if IB Server is X based then I'm out of my...Ok, if IB Server is X based then I'm out of my depth.<br /><br />Maybe this post is of some help?<br />http://stackoverflow.com/questions/12309389/keeping-a-x11-application-alive-which-i-can-disconnect-from-and-reconnect-to-af<br /><br />On a somewhat different note, have you looked at this ib-controller package? <br /><br />https://github.com/ib-controller/ib-controller<br /><br />By the sound of it, it may allow you to sort out your automated login issue.Tobias Brandthttps://www.blogger.com/profile/02713562657485250692noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-6796665948393913312015-03-24T11:02:48.003+00:002015-03-24T11:02:48.003+00:00tmux doesn't work eithier but slightly differe...tmux doesn't work eithier but slightly different issue. When I detach the session I get the same problem that I can't shut the client side terminal window that the ssh was run from. If I then force close it I can reconnect to the orphan tmux window, but before I've done that the IB server terminates itself.<br /><br />The IB server is a java program, which doesn't seem to like being detached from the screen.<br /><br />Incidentally I have some sporadic success using x11vnc / vncviewer which is a remote display server / client rather than detachable window solution. It doesn't seem to consistently work however, which is a bit frustrating. It did work today however.Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-75536835812248635102015-03-24T06:16:38.056+00:002015-03-24T06:16:38.056+00:00Hi Rob,
I recommend using tmux instead of screen....Hi Rob,<br /><br />I recommend using tmux instead of screen. I can't remember the exact reasons anymore but I looked into both a couple of years ago and decided tmux was the way to go (I think tmux has a more modern client/server architecture and a more liberal BSD licence).<br /><br />Your screen problem sounds very odd though. screen's raison d'etre is to allow the persistence of long-running processes after closing the login shell so what you described should work.<br /><br />Maybe give tmux a try?Tobias Brandthttps://www.blogger.com/profile/02713562657485250692noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-3723937650475617372015-03-23T13:26:44.435+00:002015-03-23T13:26:44.435+00:00I checked out screen and unfortunately it doesn...I checked out screen and unfortunately it doesn't do the trick. <br /><br />ssh to headless server - works<br />run screen on headless server - fine<br />run IB gateway within screen - fine<br />detach screen session - fine<br /><br />The problem then begins if I try and close the terminal window where I did the original ssh from. It hangs, and if I force close it or turn off the machine then the detached screen session dies, taking the running server with it. I guess there is something about the server that doesn't like being detached.<br /><br />Anyway thanks for the idea, but back to the drawing board....Rob Carverhttps://www.blogger.com/profile/10175885372013572770noreply@blogger.comtag:blogger.com,1999:blog-261139923818144971.post-42823796544612603162015-03-21T19:59:16.151+00:002015-03-21T19:59:16.151+00:00Hello Rob. I use ActiveX with Visual Basic 6.0, so...Hello Rob. I use ActiveX with Visual Basic 6.0, so this is not necessarily a second spreadsheet based solution. But of course this happens because I don't code in C++ or Java, so I haven't had much choice...Helder Palarohttps://www.blogger.com/profile/18418327709446104382noreply@blogger.com