From 95a1356c8c852bbf700a514c203bfb2885113a03 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:18:16 -0800 Subject: [PATCH] trade size is optional --- .../openbb_polygon/models/websocket_connection.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openbb_platform/providers/polygon/openbb_polygon/models/websocket_connection.py b/openbb_platform/providers/polygon/openbb_polygon/models/websocket_connection.py index c333ddfaf16..989a135097f 100644 --- a/openbb_platform/providers/polygon/openbb_polygon/models/websocket_connection.py +++ b/openbb_platform/providers/polygon/openbb_polygon/models/websocket_connection.py @@ -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(