Incorrect historical data in fyers api v2

For queries like the following,

/data-rest/v2/history/?symbol=NSE%3ABANKNIFTY2230339500PE&resolution=1&date_format=1&range_from=2021-11-24&range_to=2022-03-03&cont_flag=0

Some output candles have data such as

where the “high” values are lower than “open” i.e. not the highest.

Or candle data such as

where the “open” and “high” values are 0 but others are not.

Or candle data such as

where the “low” values are not the lowest.

All of which are invalid cases. What am I missing here?

Based my inference on the documentation which mentions:

Candles data containing array of following data for particular time stamp:1.Current epoch time2. Open Value3.Highest Value4.Lowest Value5.Close Value6.Total traded quantity (volume)

historical data for all symbol is incorrect, I suppose that’s what you get for using free data api!

if you want correct data then you can try zerodha kite api, it’s paid!

Hi Pranay, definitely frustrating to see issues like this.

Have you used kite api data before? Is it completely reliable?

I haven’t tried it, but it seems best choice in the market.

Plus its affordable compared to other serivce.

I was going to use Fyers Data APIs. But after looking at your post, I will have to find another option. I was using Samco & it’s decent. The only problem is, it’s not fast for intraday trading.

Have you tried Truedata? Is that more expensive than kite data apis?

Otherwise we will have to use kite if there is no other option.

Yeah..I agree. There is lot of inconsistency in data returned by Fyers API V2. For example :

Volume data is also erroneous for ICICI Bank. I fetched 1 min volume data for 2021-01-01. Following is the response:

{'s': 'ok', 'candles': [[1609472700, 312.0, 312.6, 312.0, 312.6, 30], [1609473300, 312.48, 312.48, 312.45, 312.45, 2].....

Just 30 volume at market opening in 1st minute definitely not possible.

No, I’m afraid I haven’t tried either of them yet.

I’ve just been looking for historical intraday data at a reasonable cost but so far haven’t found a reliable one.

Was Samco data accurate?

Right. Have you tried any other alternatives for historical data?

i tried kite zerodha api, its accurate.

Hi Pranay,

I believe zerodha API cost Rs 4000 per month. Are you willing to share this cost? We can use the same login so that we pay 2000 each per month. If you are ready, pls let me know.

If you trade in zerodha itself, then we can use my login instead. I have zerodha account but I don’t trade there. I trade on Zebu. I am currently only looking for data vendor who is fast, reliable & cost effective. Pls let me know what you think. Thanks!

do you only need historical data?

Historical & intraday, both.

@abyg7FQ1gR Can you please share the script to [email protected]? I want to test some algorithms on historical data.

Hi Pranay, I am interested in your script, if it’s able to read options & index OHLC data for 1 min, 5 min, 15 min, etc. Pls mail me the details to [email protected].

I just sent email to [email protected]. Please check your inbox.

Hi Pranay, I am interested in your script, if it’s able to read options & index OHLC data for 1 min,3 min, 5 min, 15 min, etc. Pls mail me the details to [email protected]

I mailed you, pls check.

@vikram_sri, Fyers Team, any response to this issue?

@XBJPc1XDCM what solution did you find? Did you move to another platform or found a way to clean this data?

Clean = ignore such data during back testing.

I am trying to get EOD historical data (resolution=D) using historical API. so if i put from and to date both as today’s date or future date, what’s the output expected ? I was expecting empty data, but it’s sending live quote in historical API, so now I can’t use it as my logic gets screwed up.