Trading API for C  7.0.0.309536
ctl_app_listener Struct Reference

Listener interface that should be registered to receive notification of tradechannel creation and closing. More...

Data Fields

void(* channel_closed )(void *context, ctl_provider *provider, ctl_channel *channel)
 Invoked when a tradechannel is closed. More...
 
void(* channel_created )(void *context, ctl_provider *provider, ctl_channel *channel)
 Invoked when a tradechannel is created. More...
 

Detailed Description

Listener interface that should be registered to receive notification of tradechannel creation and closing.

You must implement this interface when writing a Trading Adapter.

Field Documentation

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

Invoked when a tradechannel is closed.

Parameters
context- Your context pointer registered with ctl_create_ds_provider()
provider- The trading provider.
channel- The trade channel that has been closed.
void(* ctl_app_listener::channel_created) (void *context, ctl_provider *provider, ctl_channel *channel)

Invoked when a tradechannel is created.

Parameters
context- Your context pointer registered with ctl_create_ds_provider()
provider- The trading provider.
channel- The newly created trade channel.

You should use this callback to call ctl_channel_set_listener() to receive trade notifications on the new channel.


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