feat: implement Polymarket WebSocket cache and add dashboard panel UI components

This commit is contained in:
2569718930@qq.com
2026-04-22 00:09:49 +08:00
parent c40b7c54e3
commit 5a1610d428
3 changed files with 82 additions and 59 deletions
+4 -4
View File
@@ -63,8 +63,8 @@ def test_ws_cache_parses_price_change_side_updates():
data = cache.get_market_data("asset-1")
assert data is not None
assert data["buy"] == 0.48
assert data["sell"] == 0.45
assert data["buy"] == 0.45
assert data["sell"] == 0.48
def test_ws_cache_parses_price_changes_key_and_book_event():
@@ -94,8 +94,8 @@ def test_ws_cache_parses_price_changes_key_and_book_event():
data = cache.get_market_data("asset-1")
assert data is not None
assert data["sell"] == 0.44
assert data["buy"] == 0.48
assert data["sell"] == 0.48
assert data["buy"] == 0.49
def test_ws_cache_subscription_payloads_match_market_channel_shape():