API Support Forum
OEC API > Market Data > OnPriceTick and OnPriceChanged
Author Topic: OnPriceTick and OnPriceChanged
(4 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Oct 30, 2007 @ 11:56 AM             Msg. 1 of 4
Is there ANY difference between these two events?
Thanks.

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Oct 30, 2007 @ 12:07 PM             Msg. 2 of 4
OnPriceChanged event frequency is limited on client to reduce GUI CPU overhead.

the difference is seen mostly in peak hours.
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Oct 30, 2007 @ 12:30 PM             Msg. 3 of 4
Hmm... That seems to disagree with a prior post you made:
1: Subscribe for price updates calling OECClient.Subscribe and handle OnPriceChanged or OnPriceTick - both events are called when last price or any price information (such as best bid/ask) is changed. However, these updates will not occur more than 20 times per second.

I knew I could SubscribeTicks and handle OnTicksReceived to get every tick. Are you saying I could also Subscribe() and handle OnPriceTick to get every tick? That would be great!

Thanks,
Dale

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Oct 30, 2007 @ 01:29 PM             Msg. 4 of 4
No, it is exactly same as I posted previously: OnPriceTick is called on change of last price or bid/ask prices and it could be called more often than OnPriceChanged, but it does not guarantee to give every tick.

The only way to get every tick is SubscribeTicks/ OnTicksReceived.
Edited by SergeK on Oct 30, 2007 at 01:30 PM