API Support Forum
OEC API > API Support > OnPriceChanged Event
Author Topic: OnPriceChanged Event
(2 messages, Page 1 of 1)
Moderators: VPfau
MMuhammad80
Posts: 7
Joined: Feb 25, 2010


Posted: Apr 01, 2010 @ 01:55 PM             Msg. 1 of 2
Which commands trigger this event.
I found out by trial and error that SendOrder() triggers the event for the corresponding contract.

It would be generally helpfull to have a list:

command - triggered events.

and the reverse list

event - commands

It would be also helfful to have a list of events. One can look in the doc for "On....". But thats all cumbersome.

Muhammad Ali
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Apr 01, 2010 @ 02:16 PM             Msg. 2 of 2
As stated in API documentation, OnPriceChanged occurs when one or more contract Price values are changed. It is not directly related to SendOrder and reflects only the market movement, though this movement might be caused by client's orders as well as by the orders of millions of other exchange clients.

If you open API documentation at the OEC.API/OECClient Class/Events folder, you can see list of all API events.

Also OECClient members page lists all methods and properties along with the events.