Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. wish
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 3
    • Best 0
    • Groups 0

    wish

    @wish

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    wish Unfollow Follow

    Latest posts made by wish

    • 403 Access denied

      I am currently facing issues with multiple data APIs, including the Historical Data API, Quotes API, and Gainers/Losers API.

      For example, while making the following request:

      method: 'post',
      url: 'https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData',
      data: '{"exchange":"NSE","symboltoken":"10940","interval":"ONE_DAY","fromdate":"2026-04-28 09:30","todate":"2026-05-04 09:30"}',
      

      I receive the following response:

      • Status: 403
      • Message: "Access denied because of exceeding access rate"

      What is confusing is that this error occurs within the first few requests itself, so it does not appear to be a typical rate limit breach.

      Could you please clarify:

      1. Are there any undocumented that might be triggering this?
      2. What is the cooldown or penalty duration once the rate limit is exceeded?
      3. Could this error also be caused by authentication/session-related issues?

      Any guidance would be greatly appreciated. Thank you!

      posted in General Discussion
      W
      wish
    • Historical oi issue

      I am trying to fetch oi data for a particular symbol
      my function:

      async getHistoricalOI({ symbolToken, interval, from, to }) {
      if (!this.sessionData?.jwtToken) {
      throw new Error('Not authenticated');
      }

      const token = this.getFuturesToken(symbolToken);
      console.log(token);
      
      const response = await axios.post(
        'https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getOIData',
        {
          exchange: 'NFO',
          symboltoken: token,
          interval,
          fromdate: from,
          todate: to
        },
        {
          headers: {
            'Authorization': `Bearer ${this.sessionData.jwtToken}`,
            'Content-Type': 'application/json',
            'Accept': 'application/json',
            'X-PrivateKey': CONFIG.API_KEY,
            'X-UserType': 'USER',
            'X-SourceID': 'WEB',
            'X-ClientLocalIP': '127.0.0.1',
            'X-ClientPublicIP': '127.0.0.1',
            'X-MACAddress': '00:00:00:00:00:00'
          }
        }
      );
      
      console.log(response);
      
      if (!response.data?.status) {
        throw new Error(response.data?.message || 'OI API failed');
      }
      
      return {
        success: true,
        interval,
        data: response.data.data || []
      };
      

      }

      response
      data: {
      message: 'Something Went Wrong, Please Try After Sometime',
      errorcode: 'AB1004',
      status: false,
      data: null
      }

      token used: 1114606 (which is for TCS25DECFUT)
      interval: 'ONE_DAY',
      from: '2025-12-01 09:15',
      to: '2025-12-19 15:30'

      also tried for :
      interval: 'THREE_MINUTE',
      from: '2025-12-19 09:15',
      to: '2025-12-19 15:30'

      posted in NodeJS SDK
      W
      wish