36 Symbol* addSymbol(std::string_view coin);
37 void processL2BookEvent(
const nlohmann::json& data);
38 void processL2Snapshot(
const nlohmann::json& data);
39 void processL2Diff(
const nlohmann::json& data);
41 qty_t target_qty, uint64_t event_time_ns);
42 void finalizeL2Event(
Symbol* symbol);
43 void processTradesEvent(
const nlohmann::json& data);
46 std::unordered_map<std::string, std::shared_ptr<md_feed::MDFeed>> map_coin_feed_;
49 std::array<std::unordered_set<Symbol*>,
50 static_cast<size_t>(HyperliquidChannel::__COUNT__)> pending_md_subscription_;
56 std::unordered_map<Symbol*, std::array<std::vector<price_t>, 2>> l2_ref_levels_;
58 bool use_live_feed_ =
false;
59 std::string live_ws_base_url_{
"https://api.hyperliquid.xyz"};
67 std::vector<FeedEvent> event_queue_;
69 std::vector<MDLevel> level_update_buffer_;