API Support Forum
OEC API > API Support > OnPriceTick is fired many times with the same data
Author Topic: OnPriceTick is fired many times with the same data
(3 messages, Page 1 of 1)
Moderators: VPfau
REnikeev8313
Posts: 4
Joined: Dec 13, 2013


Posted: Jan 19, 2014 @ 09:05 PM             Msg. 1 of 3
Hi OEC,

I found strange thing: event OnPriceTick is suppose to be fired only when Bid/Ask or Last Trade changed but actually it fires many times with exactly same input data.

Please have a look http://myscreenshot.info/i/0003/771071390183260525286605060340.png

last_Price is the previous input, Price is the current one. As you can see they are absolutely identical. It happens more than two times sequentially.

Is it a bug?

Thanks,
Ruslan

Ruslan Enikeev
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jan 19, 2014 @ 09:12 PM             Msg. 2 of 3
Hello. Are you sure you didn't hook the event handler twice?

Victor Vins
Lead Software Developer
REnikeev8313
Posts: 4
Joined: Dec 13, 2013


Posted: Jan 19, 2014 @ 09:27 PM             Msg. 3 of 3
Hi Victor,

Yes, I am. I checked that.

Ruslan Enikeev