Skip to content

Commit aefe876

Browse files
author
clickingbuttons
authored
Add OTC websocket models (#234)
1 parent 17487bc commit aefe876

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

polygon/rest/models/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Market(Enum):
2020
STOCKS = "stocks"
2121
CRYPTO = "crypto"
2222
FX = "fx"
23+
OTC = "otc"
2324

2425

2526
class AssetClass(Enum):

polygon/websocket/models/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class EquityAgg:
2020
average_size: Optional[float] = None
2121
start_timestamp: Optional[int] = None
2222
end_timestamp: Optional[int] = None
23+
otc: Optional[bool] = None
2324

2425
@staticmethod
2526
def from_dict(d):
@@ -38,6 +39,7 @@ def from_dict(d):
3839
d.get("z", None),
3940
d.get("s", None),
4041
d.get("e", None),
42+
d.get("o", None),
4143
)
4244

4345

0 commit comments

Comments
 (0)