Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Unable to fetch option data for Banknifty?

    C#/.Net SDK
    5
    8
    150
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TradeMonk last edited by

      I have tried below code which to get LTP but it is not sending me the result, instead i am getting error "symbol not found"

      LTPDataRequest lreq = new LTPDataRequest();
      lreq.exchange = Constants.EXCHANGE_NSE;
      lreq.symboltoken = "43573";
      lreq.tradingsymbol = "BANKNIFTY15JUL2135700PE";
      obj = connect.GetLTPData(lreq);
      GetLTPDataResponse ltp = obj.GetLTPDataResponse;

      Either I assume that SmartAPI doesn't even provide the option chain data, if yes then it is sad because then kindly recommend from where we can get the data. Otherwise, it will destruct the whole purpose of algo trading.

      Or I am doing something wrong, which I think I am not because both symbol token and tradingsymbol is right

      S 1 Reply Last reply Reply Quote 0
      • S
        sts @TradeMonk last edited by

        @TradeMonk said in Unable to fetch option data for Banknifty?:

        BANKNIFTY15JUL2135700PE

        I think your exchange should be NFO, not NSE

        T 1 Reply Last reply Reply Quote 0
        • T
          TradeMonk @sts last edited by

          @sts said in Unable to fetch option data for Banknifty?:

          NFO

          That worked. Thanks. ✌

          One more help. How can I get the list of all symboltoken and tradingsymbol?

          S 1 Reply Last reply Reply Quote 0
          • S
            sts @TradeMonk last edited by

            @TradeMonk They have a file for all the instruments, you can check in the documentation

            A 1 Reply Last reply Reply Quote 0
            • A
              asksameer @sts last edited by

              @sts
              @TradeMonk

              Are you calling angel api / sdk in C# Console application OR Web application?

              T 1 Reply Last reply Reply Quote 0
              • T
                TradeMonk @asksameer last edited by

                @asksameer I am creating a windows form application with few controls on it.
                Right now, I am not planning for 100% automation. I would like to check for few weeks with different settings.

                I am using SDK.

                M 1 Reply Last reply Reply Quote 0
                • M
                  mishipal @TradeMonk last edited by

                  @TradeMonk bro can you share some code for getting token lists.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @mishipal last edited by

                    HI @mishipal convert the json to csv.
                    https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post