Strange error message : onERROR(): Error validating request:-'xc' : cause - Snapshot requests limitation exceeded:100 per 1 second(s)

76 views
Skip to first unread message

Simba DIARRA

unread,
Aug 28, 2013, 2:46:43 PM8/28/13
to tbg-quant...@googlegroups.com
Hi,

I am getting below error message when subscribing to EUR/USD in IB. Is this expected? what's meaning?

2013-08-29 03:39:38,975 [EReader] INFO [com.tbg.adapter.interactivebrokers.broker.InteractiveBrokersWrapper] - onERROR(): Error validating request:-'xc' : cause - Snapshot requests limitation exceeded:100 per 1 second(s)

thanks

Alberto Sfolcini

unread,
Aug 28, 2013, 2:55:57 PM8/28/13
to tbg-Quant-community

Hello Simba,

set the EventDelay, try to increase the value...

private final IBMarketDataFeed marketDataFeed = new IBMarketDataFeed(interactiveBrokersAdapter);
{
marketDataFeed.setEventDelay(200);
}


Let me know...
thank you


--
www.thebonnotgang.com
---
You received this message because you are subscribed to the Google Groups "tbg-Quant-community" group.
To post to this group, send email to tbg-quant...@googlegroups.com.



--
Alberto Sfolcini

Simba DIARRA

unread,
Aug 31, 2013, 9:41:08 AM8/31/13
to tbg-quant...@googlegroups.com
Thank you Alberto for your response. I read your suggestion to Brian as well "This is a IB issue, try to set a delay if it does not work, increase the value 300ms or 500ms.".
Somehow, I have to disagree and here is why. IB is a component you can't do nothing about in the design of TBG-Quant platform. And what you call here an issue, IB will certainly respond that this is the expected and normal behavior of their platform, so unless you can reach to them and explain clearly what they are doing wrong and why/how they should fix it, I am sorry to say there is no issue at IB side. Starting from there, the solution you give above would certainly work at you are already aware of the problem, putting some delay as hack in market data reception in a trading system is BAD. A simple reason to that is that today markets are already very fast, and depending on your needs, you should not really add some artificial latency to your system, but instead fix things correctly. 100, 200 ms in delay can make a certain class of strategies unprofitable because of high competition not to mention possible impact on triggering profit and stop loss tactics.

Cheers

Alberto Sfolcini

unread,
Sep 1, 2013, 6:59:43 AM9/1/13
to tbg-Quant-community
Hello Simba,

I agree that adding latency to a high frequency strategy is not good, 100 or 200ms in delay can make a huge difference.
However, if you really need this speed, probably IB API is NOT the way to go.

From what I can remember IB update rates is around 100ms, means a maximum of 10 updates every second.
If your trading style is on 30sec or 1minute bar this is completeley fine.


thank you 
Alberto
Reply all
Reply to author
Forward
0 new messages