You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
help in retrieving OHLCV data from the project: #292
Is your feature request related to a problem? Please describe.
I am unable to locate the function or file that retrieves the OHLCV (Open, High, Low, Close, Volume) data in the repository. I have checked the src, main.js, and docs folder but could not find any relevant code for fetching the market data. It’s causing difficulty in integrating my candlestick strategy with the available data.
Describe the solution you'd like
I would appreciate if the function or file that fetches OHLCV data can be pointed out or documented. If possible, please guide me on how to properly fetch the market data so I can proceed with my strategy integration.
Describe alternatives you've considered
I have considered exploring other parts of the repository like main.js and the src folder, but I have not been able to locate the relevant data-fetching function. I have also checked the documentation but did not find specific guidance on this.
Additional context
If there's any documentation or code that could help point me toward the OHLCV data retrieval process, that would be very helpful. Any examples or guidance would be greatly appreciated.
It is possible to download the candles but it depends on the timeframe of the candles and the amount of candles you want downloaded as you need a paid plan to get any significant amount of data
It is possible to download the candles but it depends on the timeframe of the candles and the amount of candles you want downloaded as you need a paid plan to get any significant amount of data
how much andcan my function work on this in my function he fath 5 mineat timeframe candle evry 5 mineats
Do you need historical data or just live 5 minute data from now onwards, if you need historical data you wont be able to go that far back on the 5 minute timeframe due to the candle cap and will cost upwards of $60 USD, but live data is no issue.
4.0.0 makes this much simpler: getCandles({ symbol, timeframe, ... }) returns OHLCV data without managing chart sessions. See the README quick start and examples/candles.js.
npm install @mathieuc/tradingview now installs 4.0.0 (TypeScript, Node 20+ and Bun).
If this still happens on 4.0.0, please open a new issue with a minimal reproduction. Thanks!
Activity
KieranSpanner commentedon Apr 29, 2025
It is possible to download the candles but it depends on the timeframe of the candles and the amount of candles you want downloaded as you need a paid plan to get any significant amount of data
KieranSpanner commentedon Apr 29, 2025
@David129676
David129676 commentedon Apr 30, 2025
how much andcan my function work on this in my function he fath 5 mineat timeframe candle evry 5 mineats
KieranSpanner commentedon May 2, 2025
Do you need historical data or just live 5 minute data from now onwards, if you need historical data you wont be able to go that far back on the 5 minute timeframe due to the candle cap and will cost upwards of $60 USD, but live data is no issue.
Mathieu2301 commentedon Oct 22, 2026
4.0.0 makes this much simpler:
getCandles({ symbol, timeframe, ... })returns OHLCV data without managing chart sessions. See the README quick start andexamples/candles.js.npm install @mathieuc/tradingviewnow installs 4.0.0 (TypeScript, Node 20+ and Bun).If this still happens on 4.0.0, please open a new issue with a minimal reproduction. Thanks!