Navigation

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

    How to fetch old expiry dates using python sdk?

    Python SDK
    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.
    • M
      Mitrajit last edited by

      Hi,

      For backtesting a banknifty strategy I need to know the ltp of a particular strike price. And also I have required the token, symbol and expiry date for getting ltp. But I don not know how to get old expiry dates.

      Please show me the way how to get it.

      Thank you.

      M Mnagesh 2 Replies Last reply Reply Quote 0
      • M
        Moderator_3 @Mitrajit last edited by

        Hwllo @Mitrajit

        As of now we are not providing the historical data of expired contract but for live contracts you can use the quote(Market Data API) or GetLtpData API

        Regards,
        SmartAPI Team

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

          @Mitrajit use underlying instrument
          like nifty index instead of nifty future or options
          similarly use SBIN-EQ instead of SBIN future or options

          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