开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date

Re: Why does my IBKR (Interactive Brokers) bot sometimes not receive data?

 

Hey Mark and 闯ü谤驳别苍, thank you both for replying and sorry about the delay!
Part of the problem is that I don't know how to capture possible error routes, and I'd be very grateful for any suggestions. Because of my time zone, I start my bot when the market is still closed, but it starts looking for trades soon after market opens. There are no dis/reconnection attempts reported in the terminal. I believe my code gets up to the point where it just needs to receive data (it prints something like "ready to trade" as one of the last few steps). When this problem occurs, no data at all goes into the CSV for that trading session.

I haven't seen any of those error codes in the terminal. I have enabled API logging with market data, and totally forgot about it! Thanks, I'll check the log and see what I understand from it.


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

开云体育

First thank you for all the new links for me to look into this next time, VERY useful.

Secondly? the IB platform seems to be ok now. It was strange it hit just one account but...

thanks again


On 6/12/22 17:08, 1152dent wrote:

I agree, the DATA icon just went green BUT the watchlist is still flaky.?

On 6/12/22 17:05, 闯ü谤驳别苍 Reinold via groups.io wrote:
But something must be going on. I have a yellow "DATA" button and various disconnected farms:


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

开云体育

I agree, the DATA icon just went green BUT the watchlist is still flaky.?

On 6/12/22 17:05, 闯ü谤驳别苍 Reinold via groups.io wrote:

But something must be going on. I have a yellow "DATA" button and various disconnected farms:


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

But something must be going on. I have a yellow "DATA" button and various disconnected farms:


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

开云体育

Hi 闯ü谤驳别苍

I did all the "data" more info stuff but thanks for covering it so completely. Did the network connectivity check, that what I meant by saying that the IB server check was "success" across the board, sorry I wasn't clear.

didn't know about thanks for that.

"What does your TWS "DATA" button report say?"? It says that I am connected "successfully" to all servers globally.

As I type parts of the watchlist are been populated so this seems like this problem is effecting just this account. We have other accounts logged in right now and they are fine.?

I think this is IB having data problems on this account and that's disappointing but I'll wait it out.

happy trading next week

dent



On 6/12/22 16:51, 闯ü谤驳别苍 Reinold via groups.io wrote:

You can use for a high-level overview of IBKR system status and maintenance activities.

You can also follow the "DATA" button in the upper right corner of TWS. There is a "More Info" link that gets you to the article "How to check and solve connectivity issues affecting TWS" at . Among a few thoughts on connectivity issues, that article also has a link to a quick browser based network connectivity check at

I restarted my TWS at 16:30 (just like every Sunday) and it works fine. What does your TWS "DATA" button report say?

闯ü谤驳别苍


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

You can use for a high-level overview of IBKR system status and maintenance activities.

You can also follow the "DATA" button in the upper right corner of TWS. There is a "More Info" link that gets you to the article "How to check and solve connectivity issues affecting TWS" at . Among a few thoughts on connectivity issues, that article also has a link to a quick browser based network connectivity check at

I restarted my TWS at 16:30 (just like every Sunday) and it works fine. What does your TWS "DATA" button report say?

闯ü谤驳别苍


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

开云体育

Hi 闯ü谤驳别苍

thanks for the SPEEDY reply.? It's 16:30 CST and still no connection. I think you might be right about the maintaince so I'll just wait it out.? Do you know of any IB site where they log maintenance?

Seems that this is isolated to just the one account as we can login to other IB accounts just fine.

thanks again as always


On 6/12/22 15:44, 闯ü谤驳别苍 Reinold via groups.io wrote:

Any chance IBKR might have still been doing some weekend maintenance when you tried to connect. We sometimes see that but everything usually works by 16:00 US Central time on Sundays, an hour before the GLOBEX futures start trading. Pings and basic network stuff works fine in those cases, but account management and data services would be spotty.

My TWS must have lost connection earlier today as well, but works fine now.

闯ü谤驳别苍


Re: run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

Any chance IBKR might have still been doing some weekend maintenance when you tried to connect. We sometimes see that but everything usually works by 16:00 US Central time on Sundays, an hour before the GLOBEX futures start trading. Pings and basic network stuff works fine in those cases, but account management and data services would be spotty.

My TWS must have lost connection earlier today as well, but works fine now.

闯ü谤驳别苍


run the tests to IB data farm and all succeed BUT TWS desktop NOT connecting???

 

Hi all

I use a laptop to run tws desktop ( linux) and it normally works perfectly BUT tonight the data icon is flashing and it's telling me that all the servers are disconnects. BUT when I run IB's test harness it says all comms to data servers ( Euro, Asia, USA) succeed.

I'm logged in and can see my mosaic layout but there is no data.

has anyone seen this before?

I have tested out the laptop's connectivity to the web and it's fine, traceroute gives it a clean bill of health and I can ping 8.8.8.8 so the laptop's tcpip is working fine.


thanks


Re: IB contract identifier (conID) for META?

 

Thanks both for your replies. Had not found the IB contract search tool previously - super useful!


Re: IB contract identifier (conID) for META?

 

IB's conid for FB/META stock has not changed (107113386). Neither has its primary exchange (NASDAQ), nor currency (USD) changed. What has changed is the ticker symbol (from FB to META) and the company name.

