Historical API not working for BSE symbols

Historical API not working for BSE symbols for last few days, I am getting following error

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

But NSE symbols are works fine .

Hi @venu

Can you share the Symbol name ?

BSE:AEL-XT, BSE:BRPL-T, BSE:BALUFORGE-X, BSE:MAFATIND-X, BSE:TGVSL-A

As I can check
I am getting data

Can you check once again @venu from your side.

Ok, let me check this in the evening, in office now.

Can you also check for 1D with current epoch time and 24 hours before?

You once check and let me know.

Hi Pankaj, the history API is still not working for me. I use epoch value for start and end date.

could you please check it once again ?

current_time = datetime.datetime.now()
epoch = int( datetime.datetime(current_time.year, current_time.month, current_time.day, 17, 30, 0, 0).timestamp())
epoch_p = epoch - 86400
   
 for i in symbol:
        data = {
            "symbol": i,
            "resolution":"1D",
            "date_format":"0",
            "range_from":epoch_p,
            "range_to":epoch,
            "cont_flag":"1"
        }
        
        response = fyers.history(data=data)
        print(i, f"Status : {response['s']}")

I tried the other date format also but the result was same for BSE symbols.

Output:

Start date: 2023-11-20

End date: 2023-11-22

NSE:LICI-EQ Status : ok

{‘s’: ‘ok’, ‘candles’: [[1700438400, 614.65, 615.8, 609.95, 612.0, 502409], [1700524800, 613.0, 615.7, 610.0, 610.9, 718571]]}

BSE:BALUFORGE-X Status : error

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

‘candles’

BSE:BRPL-B Status : error

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

‘candles’

Excel updated!

Errors in BSE:BALUFORGE-X, BSE:BRPL-B,

for i in symbol:
        data = {
            "symbol": i,
            "resolution":"D",
            "date_format":"1",
            "range_from":"2023-11-20",
            "range_to":"2023-11-22",
            "cont_flag":"1"
        }
        response = fyers.history(data=data)
        print(i, f"Status : {response['s']}")
        print(response)

Hi Pankaj, could you please share the python code which is working for you to get historical data for BSE symbols

Use this code
https://github.com/FyersDev/fyers-api-sample-code/blob/sample_v3/v3/python/market_data/history.py

Pankaj, quite disappointed that, I am also using the same code, but it’s currently not working for BSE symbols,

Do you really checked for “BSE symbols” ? it’s working only for “NSE symbols”.

I was using the history module from January and it worked till 15 th November for BSE symbols, the issus is recent one, please check for “BSE symbols”

Bro I am attaching the screenshot

See the script name and above screenshot there is time and below is result.
Please check once.

I tried your above code without any success. Do not know how to fix it ? helpless now

I am surpised that it’s working fine for NSE but issue with all BSE symbols :frowning: