Navigation

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

    getting the next expiry dates

    General Discussion
    automation
    5
    7
    121
    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.
    • R
      rahul4019 last edited by

      Hi ,
      Is there are a way to get next expiry day dates ?
      @rjbanna any clue

      R J 2 Replies Last reply Reply Quote 0
      • R
        rahul4019 @rahul4019 last edited by

        @rajanprabu
        @James-Bond
        How do you get the weekly expiry dates in your algos..
        Tried to use nsepy library but it is not working

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

          @PandaTrade

          I wrote a wrapper to fetch it from NSE.

          1 Reply Last reply Reply Quote 0
          • J
            jiwan1986 @rahul4019 last edited by

            @PandaTrade You can use web scraping to fetch those data.

            1 Reply Last reply Reply Quote 0
            • James Bond
              James Bond last edited by

              I too used web scraping to get upcoming expiry. Little code of Scrapy or BeautifulSoup does the job very well.

              “Bond. James Bond.”

              1 Reply Last reply Reply Quote 0
              • N
                nahas_n last edited by

                just save the dates ones for a year. and read the above from text file and compare with today date. and choose the near one. u only need to update once in a year.

                1 Reply Last reply Reply Quote 0
                • Mnagesh
                  Mnagesh last edited by

                  method 1:
                  present day + next Thursday

                  method 2:
                  from script master extract all exp dates and chose the nearest one from the current date.

                  Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

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