mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
trade size is optional
This commit is contained in:
@@ -343,7 +343,8 @@ class PolygonCryptoTradeWebSocketData(WebSocketData):
|
||||
description="The price of the trade.",
|
||||
json_schema_extra={"x-unit_measurement": "currency"},
|
||||
)
|
||||
size: float = Field(
|
||||
size: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The size of the trade.",
|
||||
)
|
||||
|
||||
@@ -669,7 +670,8 @@ class PolygonStockTradeWebSocketData(WebSocketData):
|
||||
description="The price of the trade.",
|
||||
json_schema_extra={"x-unit_measurement": "currency"},
|
||||
)
|
||||
size: float = Field(
|
||||
size: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The size of the trade.",
|
||||
)
|
||||
exchange: str = Field(
|
||||
@@ -958,7 +960,8 @@ class PolygonOptionsTradeWebSocketData(WebSocketData):
|
||||
description="The price of the trade.",
|
||||
json_schema_extra={"x-unit_measurement": "currency"},
|
||||
)
|
||||
size: float = Field(
|
||||
size: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The size of the trade.",
|
||||
)
|
||||
exchange: str = Field(
|
||||
|
||||
Reference in New Issue
Block a user