|
Longbridge OpenAPI C++ SDK
|
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 () | |
| AlertContext & | operator= (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... | |
Price alert management context.
| longbridge::alert::AlertContext::AlertContext | ( | ) |
| longbridge::alert::AlertContext::AlertContext | ( | const lb_alert_context_t * | ctx | ) |
| longbridge::alert::AlertContext::AlertContext | ( | const AlertContext & | ctx | ) |
| longbridge::alert::AlertContext::AlertContext | ( | AlertContext && | ctx | ) |
| longbridge::alert::AlertContext::~AlertContext | ( | ) |
| 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.
|
static |
Create an AlertContext from a Config.
| void longbridge::alert::AlertContext::list | ( | AsyncCallback< AlertContext, AlertList > | callback | ) | const |
List all price alerts grouped by security.
| AlertContext& longbridge::alert::AlertContext::operator= | ( | const AlertContext & | ctx | ) |
| 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.