Navigation

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

    Posts made by Moderator_3

    • RE: Doesn't Have slice order API

      @RahulKM

      Thanks for the suggestion.
      For now , you can use the loop functionality to achieve the same.

      Regards,
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Invalid TOTP Error Code AB1050

      @vinaykush

      Attaching a sample code for generating TOTP using pyotp.

      import pyotp as tp

      Define your secret key

      secret_key = "SECRET CODE HERE" # Replace this with your actual secret key

      Generate TOTP

      totp = tp.TOTP(secret_key)
      current_otp = totp.now()

      Regards,
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_3
    • RE: Getting Invalid TOTP/Token error in generateSession method call

      @brajalal

      TOTP expires within a minute.
      Storing a TOTP in env variable will not work

      Regards,
      SmartAPI Team

      posted in Bugs
      M
      Moderator_3
    • RE: Ordertag character length restricted to 15 in the placeOrder

      Hi @ravitandur

      Currently, OrderTag characters restricted to 15 characters if it goes beyond 15 characters will get rejected in Angel One.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Please share the "Order Status List" for Inteaday Trading work-flow stages.

      Hi @Rakhi

      Please use Order Book API to get to know order status.

      API URL :

      https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getOrderBook

      Please refer doc to consume order book API.
      https://smartapi.angelbroking.com/docs/Orders

      posted in NodeJS SDK
      M
      Moderator_3
    • RE: "error_code":"AB9019 "

      Hi @sac

      Informed respective team about this issue will update you soon on this.

      Regards, Smart API Team

      posted in Bugs
      M
      Moderator_3
    • RE: Upticks and Downticks should be greater than given percentage!

      Hi @krinavmakwana

      Please share actual request, response & client id along with date & time order placed.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Greeks data for sensex bankex and commodity symbols

      Hi @Karthik_Sunkari

      Verified. Able to see data for CRUDEOIL MCX with expiry 2024-12-16. Please try again.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Order ID not returning in Tradebook

      Hi @dhruv2599

      With uniqueorderid you can't cancel the order. I can able to see the order id for SBIN stock. Please try again.

      Regards, Smart API Team

      posted in Python SDK
      M
      Moderator_3
    • RE: "error_code":"AB9019 "

      Hi @balaji-k-subash

      Informed respective team about this issue will update you soon on this.

      Regards, Smart API Team

      posted in Bugs
      M
      Moderator_3
    • RE: "funds withdrawn" not visible in angel one website

      Hi @coolankurmahe

      Please upload screenshot with issue your facing.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Refresh token url

      Hi @rahul00125

      In login response you'll get refresh token. You can make of use of entire session. With that refresh token you can generate JWT token & refresh token with below Generate Token API.

      API Doc
      https://smartapi.angelbroking.com/docs/User#flow

      API URL :
      https://apiconnect.angelone.in/rest/auth/angelbroking/jwt/v1/generateTokens

      Sample Request :
      {
      "refreshToken": "3MzM1MDM4Mzh9.oYwF7PD68xyVZrwi-ku1ZWlMHmU8Wpwy1e5x2ZO9Kmx3Aw0pj2tkqHlk0_vQXJfAccKo6cM5GBo8qGfqMaZm_A"
      }

      Sample Response :
      {
      "status": true,
      "message": "SUCCESS",
      "errorcode": "",
      "data": {
      "jwtToken": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IkRJWUQyMjgxMyIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJ0b2tlbiI6ImV5SmhiR2NpT2lKU1V6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUoxYzJWeVgzUjVjR1VpT2lKamJHbGxibl"
      }
      }

      posted in NodeJS SDK
      M
      Moderator_3
    • RE: Option Greeks for SENSEX

      Hi @kann87

      Team working on this. Will update once it got resolved.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Stock name to Symbol

      Hi @sourav344

      Use SearchScrip API for Implementing search feature

      URL :

      https://apiconnect.angelone.in/rest/secure/angelbroking/user/v1/searchScrip

      Sample Request :

      {
      "exchange": "NSE",
      "searchscrip": "Reliance Industries Limited"
      }

      Sample Response :
      {
      "status": "success",
      "message": "",
      "error_code": "",
      "data": {
      "dataList": [
      {
      "type": "scrip",
      "icon": "icons/scrip/eq_v1.png",
      "tradeSymbol": "RELIANCE-EQ",
      "isCashWithFno": true,
      "nseCashToken": "2885",
      "bseCashToken": "500325",
      "curFutToken": "",
      "details": "RELIANCE INDUSTRIES LTD",
      "expirydate": "01 Jan 1980",
      "instName": "",
      "isinCode": "INE002A01018",
      "mktSegID": "1",
      "optType": "",
      "priceTck": "0.05",
      "regLot": "1",
      "secDesc": "RELIANCE INDUSTRIES LTD",
      "strkPrice": "-1",
      "symbolName": "RELIANCE",
      "token": "2885",
      "isCommodityWithOption": false,
      "isIndices": false,
      "maxSingleTransactionQty": "67658",
      "compName": "RELIANCE INDUSTRIES LTD",
      "npriceNum": "1",
      "npriceDen": "1",
      "sector": "Refineries",
      "marketCapCategory": "Large Cap",
      "mktcap": "1787896.63",
      "scripType": "nseCash",
      "isMTFEligible": true,
      "astCls": "cash",
      "series": "EQ",
      "segmentSubType": "stockCash",
      "minLot": "1",
      "lotSize": "",
      "divider": "100",
      "filterTypes": [
      "STOCKCASH"
      ]
      },
      {
      "type": "scrip",
      "icon": "icons/scrip/eq_v1.png",
      "tradeSymbol": "RELIANCE",
      "isCashWithFno": false,
      "nseCashToken": "2885",
      "bseCashToken": "500325",
      "curFutToken": "",
      "details": "RELIANCE INDUSTRIES LTD.",
      "expirydate": "01 Jan 1980",
      "instName": "",
      "isinCode": "INE002A01018",
      "mktSegID": "3",
      "optType": "",
      "priceTck": "0.05",
      "regLot": "1",
      "secDesc": "RELIANCE INDUSTRIES LTD.",
      "strkPrice": "-1",
      "symbolName": "RELIANCE",
      "token": "500325",
      "isCommodityWithOption": false,
      "isIndices": false,
      "maxSingleTransactionQty": "0",
      "compName": "RELIANCE INDUSTRIES LTD",
      "npriceNum": "1",
      "npriceDen": "1",
      "sector": "Refineries",
      "marketCapCategory": "Large Cap",
      "mktcap": "1787896.63",
      "scripType": "bseCash",
      "isMTFEligible": true,
      "astCls": "cash",
      "series": "A",
      "segmentSubType": "stockCash",
      "minLot": "1",
      "lotSize": "",
      "divider": "100",
      "filterTypes": [
      "STOCKCASH"
      ]
      }
      ],
      "suggester": {
      "suggester": []
      },
      "categories": [
      {
      "keyword": "",
      "displayValue": "All"
      },
      {
      "keyword": "STOCKCASH",
      "displayValue": "Cash"
      }
      ],
      "scripExperiment": ""
      }
      }

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: unable to create TOTP

      HI @mydomain

      Describe your issue clearly with error screenshot. So, we can help you with a fix.

      Regards, Smart API Team

      posted in General Discussion
      M
      Moderator_3
    • RE: Issue with TOTP and API Authentication

      Hi @mydomain

      If password length exceed 4 characters then you have switch to MPIN. You will get msg like "LoginbyPassword is not allowed. Please switch to Login by MPIN now".

      Please share client code & length of your password.

      Regards, SmartAPI Team.

      posted in Bugs
      M
      Moderator_3
    • RE: sensex symbol name is wrong

      Hi @meet-panchal

      Okay. Glad you resolved. Happy coding.

      Regards, Smart API Team

      posted in Python SDK
      M
      Moderator_3
    • RE: Ticker disconnected and reconnected multiple times

      Hi @futunc

      The total limit/quota of token subscriptions is 1000 per WebSocket session.

      Please refer WebSocket Streaming 2.0 documentation to get know limitations :
      https://smartapi.angelbroking.com/docs/WebSocket2

      Regards, SmartAPI Team

      posted in Bugs
      M
      Moderator_3
    • RE: WebSocket Streaming 2.0

      Hi @Daksh

      Please share subscription request which helps to get identify the issue.

      Regards, Smart API Team

      posted in Bugs
      M
      Moderator_3
    • RE: not able to login

      Hi @SVG,

      Please share user id, request &header values to get to know more about the issue.

      Regards, Smart API Team.

      posted in Bugs
      M
      Moderator_3