Follow-up Q:
I really like the third solution above :Python wrapper for TradingView's Lightweight Charts library
How is this used for a real-time API datafeed so the candles are built in real time?