INNER CODE UNIT · Python

__repr__

HellAmbro/Trading212API · pytrading212/instrument.py:31

    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

    def get_pricing_history(
            self,
            interval: str,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…