python-tradingview-ta
python-tradingview-ta copied to clipboard
Reading the price
Hello, How can I read the current price?
Hello AminAbdiyan,
python-tradingview-ta is not designed to read realtime prices. However, you can read the simple moving average, which is the average price.
To read the realtime price, you can use free API from finnhub[dot]io, alphavantage[dot]co, or directly from an exchange.
Please let me know if you have any other questions.
Hello deathlyface,
Thank you for your quick reply. I scan the network with Chrome dev tools but when price changes there is no request, how Tradingview update price?
As I said in the previous comment, TradingView's API is not in realtime. You need to send a request repeatedly according to the timeframe, for example every 1 minute.
Might consider the gist here giving streaming data from TV
can read prices with python and metatrader with this repo