API Support » Limitations of ~65K and 3 days back for ticks requests Nov 06, 2016 @ 10:19 PM (Total replies: 1) | |||||
Hello guys, As we know you got limited amount of ~65K ticks and max 3 days back because it's expensive resource, that's happens when my side request from your feed a big time range and when that limitation is reached. For examples requestTick of ESZ6 time range 9:30-10:30 (most of the time, more then 65K ticks on that time range) 1. Do you have any way to open these limitations? could be important for some users. 2. Let's say you can't open the 65K limitation then...What is the best approach? 3. Do you have any requests amount limitations? I thought about requesting max size of 15 minutes from your feed, but that could flood your feed with many requests, in my calculation if we have 1440 minutes in a day and my side will request in chunks of 15 minutes that will send your side 96 requests for each day and 672 per week ... please let me know what do you think is the best approach... I will use chunks if it's ok by you. I found that link, it doesn't mention any requests amount limitations https://gainfutures.com/api/html/4e2865e8-7ac9-457e-8d5a-6d930f3408a8.htm |
|||||
API Support » Problem with double quote for the same symbol Oct 31, 2016 @ 02:31 PM (Total replies: 2) | |||||
Hello guys, I have a question please. Is it possible to get the same quote more then one time if I use the method "SubscribeTicks" for the same symbol more then one time? sometimes I get for example for the ES the following quotes: symbol, price, quantity ESZ6, 2120.25, 74 ESZ6, 2120.25, 74 ESZ6, 2120.25, 74 ESZ6, 2120.25, 3 ESZ6, 2120.25, 3 ESZ6, 2120.25, 3 ESZ6, 2120.25, 121 ESZ6, 2120.25, 121 ESZ6, 2120.25, 121 so it is allways 3 times because i subscribed 3 times? how can I avoid it? I used the "Unsubscribe" just before the "SubscribeTicks" but it doesn't help. what can I do to solve it? Thanks a head I need to solve it ASAP. example of test: public void TestSubscribeTwice(string symbol) { feedOec.SubscribeTick("ESZ6"); feedOec.SubscribeTick("ESZ6"); } my code: public void SubscribeTick(string symbol) { if (string.IsNullOrEmpty(symbol)) return; if (!Contracts.ContainsKey(symbol)) { throw new ArgumentException("Symbol not found"); } oecClient1.Unsubscribe(Contracts[symbol]); oecClient1.SubscribeTicks(Contracts[symbol], DateTime.UtcNow); } public void UnsubscribeTick(string symbol) { if (string.IsNullOrEmpty(symbol)) return; if (!Contracts.ContainsKey(symbol)) { throw new ArgumentException("Symbol not found"); } oecClient1.Unsubscribe(Contracts[symbol]); } |