Trading API for C  7.0.0.309536
ctl_channel_listener Struct Reference

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...
 

Detailed Description

Listener interface that should be registered if you wish to receive notification of trade creation and closing.

Field Documentation

void(* ctl_channel_listener::channel_closed) (void *context, ctl_provider *provider, ctl_channel *channel)

Invoked when the tradechannel is closed.

Parameters
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.

Parameters
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.

Parameters
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.


The documentation for this struct was generated from the following file:

Generated on Thu Jun 15 2017 10:22:29 for Trading API for C