|
| | ManualStrategy () |
| std::vector< SubscriptionRequest > | get_subscriptions () const override |
| template<typename F> |
| uint32_t | for_each_listed (uint32_t from, F &&f) const |
| uint32_t | listed_count () const noexcept |
| bool | add_listing (BrokerId broker, std::string_view instrument, price_t tick_size=0, qty_t min_qty=0) |
| bool | lists (std::string_view instrument) const |
| bool | hold (BrokerId broker, std::string_view instrument, bool subscribed=false, uint8_t feeds=LADDER_ALL) |
| uint8_t | release (BrokerId broker, std::string_view instrument) |
| void | release_all () |
| | StrategyBase (const std::string &name, const std::string &version) |
| virtual | ~StrategyBase () override=default |
| const char * | name () const override |
| const char * | version () const override |
| std::vector< SubscriptionRequest > | get_subscriptions () const override |
| bool | initialize (const json &config, PositionTracker &position_tracker, PnLCalculator &pnl_calculator, RiskManager &risk_manager, slick::queue< uint8_t > &order_request_queue) override |
| void | start () override |
| void | stop () override |
| void | shutdown () override |
| void | set_config (const nlohmann::json ¶ms) |
| void | on_trade (const TradeEvent &event) override |
| void | on_quote (const QuoteEvent &event) override |
| void | on_order_book (std::string_view, const slick::orderbook::OrderBookL2 &) override |
| void | on_order_ack (const OrderAckEvent &event) override |
| void | on_order_fill (const OrderFillEvent &event) override |
| void | on_order_reject (const OrderRejectEvent &event) override |
| void | on_order_cancel (const OrderCancelEvent &event) override |
| virtual | ~IStrategy ()=default |
| virtual void | on_instrument_definition (const InstrumentDefinitionEvent &) |
| virtual void | on_order_book_l3 (std::string_view, const slick::orderbook::OrderBookL3 &) |
| virtual void | on_instrument_status (const InstrumentStatusEvent &) |
|
| bool | on_initialize () override |
| void | on_config (const nlohmann::json ¶ms) override |
| virtual void | on_start () |
| virtual void | on_stop () |
| virtual void | on_shutdown () |
| virtual void | on_ack (const OrderAckEvent &event) |
| virtual void | on_reject (const OrderRejectEvent &event) |
| virtual void | on_cancel (const OrderCancelEvent &event) |
| virtual void | on_fill (const OrderFillEvent &event) |
| virtual void | on_leg_fill (const OrderFillEvent &event) |
| virtual std::string | generate_order_id () |
| virtual bool | owns_client_order_id (std::string_view client_order_id) const |
| bool | owns_order (const std::string &client_order_id, const std::string &order_id) const |
| std::string | submit_order (std::string_view instrument, BrokerId broker_id, Side side, qty_t quantity, OrderType type, price_t price=NULL_PRICE, TimeInForce tif=TimeInForce::FOK, bool post_only=true, std::string *refusal=nullptr) |
| void | cancel_order (const std::string &order_id, const std::string &client_order_id) |
| void | cancel_all_orders () |
| void | modify_order (Order &order, price_t new_price, qty_t new_quantity, price_t new_stop_price=NULL_PRICE) |
| void | modify_order (const std::string &client_order_id, price_t new_price, qty_t new_quantity, price_t new_stop_price=NULL_PRICE) |
| void | close_all_positions () |
| const std::unordered_map< std::string, Order > & | get_orders () const |
| const Order * | get_order (const std::string &client_order_id) const |
| std::optional< QueuePosition > | get_queue_position (const slick::orderbook::OrderBookL3 &book, const std::string &client_order_id) const |
| const Order * | get_order_by_id (const std::string &order_id) const |
| std::vector< const Order * > | get_open_orders () const |
| void | prune_done_orders () |
| bool | is_running () const |
| const std::string & | get_name () const |
| template<typename T> |
| T | get_parameter (const std::string &key, const T &default_value) const |
| const nlohmann::json & | get_config () const |
| PositionTracker * | get_position_tracker () |
| PnLCalculator * | get_pnl_calculator () |
| RiskManager * | get_risk_manager () |
Definition at line 26 of file manual_strategy.hpp.