Navigation

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

    SymbolToken API Call

    Python SDK
    3
    5
    96
    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.
    • A
      amitmahesh99 last edited by

      Hello, I am unable to find the API call for getting SymbolToken. At present I am using indirect method of accessing json dum as given n the documentation, create a dataframe out of it and find the token using name.
      ef2db882-aab4-431f-aff0-291056731452-image.png

      My question is whether there is a direct API call to get token information using name of the instrument? Above method is very unfriendly..

      S 1 Reply Last reply Reply Quote 0
      • S
        Surya 1 @amitmahesh99 last edited by

        @aditya79india

        if you are using only cash market, symbols dont change.. you can have a local csv file and read it overtime. FnO symbols changes every week, so it has to be dynamic. I normally run a cronjob to download the json file everyday morning and parse it before the market opens.

        A 1 Reply Last reply Reply Quote 0
        • A
          amitmahesh99 @Surya 1 last edited by

          @rajanprabu
          Thanks for the response. I'm a newbie to algo trading and trying to build a system for FnO trade. Since I'm on Windows, cronjob is out for me. So I guess, I will integrate the download code into my main program itself.

          But not providing a direct API Call for such an essential requirement is too primitive a move for Angel!

          S D 2 Replies Last reply Reply Quote 0
          • S
            Surya 1 @amitmahesh99 last edited by

            @aditya79india

            I have developed my own naming convention which does the job for me. Im not sure if others provide one..

            1 Reply Last reply Reply Quote 0
            • D
              Dasamiya299 @amitmahesh99 last edited by

              @aditya79india Well said, what idiot developers are implementing this, parsing the JSON file takes almost 20 mins.

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