INNER CODE UNIT · Python
StreamMsg
baileydanseglio/thetadata-python · thetadata/client.py:271
class StreamMsg:
"""Stream Msg"""
def __init__(self):
self.client = None
self.type = StreamMsgType.ERROR
self.req_response = None
self.req_response_id = None
self.trade = Trade()
self.ohlcvc = OHLCVC()
self.quote = Quote()
self.open_interest = OpenInterest()
self.contract = Contract()
self.date = None
class ThetaClient:
"""A high-level, blocking client used to fetch market data. Instantiating this class
runs a java background process, which is responsible for the heavy lifting of market