I often use IB's contract search tool to find what I'm looking for: https://www.interactivebrokers.com/en/?f=%2Fen%2Fgeneral%2Fcontact%2FtipsContractsDatabaseSearch.php as it allows me to filter more easily than trying to do so via software and the API. Using this tool shows that there is another stock with ticker symbol META, and currency USD: Wisdom Tree Industrial Metals Enhanced (this is an ETF).


Re: IB contract identifier (conID) for META?

 
Edited

While it has been suggested in other posts, hard-wiring conIds is not a good idea. The best practice is that you call with a query that uniquely identifies the symbol you are looking for and use the returned contract for data retrieval or other API calls.

In your case, META trades on so many exchanges that you will have to provide the exchange (or "SMART") you are interested in. META/STOCK/USD/SMART gives you exactly one contract.

You can always use to experiment or refine your query.

闯ü谤驳别苍


IB contract identifier (conID) for META?

 

Hi,

Trying to get historical bar data for Facebook/META, and previously simply specifying the symbol as "FB" worked. Now that the symbol has changed to META, I get a "[The contract description specified for META is ambiguous.]" error. Previous postings on other stocks, e.g. ABNB, detail using conID will resolve the ambiguity. What is the conID for META? And for the future, how do you find the IB contractor identifier (conID) for a given equity?

Thanks!


Re: C++ upgrade api to 10.11, __bid64.. error

 

At the time, I downloaded the Intel source and imported it into VC. It seemed to compile fine but the?resulting?library didn't work with TWS so I stuck with 32bit for a while.?
However, when I upgraded to 10.15.02, the library included with the TWS API (TWS API\source\CppClient\client\lib\libbid.lib) turned out to work well for 64 bit so that's what I'm using now. (I use Qt 6.3 as my framework)?

On Sat, Jun 11, 2022 at 7:51 AM <taral@...> wrote:
HI Frederick,
Were you able to build 64 bit binaries? Facing same issue here.?


Re: C++ upgrade api to 10.11, __bid64.. error

 

HI Frederick,
Were you able to build 64 bit binaries? Facing same issue here.?


Re: Why does my IBKR (Interactive Brokers) bot sometimes not receive data?

 

I second Mark's remark about your error paths. Are you sure you capture all possible error reporting callbacks? It is rare (though now unheard of) that TWS API calls silently fail without error messages. If your issue is connectivity related I would expect you .

And what does your TWS/IBGW think is happening? Have you enabled "API logging with market data"?

闯ü谤驳别苍

On Fri, Jun 10, 2022 at 06:13 PM, mark collins wrote:

Bryce,
?
So many questions raised by your statement.
What language are you using/are you capturing all the possible error routes? Are the markets open at the times you see the fault, are you printing bars, ticks or changes? Is there any disconnection/reconnection attempt reported - are the data servers going offline (they report when they connect and disconnect)... Lastly, populate your code with traceable statements, timestamp them and compare when the CSV stops updating with the activity in the code at the time.
Just some ideas.
?
Best wishes,
?
?
M

On Fri, 10 Jun 2022 at 23:14, Bryce Turner <bryce.turner.axiom@...> wrote:
I have a bot for printing price data to csv format. Sometimes, no data has been added to the csv. This happens despite no error messages being printed in the terminal. I assume the problem is with the connection between my bot and IBKR since this issue seems to happen randomly and I'm not changing my bot code. I am not sure how to go about diagnosing the problem, and would appreciate any suggestions or information. Thanks!
?

?

?



--
+44 (0) 7528 551604?
Gulfstream Software - Winner Risk Management Awards 2010
This message is subject to :


Re: Why does my IBKR (Interactive Brokers) bot sometimes not receive data?

 

Bryce,

So many questions raised by your statement.
What language are you using/are you capturing all the possible error routes? Are the markets open at the times you see the fault, are you printing bars, ticks or changes? Is there any disconnection/reconnection attempt reported - are the data servers going offline (they report when they connect and disconnect)... Lastly, populate your code with traceable statements, timestamp them and compare when the CSV stops updating with the activity in the code at the time.
Just some ideas.

Best wishes,


M


On Fri, 10 Jun 2022 at 23:14, Bryce Turner <bryce.turner.axiom@...> wrote:
I have a bot for printing price data to csv format. Sometimes, no data has been added to the csv. This happens despite no error messages being printed in the terminal. I assume the problem is with the connection between my bot and IBKR since this issue seems to happen randomly and I'm not changing my bot code. I am not sure how to go about diagnosing the problem, and would appreciate any suggestions or information. Thanks!
?



--
+44 (0) 7528 551604?
Gulfstream Software - Winner Risk Management Awards 2010
This message is subject to :


Why does my IBKR (Interactive Brokers) bot sometimes not receive data?

 

I have a bot for printing price data to csv format. Sometimes, no data has been added to the csv. This happens despite no error messages being printed in the terminal. I assume the problem is with the connection between my bot and IBKR since this issue seems to happen randomly and I'm not changing my bot code. I am not sure how to go about diagnosing the problem, and would appreciate any suggestions or information. Thanks!
?


Re: How Long does it take orders to reach market.

 

How are you measuring?


On Thu, Jun 9, 2022, 8:15 PM FreeGoldRush <mike@...> wrote:
40ms to 1s is also my experience.? The network delay between my computer and the IBKR API server used by TWS is just a few ms, so in my case it is not network delay that can be fixed by co-locating.


Re: How Long does it take orders to reach market.

 

40ms to 1s is also my experience.? The network delay between my computer and the IBKR API server used by TWS is just a few ms, so in my case it is not network delay that can be fixed by co-locating.