Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions polygon/rest/models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Market(Enum):
STOCKS = "stocks"
CRYPTO = "crypto"
FX = "fx"
OTC = "otc"


class AssetClass(Enum):
Expand Down
2 changes: 2 additions & 0 deletions polygon/websocket/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class EquityAgg:
average_size: Optional[float] = None
start_timestamp: Optional[int] = None
end_timestamp: Optional[int] = None
otc: Optional[bool] = None

@staticmethod
def from_dict(d):
Expand All @@ -38,6 +39,7 @@ def from_dict(d):
d.get("z", None),
d.get("s", None),
d.get("e", None),
d.get("o", None),
)


Expand Down