|
Longbridge OpenAPI C++ SDK
|
Grid trading management context. More...
#include <grid_context.hpp>
Public Member Functions | |
| GridContext () | |
| GridContext (const lb_grid_context_t *ctx) | |
| GridContext (const GridContext &ctx) | |
| GridContext (GridContext &&ctx) | |
| ~GridContext () | |
| GridContext & | operator= (const GridContext &ctx) |
| void | submit (const SubmitGridOrderOptions &opts, AsyncCallback< GridContext, SubmitGridOrderResponse > callback) const |
| Submit a grid trading order. More... | |
| void | replace (const ReplaceGridOrderOptions &opts, AsyncCallback< GridContext, void > callback) const |
| Replace (modify) a grid trading order. More... | |
| void | list (const std::optional< GetGridOrdersOptions > &opts, AsyncCallback< GridContext, GridOrdersResponse > callback) const |
| Get grid trading orders (paged list) More... | |
| void | list_by_ids (const GetGridOrdersByIdsOptions &opts, AsyncCallback< GridContext, std::vector< GridOrder >> callback) const |
| Query grid trading orders by IDs. More... | |
| void | detail (const GetGridOrderDetailOptions &opts, AsyncCallback< GridContext, GridOrderDetail > callback) const |
| Get grid trading order detail (and paged history) More... | |
| void | trigger_history (const GetGridTriggerHistoryOptions &opts, AsyncCallback< GridContext, GridTriggerHistoryResponse > callback) const |
| Get grid trading trigger history. More... | |
| void | cancel (const std::string &order_id, AsyncCallback< GridContext, void > callback) const |
| Cancel a grid trading order. More... | |
| void | suspend (const std::string &order_id, AsyncCallback< GridContext, void > callback) const |
| Suspend a grid trading order. More... | |
| void | restart (const std::string &order_id, AsyncCallback< GridContext, void > callback) const |
| Restart a grid trading order. More... | |
| void | symbol_info (const std::string &symbol, AsyncCallback< GridContext, GridSymbolInfo > callback) const |
Static Public Member Functions | |
| static GridContext | create (const Config &config) |
| Create a GridContext from a Config. More... | |
Grid trading management context.
| longbridge::grid::GridContext::GridContext | ( | ) |
| longbridge::grid::GridContext::GridContext | ( | const lb_grid_context_t * | ctx | ) |
| longbridge::grid::GridContext::GridContext | ( | const GridContext & | ctx | ) |
| longbridge::grid::GridContext::GridContext | ( | GridContext && | ctx | ) |
| longbridge::grid::GridContext::~GridContext | ( | ) |
| void longbridge::grid::GridContext::cancel | ( | const std::string & | order_id, |
| AsyncCallback< GridContext, void > | callback | ||
| ) | const |
Cancel a grid trading order.
|
static |
Create a GridContext from a Config.
| void longbridge::grid::GridContext::detail | ( | const GetGridOrderDetailOptions & | opts, |
| AsyncCallback< GridContext, GridOrderDetail > | callback | ||
| ) | const |
Get grid trading order detail (and paged history)
| void longbridge::grid::GridContext::list | ( | const std::optional< GetGridOrdersOptions > & | opts, |
| AsyncCallback< GridContext, GridOrdersResponse > | callback | ||
| ) | const |
Get grid trading orders (paged list)
| void longbridge::grid::GridContext::list_by_ids | ( | const GetGridOrdersByIdsOptions & | opts, |
| AsyncCallback< GridContext, std::vector< GridOrder >> | callback | ||
| ) | const |
Query grid trading orders by IDs.
| GridContext& longbridge::grid::GridContext::operator= | ( | const GridContext & | ctx | ) |
| void longbridge::grid::GridContext::replace | ( | const ReplaceGridOrderOptions & | opts, |
| AsyncCallback< GridContext, void > | callback | ||
| ) | const |
Replace (modify) a grid trading order.
| void longbridge::grid::GridContext::restart | ( | const std::string & | order_id, |
| AsyncCallback< GridContext, void > | callback | ||
| ) | const |
Restart a grid trading order.
| void longbridge::grid::GridContext::submit | ( | const SubmitGridOrderOptions & | opts, |
| AsyncCallback< GridContext, SubmitGridOrderResponse > | callback | ||
| ) | const |
Submit a grid trading order.
| void longbridge::grid::GridContext::suspend | ( | const std::string & | order_id, |
| AsyncCallback< GridContext, void > | callback | ||
| ) | const |
Suspend a grid trading order.
| void longbridge::grid::GridContext::symbol_info | ( | const std::string & | symbol, |
| AsyncCallback< GridContext, GridSymbolInfo > | callback | ||
| ) | const |
Get the security (symbol) info used to build a grid order (lot size, authorization flag, settlement currency, etc.).
| void longbridge::grid::GridContext::trigger_history | ( | const GetGridTriggerHistoryOptions & | opts, |
| AsyncCallback< GridContext, GridTriggerHistoryResponse > | callback | ||
| ) | const |
Get grid trading trigger history.