INNER CODE UNIT · Python
__init__
HellAmbro/Trading212API · pytrading212/instrument.py:28
def __init__(self, data: typing.List) -> None:
self.timestamp, self.high, self.low, self.opening, self.closing, self.unknown = data
def __repr__(self) -> str:
return (f"CandleStick(timestamp={self.timestamp}, high={self.high}, low={self.low},"
f" opening={self.opening}, closing={self.closing}, unknown={self.unknown})")
class Company:
"""Company Wrapper"""
charting_url: str = "/charting/v3/candles"
def __init__(self, instrument_code: str, isin: str, language_code: str = 'en'):
self.instrument_code = instrument_code
self.isin = isin
self.language_code = language_code