realtimeBar no longer responsive

48 views
Skip to first unread message

Derek Tishler

unread,
Nov 9, 2016, 9:23:11 AM11/9/16
to IbPy Discuss
I have been using realtimeBar with success but just recently I have noticed that it is no longer updating every 5 seconds when new price data is shown in TWS. Sometimes  Is anyone else having similar trouble?

Derek Tishler

unread,
Nov 9, 2016, 9:40:53 AM11/9/16
to IbPy Discuss
I was able to fix the trouble with a sleep() call.

I was using code that constantly checked the length of a pandas dataframe to ensure new data has come in for the real time bars. It seems that recently this became an issue and the cpu was going nuts and somehow missing or preventing a write to the dataframe to allow new data to come in?

Either way I have the system sleep for .25 seconds between checks and now everything is back to working fine. When the price action is updated in TWS, I then see my system also immediately react as it was doing before.

Alejandro Mazzuca

unread,
Nov 9, 2016, 2:32:35 PM11/9/16
to ibpy-d...@googlegroups.com
Tomorrow there is an IB Webinar, probably will interest you.

Topic: QuantInsti - Implement Algo Trading coded in Python using Interactive Brokers API 
Host: Cynthia Tomain 
Date and Time: 
Thursday, November 10, 2016 9:30 am, Eastern Standard Time (New York) 


Regards
Alejandro.

--
You received this message because you are subscribed to the Google Groups "IbPy Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibpy-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to ibpy-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/ibpy-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages