History api returns -300 error without message, even for valid symbols

History api returns -300 error without message, even for valid symbols.

it work for indices

data:

{‘symbol’: ‘NSE:APOLLOHOSP-EQ’, ‘resolution’: ‘1’, ‘date_format’: ‘1’, ‘range_from’: datetime.date(2023, 12, 6), ‘range_to’: datetime.date(2023, 12, 6), ‘cont_flag’: ‘1’}

response:

{‘s’: ‘error’, ‘code’: -300, ‘message’: ‘’}

please note, it works for “-index”. Also when I intentionally give wrong symbol name it gives proper message “-300: Please provide a valid symbol”.. So issue is not with the input data send

I am also facing same issue from today. Not able to understand the exact reason behind that.

Hi @ranjanp2010-myj and @jimmy_mathew

Can you upgrade to fyers-apiv3, We upgraded our package before 6 months.

Please upgrade to APIV3 and check. It is working fine.

Sure, Sooner than later, I will be moving to v3.

Does it mean support for v2 is stopped??

may be i missed, don’t remember any communication on date stopping support for v2, a usual practice for any applications.

We don’t stop support of V2, we will check this but if you just need it then use v3

Thank you for the clarification.

I will upgrade ASAP, guess other than import no changes require for existing functionalities.

Apart from the V3 docs, is there any specific migration docs/steps available?

I am also facing the same issues

I’m also facing the same issue. Also the authentication steps mentioned here don’t work: https://pypi.org/project/fyers-apiv3/. This is very bad user experience !!

Instead of throwing error in v2, @Z4PBvkQGyF fyers should have said please upgrade to V3

Hi @jai_chaudhry
If you are not able to generate access token which written statements, Please learn about python a little bit first.
Then try same.
Everything is mentioned in clear words with comments.

and also all the users who are facing issue in v2 history.

Upgrade to V3. For v2 we are looking into it but our v3 is latest and we have been already informed 6 to 7 months ago that you guys should be shift to V3