Navigation

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

    Not able to get SENSEX spot value and strike value.

    Test
    0
    3
    16
    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.
    • K
      Kunal218 last edited by

      I am not able to get spot value for SENSEX by referring your doc link https://smartapi.angelbroking.com/topic/3986/smartapi-now-provides-real-time-market-data-for-120-indices-across-nse-bse-and-mcx/2 please suggest me if there anything change related to the SENSEX token and also for strike of SENSEX

      Nifty = '99926000'
      BankNifty = '99926009'
      FinNifty = ,'99926037'
      Sensex = '99919000'

      All three are workin exclude Sensex token
      n_b_tokens = ['99926000', '99926009' ,'99926037', '99919000']

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @Kunal218 last edited by

        Hi @Kunal218 For sensex this token is correct '99919000' and segment is BSE. Kindly make sure from your end that your using correct segment. If anything feel free to reach out to us.

        Regards,
        SmartAPI Team.

        K 1 Reply Last reply Reply Quote 0
        • K
          Kunal218 @Moderator_3 last edited by

          @Moderator_3 hello sir, I am using websocket to get spot value and strike LTP. But both values are not getting for SENSEX only, for others token I am getting everything correct value.

          code is below
          def on_data(wsapp, message):
          global tick_dict
          message['last_traded_price'] = message['last_traded_price']/100
          tick_dict[message['token']] = message

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