Navigation

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

    Issue with getLTP for Nifty/Banknifty

    Test
    0
    3
    39
    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.
    • A
      Ananth last edited by

      @admin
      Getting 0 value for open, low & high in both nifty & banknifty.

      Attaching response FYR.
      {
      "exchange": "NSE",
      "tradingsymbol": "BANKNIFTY",
      "symboltoken": "26009",
      "open": 0,
      "high": 0,
      "low": 0,
      "close": 38712.45,
      "ltp": 39036.05
      }

      {
      "exchange": "NSE",
      "tradingsymbol": "NIFTY",
      "symboltoken": "26000",
      "open": 0,
      "high": 0,
      "low": 0,
      "close": 16983.55,
      "ltp": 17121.3
      }

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @Ananth last edited by

        Hi @Ananth, this is a known issue in getLTP API call for nifty and banknifty indices. Request you to please establish a websocket connection to get this information.
        Documentation here - https://smartapi.angelbroking.com/docs/WebSocket2
        User guide - https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language

        K 1 Reply Last reply Reply Quote 0
        • K
          kapuvala @admin last edited by

          @admin
          I try many times to get LTP data but it's through error.

          {"status":"success","http_code":500,"http_error":"Syntax error or empty or invalid parameter pass","response_data":null}

          Do you have any solutions?

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