Author |
Topic: SubscribeBars (9 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
I am calling SubscribeBars for one minute history and am getting the data once. I then am getting the updates fine. then every so often after I will recive the 'WHOLE' history again. I know I am not calling SubscribeBars again. do I need to call something telling the API that I got it and don't give the history again?
There are 10 kinds of people in the world; those who understand binary and those who don't. |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
the whole history can come when the connection is terminated, so API automatically reconnects and re-executes all subscription requests.
We had problems with PriceServer today and did several restarts, which caused API reconnection during the day. Sorry for inconvenience. |
||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
I have been connected for about 30 Minutes and have now resived one minute history 6 times for ESU9.
There are 10 kinds of people in the world; those who understand binary and those who don't. |
||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
I have not recived any reconnects.
There are 10 kinds of people in the world; those who understand binary and those who don't. Edited by PArnoldson on Aug 4, 2009 at 12:00 AM |
||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
Side note:
Quote: the whole history can come when the connection is terminated, so API automatically reconnects and re-executes all subscription requests. In my testing of connecting and reconnecting I was forcing this to happen and in my testing this wasn't happening. I had to re-subscribe to my subscriptions. There are 10 kinds of people in the world; those who understand binary and those who don't. |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
that happens when only price connection is dropped and silently reconnected, so no event fired to the API.
if the main connection is dropped and restored, you will receive OnLoginComplete event and have to resubscribe manually. |
||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
1- Seems like I am lossing my 'price connection' a lot then. Is there any way to just send the data that was gapped over within this 'dropped time' and not the entire history?
2- How long (ie 4-5 minutes or 10- 20 seconds) are these gaps usually? There are 10 kinds of people in the world; those who understand binary and those who don't. |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
1. We will research that possibility.
2. Usually there are no issues, but today we got hardware problems and have to switch connection between our servers. |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
What bar type you are using?
We found that second and tick bars are resent for the whole day on reconnect, but minute bars and ticks are correctly resent for the disconnection period only. The fix will be deployed today after market close. |
||||