INNER CODE UNIT · Python

get_pricing_history

HellAmbro/Trading212API · pytrading212/instrument.py:46

    def get_pricing_history(
            self,
            interval: str,
            headers: dict,
            trading_instance: 'Trading212'
    ) -> typing.List[CandleStick]:
        ticker_data: str = json.dumps(
            {
                "candles":
                    [
                        {
                            "ticker": self.instrument_code,
                            "useAskPrice": True,
                            "period": interval,
                            "size": 500
                        }
                    ]
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…