Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • C

      Need Help Resolving API Error (AB1018) in Copy Trading Development
      Python SDK • • Chandraparsad01

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      @Chandraparsad01 SmartAPIs are meant for the end users and not platforms.

      You can may take help of the users on this forum for the same.

    • T

      Square off position
      General Discussion • • Tan

      2
      0
      Votes
      2
      Posts
      14
      Views

      A

      @Tan you can solve this in 2 ways:

      Either give POA authorization from the Angel one App / web
      or Use EDIS API - https://smartapi.angelone.in/docs/Edis from the SmartAPIs
    • V

      Live Data Candlestick
      General Discussion • • venkatsai

      2
      0
      Votes
      2
      Posts
      14
      Views

      A

      If you want to use candlestick data of a timeframe of your choice, use historical data API.

    • R

      Refresh token url
      NodeJS SDK • • rahul00125

      3
      0
      Votes
      3
      Posts
      10
      Views

      _

      @Moderator_3 Hello, till when a generated access token remains valid ? If I generate it at morning 9AM, when do I have to request a new one with refresh token ?

    • A

      New Feature Announcement: Enhanced Real-Time Market Data with our Market Data API!
      General Discussion • • admin

      13
      0
      Votes
      13
      Posts
      775
      Views

      V

      For this OHLC which timeframe data is this ....?

    • T

      Wrong timestamps in depth data for F&O
      General Discussion • • trader_noob

      1
      0
      Votes
      1
      Posts
      17
      Views

      No one has replied

    • A

      Important Announcement: Change in Angel One Login Policy
      General Discussion • • admin

      25
      0
      Votes
      25
      Posts
      1102
      Views

      A

      @Rakhi, i am also facing the same issue but unable to resolve.

      can you just let us know the process to resolve.

      Jupiter Error.jpg

    • P

      ERROR AG8001 / invalid token
      Python SDK • • PKM96

      3
      0
      Votes
      3
      Posts
      15
      Views

      A

      @PKM96 I think when Angel returns JWT token it has "bearer " word and even smart connect library appending it again. For me it worked after stripping it from received session response

    • M

      Error AG8001
      General Discussion • error • • mr_heman

      21
      0
      Votes
      21
      Posts
      496
      Views

      R

      I am having same issue with my api
      {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      Client ID: R226967

      please solve this

    • S

      Getting problems to connect var conn = new WebSocket('wss://wsfeeds.angelbroking.com/NestHtml5Mobile/socket/stream') in javascript
      General Discussion • • Sumant

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • M

      List of Scrips allowed for Intraday Trading
      General Discussion • • Moderator_1

      4
      0
      Votes
      4
      Posts
      302
      Views

      B

      @Roopa-B said in List of Scrips allowed for Intraday Trading:

      hai this is roppab nayak id is B491536 my smart api is blocked for treading kindly un block![
      This is Roppab Nayak, and my Smart API ID is B491536. My trading API seems to be blocked, and I am unable to proceed with any transactions. Kindly look into this issue and my API at the earliest.

    • S

      SmartConnect getOIData returning blank
      Python SDK • • S63128103

      3
      0
      Votes
      3
      Posts
      16
      Views

      B

      The issue likely lies with the parameters or the availability of the data you're requesting. Here's how you can debug and troubleshoot this problem:

      Possible Causes and Fixes
      Invalid or Insufficient Data for the Time Range:

      The time range "fromdate": "2024-12-30 09:20" to "todate": "2024-12-30 09:21" is only one minute. Check if the data exists for this exact time frame.
      Extend the time range to ensure data is available, for example:
      json
      Copy code
      "fromdate": "2024-12-30 09:20",
      "todate": "2024-12-30 09:30"
      Incorrect Interval:

      Ensure the "interval": "THREE_MINUTE" parameter is supported by the API for the specified data type (Open Interest). Try a commonly supported interval like "ONE_MINUTE" or "FIVE_MINUTE" to see if it resolves the issue.
      Invalid Symbol Token:

      Confirm that "symboltoken": "101931" corresponds to a valid and active symbol in the "exchange": "NFO". An invalid or inactive symbol will return no data.
      Verify this by querying metadata or using another API method to confirm the symbol’s validity.
      API Permissions or Limitations:

      Ensure your API credentials have permissions to access Open Interest (OI) data. Some API keys might have limited access.
      Check for API-specific documentation or limitations on fetching historical OI data.
      Improper Data Formatting:

      Double-check that fromdate and todate are formatted exactly as required by the API (e.g., "YYYY-MM-DD HH:MM:SS"). Small formatting errors may lead to no results.
      API-Side Issue:

      If all parameters seem correct, the issue might be on the API provider's side. Contact their support team or check their system status to ensure the endpoint is functioning correctly.
      Debugging Steps
      Log the Full API Request: Print the exact parameters being sent to getOIData to confirm everything is as expected.
      Expand the Data Range: Use a broader date range to verify if any data exists.
      Use a Known Valid Token: Test with a symbol token and interval combination you know works to ensure the API is functional.
      Test Different Data Types: If the API supports other types of data (e.g., historical price), test those to isolate the issue.
      Example Code with Extended Debugging
      python
      Copy code
      def historicaldata():
      try:
      historicParam = {
      "exchange": "NFO",
      "symboltoken": "101931",
      "interval": "FIVE_MINUTE",
      "fromdate": "2024-12-30 09:20",
      "todate": "2024-12-30 09:30",
      }
      print("Request Parameters:", historicParam) # Debugging
      return smartApi.getOIData(historicParam)
      except Exception as e:
      print("Error:", str(e)) # Catch full error details

      historical_data = historicaldata()
      print("Historical Data:", historical_data)
      If the issue persists despite these checks, you should reach out to the API provider with the exact request and response for further assistance.

    • S

      vendor/autoload.php
      Bugs • • Sumant

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • S

      There is a Bug in Node.JS Even Though I Have All The Correct Code and Credentials.
      Bugs • • Smart

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      @Smart You would need to set up TOTP in your authenticator app (eg. google authenticator). The string that you are sendings as a TOTP in the code is key to be configured in the authenticator app to generate the TOTP.

    • S

      SmartConnect getOIData throws blank results
      Python SDK • • S63128103

      2
      0
      Votes
      2
      Posts
      6
      Views

      A

      @S63128103 it is returning blank because no trades have happened in the contract at the time of writing this response. You can check the same on the Angel One's chart.

    • S

      Getting wrong volume data for stocks during live market using getCandleData(params)
      Python SDK • • sanjaymgour

      2
      0
      Votes
      2
      Posts
      8
      Views

      A

      @sanjaymgour share more info which can help to debug. eg, for which symbol are you trying to fetch, to and from date, time period etc.