Navigation

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

    Assistance Required: No Candle Data/Time Range Issue in Angel Broking API

    Python SDK
    0
    3
    8
    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.
    • S
      shobhathengane last edited by

      Dear Angel Broking API Support Team,

      I am facing an issue while using the Angel Broking Historical Candle Data API. When attempting to fetch historical data for Bank Nifty (symbol: NSE:26009) with the /rest/secure/angelbroking/historical/v1/getCandleData endpoint, I am receiving a response indicating "no candle data or data points and time range not available."

      Below are the key details of my query:

      Endpoint Used: /rest/secure/angelbroking/historical/v1/getCandleData
      Request Payload:
      {
      "exchange": "NSE",
      "symboltoken": "26009",
      "interval": "FIVE_MINUTE",
      "fromdate": "2025-01-27 10:00:00",
      "todate": "2025-01-27 11:00:00"
      }
      Authorization Header: JWT Token generated successfully using /rest/auth/angelbroking/user/v1/loginByPassword.
      Error Details: No candle data or time range not available, despite providing a valid time range and parameters.
      Could you please confirm:

      If there are any specific restrictions/limitations for fetching historical candle data (e.g., minimum or maximum time range for intervals)?
      If the symbol token or interval mapping (e.g., "FIVE_MINUTE") is incorrect?
      If there are API rate limits that might block this request?
      Whether the format of fromdate and todate (YYYY-MM-DD HH:MM:SS) is supported or needs adjustment?

      Your guidance on resolving this issue will help us troubleshoot further and modify the code accordingly.

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

        @shobhathengane use token 99926009 for bank nifty

        1 Reply Last reply Reply Quote 0
        • M
          McDivit last edited by

          Some APIs require UTC timestamps. Try formatting fromdate and todate as YYYY-MM-DDTHH:MM:SSZ (ISO 8601).
          Example:

          {
          "fromdate": "2025-01-27T10:00:00Z",
          "todate": "2025-01-27T11:00:00Z"
          }

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