Trading API for C
7.0.0.309536
|
Listener interface that should be registered if you wish to receive notification of trade creation and closing. More...
Data Fields | |
void(* | channel_closed )(void *context, ctl_provider *provider, ctl_channel *channel) |
Invoked when the tradechannel is closed. More... | |
void(* | trade_closed )(void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade) |
Invoked when a trade is closed on a channel. More... | |
void(* | trade_created )(void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade) |
Invoked when a trade is created on a channel. More... | |
Listener interface that should be registered if you wish to receive notification of trade creation and closing.
void(* ctl_channel_listener::channel_closed) (void *context, ctl_provider *provider, ctl_channel *channel) |
Invoked when the tradechannel is closed.
context | - Your context pointer registered with ctl_channel_set_listener() or ctl_provider_create_channel() |
provider | - The trading provider. |
channel | - The trade channel that has been closed. |
void(* ctl_channel_listener::trade_closed) (void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade) |
Invoked when a trade is closed on a channel.
ctx | - Your context pointer registered with ctl_channel_set_listener() or ctl_provider_create_channel() |
provider | - The trading provider. |
channel | - The trade channel. |
trade | - The trade that has been closed. |
void(* ctl_channel_listener::trade_created) (void *context, ctl_provider *provider, ctl_channel *channel, ctl_trade *trade) |
Invoked when a trade is created on a channel.
ctx | - Your context pointer registered with ctl_channel_set_listener() or ctl_provider_create_channel() |
provider | - The trading provider. |
channel | - The trade channel. |
trade | - The trade that has just been created. |
You should use this callback to call ctl_trade_set_listener() to receive trade events on the new trade.