diff --git a/openbb_platform/extensions/websockets/openbb_websockets/broadcast.py b/openbb_platform/extensions/websockets/openbb_websockets/broadcast.py index f8f4dd71d5b..a3cf9a911f3 100644 --- a/openbb_platform/extensions/websockets/openbb_websockets/broadcast.py +++ b/openbb_platform/extensions/websockets/openbb_websockets/broadcast.py @@ -53,7 +53,7 @@ async def read_stdin(broadcast_server): async def websocket_endpoint( # noqa: PLR0915 websocket: WebSocket, auth_token: Optional[str] = None ): - """WebSocket endpoint.""" + """Connect to the broadcast server.""" broadcast_server = BroadcastServer( RESULTS_FILE, diff --git a/openbb_platform/providers/intrinio/openbb_intrinio/utils/stocks_client.py b/openbb_platform/providers/intrinio/openbb_intrinio/utils/stocks_client.py index 46c22d81fad..d3d78e8b9d1 100644 --- a/openbb_platform/providers/intrinio/openbb_intrinio/utils/stocks_client.py +++ b/openbb_platform/providers/intrinio/openbb_intrinio/utils/stocks_client.py @@ -46,6 +46,8 @@ HEADER_CLIENT_INFORMATION_VALUE = "IntrinioPythonSDKv5.3.0" class Quote: + """Intrinio Realtime Stocks Quote.""" + def __init__( self, symbol, @@ -57,6 +59,7 @@ class Quote: market_center, condition, ): + """Initialize the Quote object.""" self.symbol = symbol self.type = type self.price = price @@ -66,8 +69,6 @@ class Quote: self.market_center = market_center self.condition = condition - """Intrinio Realtime Stocks Client.""" - def __str__(self): """Return string representation of the quote.""" return ( @@ -90,6 +91,8 @@ class Quote: class Trade: + """Intrinio Realtime Stocks Trade.""" + def __init__( self, symbol, @@ -139,6 +142,8 @@ class Trade: class IntrinioRealtimeClient: + """Intrinio Realtime Stocks Client.""" + def __init__( self, options: Dict[str, Any], @@ -419,6 +424,8 @@ class IntrinioRealtimeClient: class QuoteReceiver(threading.Thread): + """Intrinio Realtime Stocks Quote Receiver.""" + def __init__(self, client): """Initialize the QuoteReceiver.""" threading.Thread.__init__(self, args=(), kwargs=None) @@ -498,6 +505,8 @@ class QuoteReceiver(threading.Thread): class QuoteHandler(threading.Thread): + """Intrinio Realtime Stocks Quote Handler.""" + def __init__(self, client, bypass_parsing: bool): """Initialize the QuoteHandler.""" threading.Thread.__init__(self, args=(), kwargs=None)