Author |
Topic: When a tick occurs (9 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
CZendejas116 Posts: 51 Joined: Apr 13, 2011 |
Hi,
When a tick occurs, OnTicksRecieved is fired, and also OnDOMChanged is fired? Both events right? Thanks in advance Claudia Zendejas |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Claudia, these events are technically independent ones. But logically - yes, a new trade (or tick) leads to changes in the current DOM. But not every single tick will lead to OnDOMChanged, because DOM is a throttled data stream.
Victor Vins Lead Software Developer |
||||
CZendejas116 Posts: 51 Joined: Apr 13, 2011 |
Hi,
So, OnDOMChanged is like OnPriceChanged, gives a sample of DOM information? (OnPriceChange gives a sample of ticks) Is there an equivalent of OnTicksRecieved method behaviour for DOM data? Thank you :) Claudia Zendejas |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hi, unfortunately, no.
Victor Vins Lead Software Developer |
||||
CZendejas116 Posts: 51 Joined: Apr 13, 2011 |
Hi,
This sample in OnDOMChanged occurs every 10 ms? like in OnPriceChange, or how long that it takes? Thanks Claudia Zendejas |
||||
CZendejas116 Posts: 51 Joined: Apr 13, 2011 |
any comments?
Claudia Zendejas |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hi,
DOM is not throttled on client side with this 10 msec period. Victor Vins Lead Software Developer |
||||
CZendejas116 Posts: 51 Joined: Apr 13, 2011 |
How sample of DOM information is decided?
OnDOMChanged doesn't retrieve all data generated for every DOM in real life, that's what I understood in previous posts, you said: "But not every single tick will lead to OnDOMChanged, because DOM is a throttled data stream." So, is like a sample, just like information retrieved by OnPriceChanged. When I recieve data in OnDOMChanged, what can I expect in that data? random DOM information? DOM information is throttled by what criteria? In other topics, you mentioned that OnPriceChanged is throttled by time, I mean, every 10 ms OnPriceChanged is fired, with the last price, and that's the information that API can give in OnPriceChanged event. In order to catch all ticks, it exists OnTicksReceived event. In case of OnDOMChanged there's no way to obtain all DOM changes. But what data is retrieved by OnDOMChanged event? data throttled by what criteria? Thank you Claudia Zendejas |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
You need to consider that DOM, ticks and quotes streams are independent enough: there is no way to say that this DOM and this quote are sync'ed and relates to this tick in fast market.
Except client side throtthling, DOM and quotes are throttled on server-side: we sends around 4 DOM and quote updates per second. Victor Vins Lead Software Developer |
||||