Navigation

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

    Is there any solution to get the result of multiple symbols/scripts in a single call?

    General Discussion
    0
    3
    20
    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.
    • V
      Vishal.naykawala last edited by Vishal.naykawala

      Is there any solution to get the result of multiple symbols/scripts in a single call?
      i.e. currently I have to make 10 calls if want to get a value of 10 scripts. instead of that, I want to make a single call and get the LTP of all 10 scripts.

      1 Reply Last reply Reply Quote 0
      • A
        anankagroup last edited by

        Steps :

        Calculate the length of the string.
        Scan every character(ch) of a string one by one
        if (ch is a digit) then append it in res1 string.
        else if (ch is alphabet) append in string res2.
        else append in string res3.
        Print all the strings, we will have one string containing a numeric part, other non-numeric part, and the last one contains special characters.

        Source: https://www.geeksforgeeks.org/split-numeric-alphabetic-and-special-symbols-from-a-string/

        V 1 Reply Last reply Reply Quote 0
        • V
          Vishal.naykawala @anankagroup last edited by Vishal.naykawala

          @anankagroup Not this,

          In Zerodha, there is a provision to make an array list of scripts and pass to it to get the LTP of the script in a single call.
          Like, Reliance, HUL, TCS, BAJAJELE can pass as array and single response can get which can be use further.

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