Serve subscribed order book updates over a market WebSocket

This commit is contained in:
2026-12-03 07:35:08 +08:00
parent 6b50266300
commit e80e52275c
13 changed files with 675 additions and 20 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ pub(crate) fn id(market: &str, outcome: &str) -> String {
format!("eb:{outcome}:{market}")
}
pub(crate) fn parse_id(asset: &str) -> Result<(&str, &str)> {
pub fn parse_id(asset: &str) -> Result<(&str, &str)> {
let (outcome, market) = asset
.strip_prefix("eb:")
.and_then(|s| s.split_once(':'))