Author |
Topic: OnPriceTick event only raised on price change (4 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
DNummer Posts: 3 Joined: Dec 05, 2008 |
I am doing...
OECClient.Global.OnPriceTick += new OnPriceChangedEvent(... The event is only firing when price changes. I am remoting off trader and can see multiple trades (at different volumes) at a certain price on trader. However, my event only fires on price change. What am I doing wrong, please? Thank you. |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
OnPriceTick is called when any of quote values (last, bid, ask) is changed - but this subscription has limited number of updates per second.
In order to see every trade you should use SubscribeTick method and handle OnTicksReceived event. Note that tick subscriptions use more bandwidth and are limited to 5 subscriptions per client. |
||||
DNummer Posts: 3 Joined: Dec 05, 2008 |
Thanks for the quick reply.
I completely understand about subscribing for ticks. I coded OECClient.Global.OnPriceTick += new OnPriceChangedEvent(... expecting to get events "when ANY of quote values (last, bid, ask) is changed" The actual behavior is that it will fire only when CERTAIN of quote values change. I was watching the data during the night session - so throttling is not an issue. The issue for me is that LastVol does not trigger the event. Is that expected behavior? |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
Quote subscriptions are updated on a trade or bid/ask change.
In some cases several trades with similar price can be combined to one, so you can receive one update with sum of volumes. |
||||