Longbridge OpenAPI C++ SDK
Public Member Functions | Static Public Member Functions | List of all members
longbridge::alert::AlertContext Class Reference

Price alert management context. More...

#include <alert_context.hpp>

Public Member Functions

 AlertContext ()
 
 AlertContext (const lb_alert_context_t *ctx)
 
 AlertContext (const AlertContext &ctx)
 
 AlertContext (AlertContext &&ctx)
 
 ~AlertContext ()
 
AlertContextoperator= (const AlertContext &ctx)
 
void list (AsyncCallback< AlertContext, AlertList > callback) const
 List all price alerts grouped by security. More...
 
void add (const std::string &symbol, AlertCondition condition, const std::string &trigger_value, AlertFrequency frequency, AsyncCallback< AlertContext, void > callback) const
 Add a price alert. More...
 
void update (const AlertItem &item, AsyncCallback< AlertContext, void > callback) const
 

Static Public Member Functions

static AlertContext create (const Config &config)
 Create an AlertContext from a Config. More...
 

Detailed Description

Price alert management context.

Constructor & Destructor Documentation

◆ AlertContext() [1/4]

longbridge::alert::AlertContext::AlertContext ( )

◆ AlertContext() [2/4]

longbridge::alert::AlertContext::AlertContext ( const lb_alert_context_t ctx)

◆ AlertContext() [3/4]

longbridge::alert::AlertContext::AlertContext ( const AlertContext ctx)

◆ AlertContext() [4/4]

longbridge::alert::AlertContext::AlertContext ( AlertContext &&  ctx)

◆ ~AlertContext()

longbridge::alert::AlertContext::~AlertContext ( )

Member Function Documentation

◆ add()

void longbridge::alert::AlertContext::add ( const std::string &  symbol,
AlertCondition  condition,
const std::string &  trigger_value,
AlertFrequency  frequency,
AsyncCallback< AlertContext, void >  callback 
) const

Add a price alert.

◆ create()

static AlertContext longbridge::alert::AlertContext::create ( const Config config)
static

Create an AlertContext from a Config.

◆ list()

void longbridge::alert::AlertContext::list ( AsyncCallback< AlertContext, AlertList callback) const

List all price alerts grouped by security.

◆ operator=()

AlertContext& longbridge::alert::AlertContext::operator= ( const AlertContext ctx)

◆ update()

void longbridge::alert::AlertContext::update ( const AlertItem item,
AsyncCallback< AlertContext, void >  callback 
) const

Update (enable or disable) a price alert. Set item.enabled before calling to choose the new state.


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