Navigation

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

    Option Chain

    Python SDK
    0
    7
    61
    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.
    • S
      subh last edited by

      In NIFTY there is around 200 of token for weekly expiry. Anyone have an idea that how to process of of token data simultaneously and take it as a padas data frame to excel. It may possible with threading, multiprocessing.pool..
      Feel free to contact me 9737599545

      C 1 Reply Last reply Reply Quote 0
      • C
        chetansuri @subh last edited by

        @subh you can download instrument file and put a logic that nifty and latest/nearest expiry day i.e today or nearest and then pass it in instrument list. this will fetch data from instrument_file with nifty strike as filter and then get you data via websocket.
        you can do manual work on updating intrument_key in websocket.

        S 1 Reply Last reply Reply Quote 0
        • S
          subh @chetansuri last edited by

          @chetansuri I have done it all but when it come to update pandas data frame data not update on every second. There is delay and may missing data.
          I want to know how to use threading and multiprocessing module for simultaneously process and update data.

          J C 2 Replies Last reply Reply Quote 0
          • J
            jaideep siddula @subh last edited by

            @subh
            There would be delay and some data would obviously be missing because there are ingenuities in the API infrastructure. It's about data retrieval.
            Regards,
            Jaideep Siddula

            S 1 Reply Last reply Reply Quote 0
            • S
              subh @jaideep siddula last edited by

              @jaideep-siddula how to use threading module

              J 1 Reply Last reply Reply Quote 0
              • J
                jaideep siddula @subh last edited by

                @subh
                https://docs.python.org/3/library/threading.html#module-threading
                Check this documentation to write the code yourself. Cheers!

                1 Reply Last reply Reply Quote 0
                • C
                  chetansuri @subh last edited by

                  @subh what is your use case that you want every tick data at 1 sec. you can always workout without such high frequency data.
                  You can use few strike price as you will not need tick for complete option chain.
                  If your use case demands every tick and processing. use some db and then work around that. Pandas dataframe and then running will always take some processing time. save raw data somewhere if you wish to. Maybe use 1 task for saving and another for processing.

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