TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

help in retrieving OHLCV data from the project:

Open David129676 opened this issue 10 months ago β€’ 4 comments

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.


David129676 avatar Apr 25 '25 22:04 David129676

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 avatar Apr 29 '25 12:04 KieranSpanner

@David129676

KieranSpanner avatar Apr 29 '25 12:04 KieranSpanner

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

David129676 avatar Apr 30 '25 18:04 David129676

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.

KieranSpanner avatar May 02 '25 04:05 KieranSpanner