How to Access Live NIFTY and BANKNIFTY Option Chain Data Using Python


  • Hello SmartAPI Team,

    I want to access live NIFTY and BANKNIFTY option chain data, including CE/PE Open Interest (OI), Change in OI, Volume, and LTP.

    My setup:

    • Device: Android mobile
    • Internet: Airtel mobile data
    • Programming language: Python
    • Output: Microsoft Excel
    • Purpose: Market data only; I do not need to place or modify orders.

    When I try to create an API app, the form asks for Primary Static IP, Redirect URL, and Postback URL.

    Could you please clarify:

    1. Is a Primary Static IP mandatory for market-data-only API access?
    2. Can I use SmartAPI with Airtel mobile data, which may have a changing IP address?
    3. What should I enter for Redirect URL and Postback URL for a Python market-data application?
    4. Is live NIFTY and BANKNIFTY option-chain data available through the official API?

    Please guide me on the correct setup.

    Thank you.