Skip to content

Commit f5d9974

Browse files
authored
fix bad name (#158)
1 parent 910a874 commit f5d9974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polygon/websocket/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def parse_single(data: Dict[str, Any]):
1313
return CurrencyAgg.from_dict(data)
1414
elif event_type == EventType.EquityTrade.value:
1515
return EquityTrade.from_dict(data)
16-
elif event_type == EventType.ForexTrade.value:
16+
elif event_type == EventType.CryptoTrade.value:
1717
return CryptoTrade.from_dict(data)
1818
elif event_type == EventType.EquityQuote.value:
1919
return EquityQuote.from_dict(data)

polygon/websocket/models/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EventType(Enum):
2222
CryptoAgg = "CA"
2323
ForexAgg = "XA"
2424
EquityTrade = "T"
25-
ForexTrade = "XT"
25+
CryptoTrade = "XT"
2626
EquityQuote = "Q"
2727
ForexQuote = "C"
2828
CryptoQuote = "XQ"

0 commit comments

Comments
 (0)