|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
Namespaces | |
| namespace | detail |
| namespace | sim_cli |
Typedefs | |
| using | json = nlohmann::json |
| using | WebSocketClient = coinbase::WebSocketClient |
| using | producer_buffer = slick::stream_buffer_multiplexer::producer_buffer |
| using | multiplex_record = slick::stream_buffer_multiplexer::multiplex_record |
| using | OrderBook = slick::orderbook::OrderBookL2 |
| using | OrderBookManager = slick::orderbook::OrderBookManager<slick::orderbook::OrderBookL2> |
| using | OrderBookObserver = slick::orderbook::IOrderBookObserver |
| using | OrderBookSide = slick::orderbook::Side |
| using | OrderBookPrice = slick::orderbook::Price |
| using | OrderBookQuantity = slick::orderbook::Quantity |
| using | TopOfBook = slick::orderbook::TopOfBook |
| using | PriceLevelUpdate = slick::orderbook::PriceLevelUpdate |
| using | StringSet = std::unordered_set<std::string, StringHash, std::equal_to<>> |
| template<typename V> | |
| using | StringMap = std::unordered_map<std::string, V, StringHash, std::equal_to<>> |
| using | price_t = int64_t |
| using | qty_t = int64_t |
| using | Logger = slick::logger::Logger |
Functions | |
| std::vector< MdDefinition > | coinbase_definitions (const std::vector< coinbase::Product > &products) |
| std::string | env_or (const char *name, std::string fallback) |
| int64_t | wall_clock_offset_ns () |
| uint64_t | wall_clock_ns () |
| template<typename Service, typename Step> | |
| KillSwitchCount | run_kill_switch (std::string_view who, size_t working, uint64_t timeout_ns, Service &&service, Step &&step, std::string_view fallback) |
| constexpr uint32_t | md_producer_id (BrokerId broker) noexcept |
| constexpr uint32_t | order_producer_id (BrokerId broker) noexcept |
| template<typename E> | |
| void | set_shm_name (E &event, const std::string &name) |
| template<typename F> | |
| void | for_each_part (size_t count, size_t max, F &&f) |
| bool | publish_definition (slick::stream_buffer_multiplexer::producer_buffer &buffer, BrokerId broker, const MdDefinition &d) |
| template<typename Subscribe, typename Unsubscribe> | |
| bool | process_md_request (slick::queue< uint8_t > &queue, uint64_t &cursor, BrokerId broker, Subscribe &&on_subscribe, Unsubscribe &&on_unsubscribe) |
| PostOnlyPolicy | parse_post_only_policy (const std::string &value, std::string_view native, std::string_view who) |
| bool | rests (OrderType type, TimeInForce tif) noexcept |
| uint32_t | whole_lots (qty_t qty) noexcept |
| qty_t | lots_to_qty (int64_t lots) noexcept |
| const char * | post_only_problem (PostOnlyPolicy policy, const SharedTopOfBook *top, Side side, OrderType type, TimeInForce tif, price_t price, bool &warned, std::string_view who) |
| OrderRejectEvent | reject_of (const NewOrderEvent &request, BrokerId broker, std::string_view reason) |
| template<typename New, typename Modify, typename Cancel> | |
| bool | dispatch_order_request (slick::queue< uint8_t > &queue, uint64_t &cursor, BrokerId broker, New &&on_new, Modify &&on_modify, Cancel &&on_cancel) |
| std::vector< MdDefinition > | hyperliquid_definitions (const std::unordered_map< std::string, int > &coin_to_asset, const std::unordered_map< int, int > &asset_to_sz_decimals) |
| bool | is_request_for (const Event &request, BrokerId broker) noexcept |
| bool | environment_is (std::string_view env, std::string_view word) noexcept |
| bool | is_production_environment (std::string_view env) noexcept |
| bool | is_sim_environment (std::string_view env) noexcept |
| bool | read_environment (const nlohmann::json &config, std::string &env) |
| bool | read_sim_control (const nlohmann::json &config, SimControlConfig &sim, std::string &error) |
| const char * | to_string (BrokerId bid) |
| BrokerId | to_broker_id (const std::string &broker) |
| const char * | to_string (TradingStatus status) |
| std::string_view | to_string (ComponentType ct) |
| std::optional< QueuePosition > | queue_position (const slick::orderbook::OrderBookL3 &book, slick::orderbook::OrderId order_id) noexcept |
| std::optional< QueuePosition > | queue_position (const slick::orderbook::OrderBookL3 &book, std::string_view order_id) noexcept |
| price_t | compute_fee (price_t fill_price, qty_t fill_qty, const FeeStructure &fee) |
| constexpr std::string_view | to_string (OrderType type) |
| constexpr std::string_view | to_string (TimeInForce tif) |
| constexpr std::string_view | to_string (OrderStatus status) |
| uint64_t | get_timestamp_ns () |
| price_t | to_price_t (double value) |
| qty_t | to_qty_t (double value) |
| double | from_price_t (price_t value) |
| double | from_qty_t (qty_t value) |
| constexpr bool | streams_book (SubscriptionType type) noexcept |
| std::string | dashboard_origin (std::string_view ip, int64_t port) |
| PolicyUrl | add_policy_url (std::string_view key, std::string_view url, std::string &error) |
| void | list_origin (const nlohmann::json &config, std::string_view setting, int64_t default_port, std::span< const std::string_view > keys) |
| void | append_json_string (std::string &out, std::string_view text) |
| template<typename T> | |
| void | append_json_number (std::string &out, T value) |
| template<typename ForEachLevel> | |
| void | write_level2_message (std::string &out, std::string_view instrument, uint64_t event_time_ns, uint64_t sequence_num, bool is_snapshot, ForEachLevel &&for_each_level) |
| void | write_trade_message (std::string &out, std::string_view instrument, const LastTrade &trade) |
| std::string_view | to_string (SimFeedState state) noexcept |
| std::vector< SimFeed > | parse_sim_feeds (std::string_view text) |
| SimFeedList | parse_sim_feed_list (std::string_view text) |
| coinbase::OrderType | to_coinbase_order_type (OrderType type) |
| coinbase::TimeInForce | to_coinbase_time_in_force (TimeInForce tif) |
| static hyperliquid::Tif | to_hl_tif (TimeInForce tif, bool post_only) |
| static std::string | join_strings (const std::vector< std::string > &vec, const std::string &delimiter) |
Variables | |
| constexpr std::string_view | PRODUCTION_ENVIRONMENT = "Production" |
| constexpr std::string_view | LIVE_SIM_ENVIRONMENT = "Live Sim" |
| constexpr std::string_view | HISTORICAL_SIM_ENVIRONMENT = "Historical Sim" |
| constexpr size_t | MAX_INSTRUMENT_LENGTH = 32 |
| constexpr size_t | MAX_CURRENCY_LENGTH = 8 |
| constexpr size_t | MAX_STATUS_REASON_LENGTH = 32 |
| constexpr size_t | MAX_ORDER_BOOK_LEVELS = 10 |
| constexpr size_t | MAX_ORDER_ID_LENGTH = 64 |
| constexpr size_t | MAX_REJECT_REASON_LENGTH = 128 |
| constexpr size_t | MAX_STRATEGY_ID_LENGTH = 64 |
| constexpr uint32_t | INVALID_PRODUCER_ID = std::numeric_limits<uint32_t>::max() |
| constexpr size_t | MAX_STRATEGY_NAME_LENGTH = 64 |
| constexpr size_t | MAX_STRATEGY_CONFIG_LENGTH = 64 * 1024 |
| constexpr uint32_t | STRATEGY_API_VERSION = 2 |
| constexpr price_t | NULL_PRICE = std::numeric_limits<price_t>::max() |
| constexpr int64_t | PRICE_SCALE = 100'000'000 |
| constexpr int64_t | QTY_SCALE = 100'000'000 |
| constexpr std::string_view | EDGE_POPUPS_KEY = R"(Software\Policies\Microsoft\Edge\PopupsAllowedForUrls)" |
| constexpr std::string_view | CHROME_POPUPS_KEY = R"(Software\Policies\Google\Chrome\PopupsAllowedForUrls)" |
| constexpr std::array< std::string_view, 2 > | POPUP_POLICY_KEYS {EDGE_POPUPS_KEY, CHROME_POPUPS_KEY} |
| constexpr std::string_view | EDGE_SECURE_KEY |
| constexpr std::string_view | CHROME_SECURE_KEY |
| constexpr std::array< std::string_view, 2 > | SECURE_POLICY_KEYS {EDGE_SECURE_KEY, CHROME_SECURE_KEY} |
| static constexpr uint32_t | producer_id = static_cast<uint8_t>(BrokerId::HYPERLIQUID) * 2 - 1 |
| using slick::trader::json = nlohmann::json |
Definition at line 13 of file coinbase_broker.hpp.
| using slick::trader::Logger = slick::logger::Logger |
Definition at line 23 of file trading_engine.cpp.
| using slick::trader::multiplex_record = slick::stream_buffer_multiplexer::multiplex_record |
Definition at line 46 of file strategy_manager.hpp.
| using slick::trader::OrderBook = slick::orderbook::OrderBookL2 |
Definition at line 14 of file order_book.hpp.
| using slick::trader::OrderBookManager = slick::orderbook::OrderBookManager<slick::orderbook::OrderBookL2> |
Definition at line 15 of file order_book.hpp.
| using slick::trader::OrderBookObserver = slick::orderbook::IOrderBookObserver |
Definition at line 16 of file order_book.hpp.
| using slick::trader::OrderBookPrice = slick::orderbook::Price |
Definition at line 18 of file order_book.hpp.
| using slick::trader::OrderBookQuantity = slick::orderbook::Quantity |
Definition at line 19 of file order_book.hpp.
| using slick::trader::OrderBookSide = slick::orderbook::Side |
Definition at line 17 of file order_book.hpp.
| using slick::trader::price_t = int64_t |
| using slick::trader::PriceLevelUpdate = slick::orderbook::PriceLevelUpdate |
Definition at line 21 of file order_book.hpp.
| using slick::trader::producer_buffer = slick::stream_buffer_multiplexer::producer_buffer |
Definition at line 26 of file coinbase_md_connector.hpp.
| using slick::trader::qty_t = int64_t |
| using slick::trader::StringMap = std::unordered_map<std::string, V, StringHash, std::equal_to<>> |
Definition at line 24 of file string_hash.hpp.
| using slick::trader::StringSet = std::unordered_set<std::string, StringHash, std::equal_to<>> |
Definition at line 20 of file string_hash.hpp.
| using slick::trader::TopOfBook = slick::orderbook::TopOfBook |
Definition at line 20 of file order_book.hpp.
| using slick::trader::WebSocketClient = coinbase::WebSocketClient |
Definition at line 25 of file coinbase_md_connector.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| MARKET_DATA | |
| ORDER_CONNECTOR | |
Definition at line 12 of file register_event.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| PERCENTAGE | |
| FIXED_AMOUNT | |
| PER_UNIT | |
Definition at line 8 of file fee_structure.hpp.
|
strong |
| Enumerator | |
|---|---|
| ORDER_AND_POSITION | |
| ORDER | |
| LEG | |
Definition at line 118 of file order_event.hpp.
| enum slick::trader::LadderFeed : uint8_t |
| Enumerator | |
|---|---|
| LADDER_BOOK | |
| LADDER_TRADES | |
| LADDER_ALL | |
Definition at line 11 of file ladder_subscription_event.hpp.
|
strong |
| Enumerator | |
|---|---|
| ADD | |
| MODIFY | |
| REMOVE | |
Definition at line 13 of file mbo_update_event.hpp.
|
strong |
| Enumerator | |
|---|---|
| PENDING_NEW | |
| PENDING_MODIFY | |
| PENDING_CANCEL | |
| ACKNOWLEDGED | |
| PARTIALLY_FILLED | |
| FILLED | |
| CANCELLED | |
| REJECTED | |
Definition at line 30 of file order_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| MARKET | |
| LIMIT | |
| STOP | |
| STOP_LIMIT | |
| BRACKET | |
Definition at line 14 of file order_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| ADDED | |
| LISTED | |
| FAILED | |
Definition at line 32 of file browser_policy.hpp.
|
strong |
| Enumerator | |
|---|---|
| REJECT_IF_CROSSING | |
| ACCEPT | |
| REJECT | |
| NATIVE | |
Definition at line 25 of file order_entry.hpp.
| enum slick::trader::Side : uint8_t |
| Enumerator | |
|---|---|
| BUY | |
| SELL | |
| UNKNOWN | |
Definition at line 8 of file order_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| IDLE | |
| LOADING | |
| SYNCING | |
| READY | |
| REPLAYING | |
| FINISHED | |
| FAILED | |
Definition at line 60 of file sim_control.hpp.
|
strong |
| Enumerator | |
|---|---|
| STARTING | |
| RUNNIGN | |
| STOPING | |
| STOPED | |
Definition at line 7 of file status_event.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| GTC | |
| IOC | |
| FOK | |
| GTD | |
| DAY | |
Definition at line 22 of file order_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| PRE_OPEN | |
| OPEN | |
| HALTED | |
| CLOSED | |
Definition at line 14 of file instrument_status_event.hpp.
| PolicyUrl slick::trader::add_policy_url | ( | std::string_view | key, |
| std::string_view | url, | ||
| std::string & | error ) |
Definition at line 71 of file browser_policy.cpp.
References ADDED, FAILED, and LISTED.
Referenced by list_origin().
| void slick::trader::append_json_number | ( | std::string & | out, |
| T | value ) |
Definition at line 168 of file level2_book.hpp.
Referenced by write_level2_message(), and write_trade_message().
|
inline |
Definition at line 147 of file level2_book.hpp.
Referenced by write_level2_message(), and write_trade_message().
| std::vector< MdDefinition > slick::trader::coinbase_definitions | ( | const std::vector< coinbase::Product > & | products | ) |
Definition at line 189 of file coinbase_md_connector.cpp.
References to_price_t(), and to_qty_t().
|
inline |
Definition at line 20 of file fee_structure.hpp.
References from_price_t(), from_qty_t(), PER_UNIT, PERCENTAGE, slick::trader::FeeStructure::rate, to_price_t(), and slick::trader::FeeStructure::type.
Referenced by slick::trader::PositionTracker::on_fill().
| std::string slick::trader::dashboard_origin | ( | std::string_view | ip, |
| int64_t | port ) |
Definition at line 54 of file browser_policy.cpp.
Referenced by list_origin().
| bool slick::trader::dispatch_order_request | ( | slick::queue< uint8_t > & | queue, |
| uint64_t & | cursor, | ||
| BrokerId | broker, | ||
| New && | on_new, | ||
| Modify && | on_modify, | ||
| Cancel && | on_cancel ) |
Definition at line 81 of file order_event_writer.hpp.
References CANCEL_ORDER, is_request_for(), MODIFY_ORDER, and NEW_ORDER.
|
inline |
Definition at line 17 of file connector_support.hpp.
|
inlinenoexcept |
Definition at line 22 of file environment.hpp.
Referenced by is_production_environment(), and is_sim_environment().
| void slick::trader::for_each_part | ( | size_t | count, |
| size_t | max, | ||
| F && | f ) |
Definition at line 44 of file md_event_writer.hpp.
Referenced by slick::trader::MdEventWriter::levels(), and slick::trader::MdEventWriter::orders().
|
inline |
Definition at line 36 of file types.hpp.
References NULL_PRICE, and PRICE_SCALE.
Referenced by slick::trader::PositionTracker::attach_store(), slick::trader::StrategyBase::close_all_positions(), compute_fee(), slick::trader::PnLSnapshot::get_fees(), slick::trader::PnLSnapshot::get_realized(), slick::trader::PnLSnapshot::get_total(), slick::trader::Position::get_total_pnl(), slick::trader::PnLSnapshot::get_unrealized(), slick::trader::Position::get_unrealized_pnl(), slick::trader::StrategyBase::modify_order(), slick::trader::PositionTracker::on_fill(), slick::trader::StrategyBase::on_order_fill(), slick::trader::PositionStore::save(), slick::trader::RiskManager::set_limits(), slick::trader::StrategyBase::submit_order(), write_level2_message(), and write_trade_message().
|
inline |
Definition at line 40 of file types.hpp.
References QTY_SCALE.
Referenced by slick::trader::PositionTracker::attach_store(), slick::trader::StrategyBase::close_all_positions(), compute_fee(), slick::trader::Position::get_unrealized_pnl(), slick::trader::StrategyBase::modify_order(), slick::trader::PositionTracker::on_fill(), slick::trader::StrategyBase::on_order_fill(), slick::trader::PositionStore::save(), slick::trader::RiskManager::set_limits(), slick::trader::StrategyBase::submit_order(), write_level2_message(), and write_trade_message().
|
inline |
Definition at line 7 of file time.hpp.
Referenced by slick::trader::Event::Event(), slick::trader::StrategyBase::close_all_positions(), slick::trader::StrategyBase::generate_order_id(), slick::trader::StrategyBase::modify_order(), publish_definition(), run_kill_switch(), slick::trader::MdEventWriter::status(), slick::trader::StrategyBase::submit_order(), slick::trader::MdEventWriter::trade(), and wall_clock_offset_ns().
| std::vector< MdDefinition > slick::trader::hyperliquid_definitions | ( | const std::unordered_map< std::string, int > & | coin_to_asset, |
| const std::unordered_map< int, int > & | asset_to_sz_decimals ) |
Definition at line 207 of file hyperliquid_md_connector.cpp.
References slick::trader::MdDefinition::symbol, and to_qty_t().
|
inlinenoexcept |
Definition at line 31 of file environment.hpp.
References environment_is().
Referenced by slick::trader::TradingEngine::initialize().
Definition at line 13 of file iorder_connector.hpp.
Referenced by dispatch_order_request().
|
inlinenoexcept |
Definition at line 36 of file environment.hpp.
References environment_is().
Referenced by slick::trader::TradingEngine::initialize().
|
static |
Definition at line 26 of file trading_engine.cpp.
| void slick::trader::list_origin | ( | const nlohmann::json & | config, |
| std::string_view | setting, | ||
| int64_t | default_port, | ||
| std::span< const std::string_view > | keys ) |
Definition at line 129 of file browser_policy.cpp.
References add_policy_url(), ADDED, dashboard_origin(), FAILED, and LISTED.
Referenced by slick::trader::WebServer::initialize().
|
inlinenoexcept |
Definition at line 71 of file order_entry.hpp.
References QTY_SCALE.
Referenced by slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::trade().
|
constexprnoexcept |
Definition at line 29 of file md_event_writer.hpp.
Referenced by slick::trader::MdEventWriter::open(), and slick::trader::MdEventWriter::register_connector().
|
constexprnoexcept |
Definition at line 30 of file md_event_writer.hpp.
Referenced by slick::trader::OrderEventWriter::open(), and slick::trader::OrderEventWriter::register_connector().
|
inline |
Definition at line 38 of file order_entry.hpp.
References ACCEPT, NATIVE, REJECT, and REJECT_IF_CROSSING.
| SimFeedList slick::trader::parse_sim_feed_list | ( | std::string_view | text | ) |
Definition at line 133 of file sim_control.cpp.
References slick::trader::SimFeedList::live, and slick::trader::SimFeedList::pcap.
| std::vector< SimFeed > slick::trader::parse_sim_feeds | ( | std::string_view | text | ) |
Definition at line 106 of file sim_control.cpp.
References slick::trader::SimFeed::name, and UNKNOWN.
| const char * slick::trader::post_only_problem | ( | PostOnlyPolicy | policy, |
| const SharedTopOfBook * | top, | ||
| Side | side, | ||
| OrderType | type, | ||
| TimeInForce | tif, | ||
| price_t | price, | ||
| bool & | warned, | ||
| std::string_view | who ) |
Definition at line 6 of file order_entry.cpp.
References ACCEPT, slick::trader::SharedTopOfBook::ask, slick::trader::SharedTopOfBook::bid, BUY, slick::trader::SharedTopOfBook::EMPTY, NATIVE, REJECT, REJECT_IF_CROSSING, rests(), and slick::trader::SharedTopOfBook::UNKNOWN.
| bool slick::trader::process_md_request | ( | slick::queue< uint8_t > & | queue, |
| uint64_t & | cursor, | ||
| BrokerId | broker, | ||
| Subscribe && | on_subscribe, | ||
| Unsubscribe && | on_unsubscribe ) |
Definition at line 204 of file md_event_writer.hpp.
References slick::trader::BrokerStatusRegistry::instance(), process_md_request(), SUBSCRIBE, to_string(), and UNSUBSCRIBE.
Referenced by process_md_request().
|
inline |
Definition at line 65 of file md_event_writer.hpp.
References slick::trader::Event::broker_id, slick::trader::InstrumentDefinitionEvent::contract_multiplier, slick::trader::MdDefinition::currency, get_timestamp_ns(), slick::trader::InstrumentDefinitionEvent::max_quantity, slick::trader::MdDefinition::max_quantity, slick::trader::InstrumentDefinitionEvent::min_quantity, slick::trader::MdDefinition::min_quantity, slick::trader::MdDefinition::multiplier, slick::trader::EventSerializer::publish(), slick::trader::InstrumentDefinitionEvent::quantity_increment, slick::trader::MdDefinition::quantity_increment, slick::trader::InstrumentDefinitionEvent::set_currency(), slick::trader::Event::set_instrument(), slick::trader::MdDefinition::symbol, slick::trader::InstrumentDefinitionEvent::tick_size, slick::trader::MdDefinition::tick_size, and slick::trader::Event::timestamp_ns.
Referenced by slick::trader::MdEventWriter::definition().
|
inlinenoexcept |
Definition at line 27 of file queue_position.hpp.
References BUY, slick::trader::QueuePosition::level_index, slick::trader::QueuePosition::level_orders, slick::trader::QueuePosition::level_quantity, slick::trader::QueuePosition::orders_ahead, slick::trader::QueuePosition::price, slick::trader::QueuePosition::quantity, slick::trader::QueuePosition::quantity_ahead, SELL, and slick::trader::QueuePosition::side.
Referenced by slick::trader::StrategyBase::get_queue_position(), and queue_position().
|
inlinenoexcept |
Definition at line 56 of file queue_position.hpp.
References queue_position().
|
inline |
Definition at line 42 of file environment.hpp.
References PRODUCTION_ENVIRONMENT.
Referenced by slick::trader::TradingEngine::initialize().
|
inline |
Definition at line 68 of file environment.hpp.
References slick::trader::SimControlConfig::addr, slick::trader::SimControlConfig::ADDR_KEY, slick::trader::SimControlConfig::port, and slick::trader::SimControlConfig::PORT_KEY.
Referenced by slick::trader::TradingEngine::initialize().
|
inline |
Definition at line 149 of file order_entry.hpp.
References slick::trader::Event::broker_id, slick::trader::OrderEventBase::client_order_id, slick::trader::Event::instrument, slick::trader::NewOrderEvent::price, slick::trader::NewOrderEvent::quantity, slick::trader::OrderEventBase::side, and slick::trader::NewOrderEvent::stop_price.
|
inlinenoexcept |
Definition at line 59 of file order_entry.hpp.
References FOK, IOC, and LIMIT.
Referenced by post_only_problem().
| KillSwitchCount slick::trader::run_kill_switch | ( | std::string_view | who, |
| size_t | working, | ||
| uint64_t | timeout_ns, | ||
| Service && | service, | ||
| Step && | step, | ||
| std::string_view | fallback ) |
Definition at line 27 of file kill_switch.hpp.
References get_timestamp_ns(), slick::trader::KillSwitchCount::unreachable, and slick::trader::KillSwitchCount::waiting.
| void slick::trader::set_shm_name | ( | E & | event, |
| const std::string & | name ) |
Definition at line 34 of file md_event_writer.hpp.
Referenced by slick::trader::MdEventWriter::register_connector(), and slick::trader::OrderEventWriter::register_connector().
|
constexprnoexcept |
Definition at line 54 of file types.hpp.
References LEVEL2, and ORDER_BOOK.
Referenced by slick::trader::WebServer::initialize().
|
inline |
Definition at line 97 of file event.hpp.
References ALPACA, CME, COINBASE, HYPERLIQUID, ICE, SIMULATED, and UNKNOWN.
Referenced by slick::trader::TradingEngine::initialize().
|
inline |
Definition at line 20 of file coinbase_order_connector.cpp.
References BRACKET, LIMIT, MARKET, STOP, and STOP_LIMIT.
|
inline |
|
static |
Definition at line 24 of file hyperliquid_order_connector.cpp.
References FOK, GTC, GTD, IOC, and to_string().
|
inline |
Definition at line 24 of file types.hpp.
References NULL_PRICE, and PRICE_SCALE.
Referenced by slick::trader::PnLCalculator::calculate_pnl(), slick::trader::StrategyBase::close_all_positions(), coinbase_definitions(), compute_fee(), slick::trader::StrategyConfig::from_json(), slick::trader::StrategyManager::load_strategies(), slick::trader::StrategyBase::on_order_fill(), and slick::trader::PositionStore::save().
|
inline |
Definition at line 32 of file types.hpp.
References QTY_SCALE.
Referenced by coinbase_definitions(), slick::trader::StrategyConfig::from_json(), hyperliquid_definitions(), slick::trader::StrategyManager::load_strategies(), and slick::trader::PositionStore::save().
|
inline |
Definition at line 78 of file event.hpp.
References ALPACA, CME, COINBASE, HYPERLIQUID, ICE, and SIMULATED.
Referenced by slick::trader::MdRequestQueues::get(), process_md_request(), slick::trader::StrategyManager::start(), to_hl_tif(), and slick::trader::SimControl::to_json().
|
inline |
Definition at line 52 of file register_event.hpp.
References MARKET_DATA, and ORDER_CONNECTOR.
|
inlineconstexpr |
Definition at line 63 of file order_types.hpp.
References ACKNOWLEDGED, CANCELLED, FILLED, PARTIALLY_FILLED, PENDING_CANCEL, PENDING_MODIFY, PENDING_NEW, and REJECTED.
|
inlineconstexpr |
Definition at line 41 of file order_types.hpp.
References BRACKET, LIMIT, MARKET, STOP, and STOP_LIMIT.
|
noexcept |
Definition at line 101 of file sim_control.cpp.
|
inlineconstexpr |
|
inline |
|
inline |
Definition at line 31 of file connector_support.hpp.
|
inline |
Definition at line 24 of file connector_support.hpp.
References get_timestamp_ns().
|
inlinenoexcept |
Definition at line 64 of file order_entry.hpp.
References QTY_SCALE.
| void slick::trader::write_level2_message | ( | std::string & | out, |
| std::string_view | instrument, | ||
| uint64_t | event_time_ns, | ||
| uint64_t | sequence_num, | ||
| bool | is_snapshot, | ||
| ForEachLevel && | for_each_level ) |
Definition at line 184 of file level2_book.hpp.
References append_json_number(), append_json_string(), from_price_t(), and from_qty_t().
|
inline |
Definition at line 216 of file level2_book.hpp.
References append_json_number(), append_json_string(), from_price_t(), from_qty_t(), slick::trader::LastTrade::price, slick::trader::LastTrade::qty, and slick::trader::LastTrade::side.
|
inlineconstexpr |
Definition at line 16 of file browser_policy.hpp.
|
inlineconstexpr |
Definition at line 24 of file browser_policy.hpp.
|
inlineconstexpr |
Definition at line 15 of file browser_policy.hpp.
|
inlineconstexpr |
Definition at line 22 of file browser_policy.hpp.
|
inlineconstexpr |
Definition at line 19 of file environment.hpp.
Referenced by slick::trader::SimControl::environment().
|
constexpr |
Definition at line 10 of file register_event.hpp.
Referenced by slick::trader::RegisterEvent::RegisterEvent().
|
inlineconstexpr |
Definition at line 18 of file environment.hpp.
Referenced by slick::trader::SimControl::environment().
|
constexpr |
Definition at line 12 of file instrument_definition_event.hpp.
Referenced by slick::trader::InstrumentDefinitionEvent::set_currency().
|
constexpr |
Definition at line 13 of file event.hpp.
Referenced by slick::trader::Event::set_instrument(), and slick::trader::Level2Streams< Client >::subscribe().
|
constexpr |
Definition at line 9 of file order_book_event.hpp.
|
constexpr |
Definition at line 13 of file order_event.hpp.
Referenced by slick::trader::OrderFillEvent::set_fill_id().
|
constexpr |
Definition at line 14 of file order_event.hpp.
Referenced by slick::trader::OrderCancelEvent::set_reason(), and slick::trader::OrderRejectEvent::set_reason().
|
constexpr |
Definition at line 11 of file instrument_status_event.hpp.
Referenced by slick::trader::InstrumentStatusEvent::set_reason().
|
constexpr |
Definition at line 17 of file strategy_config_event.hpp.
|
constexpr |
Definition at line 11 of file position_event.hpp.
Referenced by slick::trader::PnLUpdateEvent::set_strategy_id(), and slick::trader::PositionUpdateEvent::set_strategy_id().
|
constexpr |
Definition at line 11 of file strategy_config_event.hpp.
Referenced by slick::trader::StrategyConfigEvent::set_strategy().
Definition at line 19 of file types.hpp.
Referenced by slick::trader::NewOrderEvent::NewOrderEvent(), from_price_t(), slick::trader::StrategyBase::modify_order(), slick::trader::StrategyBase::modify_order(), slick::trader::StrategyBase::submit_order(), to_price_t(), and slick::trader::PriceScale::to_wire().
|
inlineconstexpr |
Definition at line 17 of file browser_policy.hpp.
Referenced by slick::trader::WebServer::initialize().
|
constexpr |
Definition at line 20 of file types.hpp.
Referenced by from_price_t(), and to_price_t().
|
staticconstexpr |
Definition at line 24 of file hyperliquid_md_connector.cpp.
Referenced by slick::trader::HyperliquidMDConnector::HyperliquidMDConnector(), slick::trader::WebServer::initialize(), and slick::trader::HyperliquidMDConnector::register_md_connector().
|
inlineconstexpr |
Definition at line 14 of file environment.hpp.
Referenced by read_environment().
|
constexpr |
Definition at line 21 of file types.hpp.
Referenced by from_qty_t(), lots_to_qty(), to_qty_t(), and whole_lots().
|
inlineconstexpr |
Definition at line 26 of file browser_policy.hpp.
Referenced by slick::trader::WebServer::initialize().
|
inlineconstexpr |
Definition at line 30 of file istrategy.hpp.
Referenced by slick::trader::StrategyLoader::load().