Navigation

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

    intraday 30 min data for nifty

    Test
    2
    10
    52
    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.
    • F
      fcoder last edited by

      hi,
      Please let me know how I can fetch 30 min intraday data for nifty for 1 day, i.e. same trading day. Is it available? If not, does websockets provide ohlc data or just ltp data for index?

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

        HI @fcoder You can use ltp api or websocket to get the 30 min data.

        F 1 Reply Last reply Reply Quote 0
        • F
          fcoder @admin last edited by

          @admin . Here is code where I am getting null response for data element.![alt text](bb4e9cfb-be7b-4e3b-b083-0497fcbb240f-image.png image url)

          Please help, why data is null for token=26000. Function name: GetCandleDataRequest.

          F 1 Reply Last reply Reply Quote 0
          • F
            fcoder @fcoder last edited by

            @fcoder ![alt text](b585e7ec-ced8-463d-9c7c-88bd2cc15861-image.png image url)

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

              HI @fcoder You are using historical data API to get the data currently we support NSE equity to get the historical data.

              F 2 Replies Last reply Reply Quote 0
              • F
                fcoder @admin last edited by

                @admin so are you saying there is no way to get 15/30 min ohlc data for index?

                F 1 Reply Last reply Reply Quote 0
                • F
                  fcoder @fcoder last edited by

                  @fcoder so are you saying there is no way to get 15/30 min ohlc data for index? IF there is a way please provide details. Please update.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fcoder @admin last edited by

                    @admin so are you saying there is no way to get 15/30 min ohlc data for index? If there is a way please provide details.

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

                      HI @fcoder Did you tried web socket to get the index data...?

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

                        Hi @fcoder to get the ltp use below req:
                        obj.ltpData("NSE", "BANKNIFTY", "26009")
                        replace banknifty token with nifty

                        To get the ohlc use websocket convert tick data to minute data and resample it to 15/30 min according to your requirement.

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