getting error : “Please provide valid symbol”.
Trying to get Nifty Spot Historical data. Code was working fine till last Thursday, suddenly this error coming. Has anything changed?
getting error : “Please provide valid symbol”.
Trying to get Nifty Spot Historical data. Code was working fine till last Thursday, suddenly this error coming. Has anything changed?
Code Snippet : data = {“symbol”: “NSE:NIFTY50-INDEX”, “resolution”: “15”, “date_format”: “1”, “range_from”: rangeFromDate,
“range_to”: rangeToDate, “cont_flag”: “1”}
histData = fyers.history(data)
getting error “{‘code’: -300, ‘message’: ‘Please provide a valid symbol’, ‘s’: ‘error’}”
@WWhYB2qrsx @shruthi_shetty can you assist.
Hey @ankit_prajapati1 could you please inform if you’re using API V2 or V3
@WWhYB2qrsx : I am still on V2..
Please upgrade to V3 to avoid such errors.
Please follow our API latest API docs for this
Docs link : https://myapi.fyers.in/docsv3
and follow code from this github repo
Github Repo : https://github.com/FyersDev/fyers-api-sample-code/tree/sample_v3/v3
@WWhYB2qrsx : where can I get the list of correct symbol details ? In V3 docs also the symbol name is same
The symbology format is mentioned in the docs , please make sure that the other paramters enters as well are right , to avoid this error.
@ankit_prajapati1 Are you able to resolve this issue? I am still facing the same. Checked all parameters, everything look fine to me. @WWhYB2qrsx could you please give a sample code here which can clarify the question. I am trying to fetch Nifty index data using this symbol - ‘NSE:NIFTY50-INDEX’
Here is the whole data
{‘symbol’: ‘NSE:NIFTY50-INDEX’, ‘resolution’: ‘1’, ‘date_format’: ‘1’, ‘range_from’: datetime.date(2024, 1, 5), ‘range_to’: datetime.date(2024, 2, 24), ‘cont_flag’: ‘1’}
@sushant_dhumak : I upgraded the API version to v3 and it’s working fine now.
@ankit_prajapati1 , could you solve this? I had a complete python algo in place till last year. Suddenly getting this error while resuming it now
@102997041584190612487 : please migrate to V3..that should solve your issue