42 const std::optional<GetGridOrdersOptions>& opts,
61 void cancel(
const std::string& order_id,
75 const std::string& symbol,
Definition: config.hpp:16
Grid trading management context.
Definition: grid_context.hpp:15
GridContext(GridContext &&ctx)
void list(const std::optional< GetGridOrdersOptions > &opts, AsyncCallback< GridContext, GridOrdersResponse > callback) const
Get grid trading orders (paged list)
void submit(const SubmitGridOrderOptions &opts, AsyncCallback< GridContext, SubmitGridOrderResponse > callback) const
Submit a grid trading order.
GridContext(const lb_grid_context_t *ctx)
void symbol_info(const std::string &symbol, AsyncCallback< GridContext, GridSymbolInfo > callback) const
GridContext(const GridContext &ctx)
void trigger_history(const GetGridTriggerHistoryOptions &opts, AsyncCallback< GridContext, GridTriggerHistoryResponse > callback) const
Get grid trading trigger history.
void replace(const ReplaceGridOrderOptions &opts, AsyncCallback< GridContext, void > callback) const
Replace (modify) a grid trading order.
GridContext & operator=(const GridContext &ctx)
void cancel(const std::string &order_id, AsyncCallback< GridContext, void > callback) const
Cancel a grid trading order.
static GridContext create(const Config &config)
Create a GridContext from a Config.
void suspend(const std::string &order_id, AsyncCallback< GridContext, void > callback) const
Suspend a grid trading order.
void detail(const GetGridOrderDetailOptions &opts, AsyncCallback< GridContext, GridOrderDetail > callback) const
Get grid trading order detail (and paged history)
void restart(const std::string &order_id, AsyncCallback< GridContext, void > callback) const
Restart a grid trading order.
void list_by_ids(const GetGridOrdersByIdsOptions &opts, AsyncCallback< GridContext, std::vector< GridOrder >> callback) const
Query grid trading orders by IDs.
struct lb_grid_context_t lb_grid_context_t
Definition: grid_context.hpp:8
Definition: agent_context.hpp:13
std::function< void(AsyncResult< Ctx, T >)> AsyncCallback
Definition: async_result.hpp:48
Options for get grid trading order detail request.
Definition: types.hpp:2740
Options for query grid trading orders by IDs request.
Definition: types.hpp:2733
Options for get grid trading trigger history request.
Definition: types.hpp:2751
Options for replace grid trading order request.
Definition: types.hpp:2705
Options for submit grid trading order request.
Definition: types.hpp:2694