Navigation

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

    Posts made by krunal96

    • Tick not working. Getting only tick data of morning

      Hi @admin
      from SmartApi import SmartConnect
      import getpass

      Ask user input securely

      api_key = input("API Key: ").strip()
      client_code = input("Client Code: ").strip()
      password = getpass.getpass("Password: ")
      totp = getpass.getpass("TOTP (6 digits): ").strip()

      Create SmartConnect object

      obj = SmartConnect(api_key=api_key)

      Attempt to generate session

      resp = obj.generateSession(client_code, password, totp)

      Display full response

      print("\nLogin Response:", resp)

      Check and print the Bearer token if login is successful

      if resp.get("status") and resp.get("data") and "jwtToken" in resp["data"]:
      bearer_token = resp["data"]["jwtToken"]
      print("\n✅ Your Bearer Token:")
      print(f"Authorization: Bearer {bearer_token}")
      else:
      print("\n❌ Login failed:", resp.get("message"))
      I have generated the Bearer token using this code but while using it to get historical data it is showing following error
      Candle Data Response:
      {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}
      OI Data Response:
      {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      posted in General Discussion
      K
      krunal96
    • RE: Were can I find the Angel Library to use Smart Connect in Java?

      @naveen278 You can find here : https://smartapi.angelbroking.com/docs

      posted in General Discussion
      K
      krunal96
    • RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Language

      Is websocket 2.0 working? As i am getting only ping data(subscribing to Options). @admin @rajanprabu @StocksDeveloper @rjbanna

      posted in Python SDK
      K
      krunal96
    • websocket 2.0 not working

      Hi @admin ,
      I have tried to implement websocket 2.0 in nodeJS. It's working fine for few seconds,but after few seconds data is not coming.
      Please check and revert.

      https://smartapi.angelbroking.com/docs/WebSocket2

      posted in General Discussion
      K
      krunal96
    • RE: RMS:Blocked for NON-INTRADAY BO Remarks

      @rajanprabu Sure. Will check on this. Thank you.

      posted in Bugs
      K
      krunal96
    • RMS:Blocked for NON-INTRADAY BO Remarks

      Tried Below mentioned option call :
      {
      "variety": "ROBO",
      "tradingsymbol": "NIFTY22SEP2217550PE",
      "symboltoken": 52677,
      "transactiontype": "BUY",
      "exchange": "NFO",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "price": 54,
      "duration": "DAY",
      "squareoff": 58,
      "stoploss": 51,
      "quantity": 50
      }

      The API got success response along with order Id. But in app, I got below mentioned Error:

      RMS:Blocked for NON-INTRADAY BO Remarks: Bracket order not allowed for non-intraday clients block type: NON-SQROFF

      @rajanprabu @StocksDeveloper @rjbanna @PandaTrade @James-Bond : Can you help me on this?

      posted in Bugs
      K
      krunal96
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin Any update on this? Let me know once the migration process is done at your end.

      posted in General Discussion
      K
      krunal96
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Hi @admin ,

      Request you to migrate account: V74441.

      Also have submitted the google form for the same.

      posted in General Discussion
      K
      krunal96
    • RE: ECONNABORTED Error while placing GTT order

      @admin Thank you for the prompt reply.

      posted in Bugs
      K
      krunal96
    • ECONNABORTED Error while placing GTT order

      Hi Team,

      We are getting ECONNABORTED Error while placing GTT order. Message is : 'timeout of 7000ms exceeded'

      Please find the screenshot of the same

      d1fdbcbd-3fa2-40ed-a974-0518dc80e381-image.png

      The exact Request packet is as below. (error.config)

      {
        "url": "/rest/secure/angelbroking/gtt/v1/createRule",
        "method": "post",
        "data": {
          "tradingsymbol": "SBIN-EQ",
          "symboltoken": "3045",
          "exchange": "NSE",
          "producttype": "DELIVERY",
          "transactiontype": "BUY",
          "disclosedqty": 1,
          "price": 410,
          "qty": 1,
          "triggerprice": "410",
          "timeperiod": "20"
        },
        "headers": {
          "Accept": "application/json",
          "Content-Type": "application/json",
          "X-ClientLocalIP": "192.168.0.107",
          "X-ClientPublicIP": null,
          "X-MACAddress": "54:13:79:ba:68:69",
          "X-UserType": "USER",
          "X-SourceID": "WEB",
          "X-PrivateKey": "29YKelWB",
          "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1cybmFtZSI6Iko4ODQ4OCIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJpYXQiOjE2MjEyMzQ0MTUsImV4cCI6MTcwNzYzNDQxNX0.0Yyn_5eAJpNqIjpv2mCBfPnATMUuExb4KLbvRcsm_ZoK_9gVbhTjDmuFsQzJchRULGsT0WFocUcCQ61aoOpY3w",
          "User-Agent": "axios/0.20.0",
          "Content-Length": 179
        },
        "baseURL": "https://apiconnect.angelbroking.com",
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 7000,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1
      }
      
      posted in Bugs
      K
      krunal96
    • RE: Heikin Ashi Chart ?

      Hi @sekharmullu

      Please find below the formula to create the Heikin-Ashi chart.

      https://school.stockcharts.com/doku.php?id=chart_analysis:heikin_ashi#:~:text=The first Heikin-Ashi close,Ashi low equals the low.

      posted in General Discussion
      K
      krunal96
    • RE: What is GTT

      Hi @admin ,

      Can we have OCO (One Cancels Other) feature for GTT? This feature is available in zerodha. Do you have any roadmap for this feature?

      Thank you

      posted in General Discussion
      K
      krunal96
    • RE: how to know that smart api is working or not

      Hi @nandkishormunde ,

      Which programming language you are trying?

      posted in General Discussion
      K
      krunal96
    • RE: What new features will be available in the future?

      Hi @admin ,

      When can we expect the GTT orders for NFO as well? And thank you for including the documentation of GTT orders.

      https://smartapi.angelbroking.com/docs/Gtt

      posted in General Discussion
      K
      krunal96
    • RE: Thanks for Goodies, Angel SmartAPI team

      I would like to thank the Angel Broking Smart API Team for sending me the goodies - thermos bottle and T-shirt. This will definitely encourage people like us who are willing to contribute to this forum for its betterment.

      Specially thanks to @bhaveshjain & @admin for resolving and troubleshooting the issue/post pro-actively.

      Also, I would like to thank every active member of this forum for their contribution.

      posted in General Discussion
      K
      krunal96
    • RE: token's validity period

      Hi @rajanprabu ,

      Yes, I guess so.
      Token gets flushed every day in the morning (most brokers have implemented the same). Check out the similar post for zerodha/kite forum.

      https://kite.trade/forum/discussion/3866/access-token-invalidated-within-24-hours

      posted in General Discussion
      K
      krunal96
    • RE: Where do I get the the full list of available tradingsymbol and symboltoken to fetch the LTP?

      Hi @91priyansh ,

      You can check out my GitHub (nodejs) project for getting token against instruments/trading symbols.

      https://github.com/vishant2211/token/tree/master

      posted in General Discussion
      K
      krunal96