Navigation

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

    How to get Intraday data of 5min interval using websocket.

    Bugs
    5
    8
    144
    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.
    • P
      prajwalbigworld last edited by

      How to get Intraday data of 5min interval using websocket of niffty100 or niffty50 in nodejs sdk

      J 1 Reply Last reply Reply Quote 0
      • J
        jiwan1986 @prajwalbigworld last edited by

        @StockM You have to create your own logic for this. You can execute function every 5 minutes using timer.

        P 1 Reply Last reply Reply Quote 0
        • R
          rsivaku8 last edited by

          My ID is L22634 and getting below error while placing order.

          Unable to get order_id: {"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}

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

            @lokendra said in How to get Intraday data of 5min interval using websocket.:

            Unable to get order_id: {"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}

            Hi @lokendra , you need to pass correct authorization token. For details please refer - https://smartapi.angelbroking.com/docs/User

            1 Reply Last reply Reply Quote 0
            • P
              prajwalbigworld @jiwan1986 last edited by

              @rjbanna
              Thanks for reply.

              Can u help me, where to set the interval in websocket..

              S J 2 Replies Last reply Reply Quote 0
              • S
                Surya 1 @prajwalbigworld last edited by

                @StockM

                API only provides tick data. Users needs to convert them in to candles using their script/program.

                P 1 Reply Last reply Reply Quote 0
                • P
                  prajwalbigworld @Surya 1 last edited by

                  @rajanprabu

                  Hi,

                  Thanks for quick response, Is there any example or code sample or documents regarding, please share me..

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • J
                    jiwan1986 @prajwalbigworld last edited by

                    @StockM At the start of the script, start timer. Whenever you receive the tick data, check whether 5 minutes elapsed or not. If yes, then you you can consider it as a 5 minutes candle close.

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