diff --git a/polygon/websocket/models/__init__.py b/polygon/websocket/models/__init__.py index 4b0a3c31..259f0e44 100644 --- a/polygon/websocket/models/__init__.py +++ b/polygon/websocket/models/__init__.py @@ -13,7 +13,7 @@ def parse_single(data: Dict[str, Any]): return CurrencyAgg.from_dict(data) elif event_type == EventType.EquityTrade.value: return EquityTrade.from_dict(data) - elif event_type == EventType.ForexTrade.value: + elif event_type == EventType.CryptoTrade.value: return CryptoTrade.from_dict(data) elif event_type == EventType.EquityQuote.value: return EquityQuote.from_dict(data) diff --git a/polygon/websocket/models/common.py b/polygon/websocket/models/common.py index d9a1d50d..635e15fb 100644 --- a/polygon/websocket/models/common.py +++ b/polygon/websocket/models/common.py @@ -22,7 +22,7 @@ class EventType(Enum): CryptoAgg = "CA" ForexAgg = "XA" EquityTrade = "T" - ForexTrade = "XT" + CryptoTrade = "XT" EquityQuote = "Q" ForexQuote = "C" CryptoQuote = "XQ"