Why since morning GetHistoricalData is not working.. its throwing exception

jasdeepwalia
that symbol not found.. ?
  • jasdeepwalia
    i am just fetching data for exchange NSE Nifty bank.. why it is not working.. it always works for me..
  • jasdeepwalia
    here is my code..

    string[] candleData = kite.GetHistData("NSE", "Nifty bank", "minute", DateTime.Now.AddDays(-5),
    DateTime.Now.AddMinutes(10));

  • jasdeepwalia
    its suddenly throwing invalid trade symbol error.. it always worked.. i delete symbol files also.. but nothing happening..
  • sujith
    Hi @jasdeepwalia,
    Historical data API only takes instrument tokens and not tradingsymbol. Check out documentation here.
  • jasdeepwalia
    well i am using it since 3 months.. and i have not changed anything in code.. i always passed this.. and i am using howutrade .net api.. hwere is what documentation says.. pls if u can read thu completely.. that will help..

    public string[] GetHistData(
    string Exch,
    string TrdSymbol,
    string Interval,
    DateTime FromDate,
    DateTime ToDate
    )
    Parameters
    Exch
    Type: System.String
    Exchange
    TrdSymbol
    Type: System.String
    Trade Symbol
  • jasdeepwalia
    if i pass any other symbol.. it works fine.. i also checked nifty bank isnt present in my symbollist_nse.. deleted it and it got created again.. no success..
  • sujith
    @jasdeepwalia,
    The .net library is a third-party library built by @botany02, maybe he can help you with it.
  • botany02
    @jasdeepwalia
    Just checked the SymbolList_NSE.txt file, 'NIFTY BANK' symbol is present there.
    Working fine on my side...
    May be some unknown issue...
    As a workaround manually add the symbol details to text file..
    Add the below line to SymbolList_NSE.txt file which is present in your Bin Directory.

    NIFTY BANK,0,0,260105,NSE-INDICES

    Hope this helps
  • jasdeepwalia
    jasdeepwalia edited March 2017
    @botany02 But based on index data. I buy put or call of weekly expiry. What if few of those calls and putd r missing
Sign In or Register to comment.