Trading API for C
7.0.0.309536
|
Listener interface that should be registered if you wish to receive events for a trade. More...
Data Fields | |
void(* | on_event )(void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade, ctl_tradeevent *ev) |
Invoked when a valid event is received for a trade. More... | |
void(* | on_invalid_event )(void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade, ctl_tradeevent *ev, ctl_error reason) |
Invoked when a remote event would trigger an invalid state transition. More... | |
Listener interface that should be registered if you wish to receive events for a trade.
void(* ctl_trade_listener::on_event) (void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade, ctl_tradeevent *ev) |
Invoked when a valid event is received for a trade.
provider | - The trading provider. |
channel | - The trade channel. |
trade | - The trade that has just been created. |
ev | - The trade event that has just been received |
Typically you would transform the contents of ev into appropriate calls into your trading system.
void(* ctl_trade_listener::on_invalid_event) (void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade, ctl_tradeevent *ev, ctl_error reason) |
Invoked when a remote event would trigger an invalid state transition.
provider | - The trading provider. |
channel | - The trade channel. |
trade | - The trade that has just been created. |
ev | - The trade event that has just been received. |
reason | - The reason for this method being invoked. |