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

    • Closing Auction Session (CAS): Upcoming Changes from 03 Aug 2026

      What is CAS?

      SEBI has introduced a new 20-minute auction window at the end of the trading day to determine the closing price for stocks that have F&O contracts. This replaces the earlier method of using the last 30 minutes of continuous trading to arrive at the closing price. CAS goes live from 03 Aug 2026.

      What are the changes in schedule and timing?

      The updated market timings are as follows:

      1. 3.15-3.20 pm: Reference price is calculated. Order entry via SmartAPI will be rejected in this phase.

      2. 3.20-3.25 pm: Limit and Market orders can be placed, modified, or cancelled.

      3. 3.25-3.30 pm: No changes or cancellations on Market Orders. Limit orders can still be placed/modified. Random close anytime between 3:28 pm and 3:30 pm.

      4. 3.30-3.35 pm: Orders are matched against each other, and the closing price is set.

      5. 3.35-3.50 pm: Transition from CAS to Post-closing session

      6. 3.50-4.00 pm: Trades settle at the Equilibrium Price discovered in the auction.

      What order type restrictions will be in place?

      • Stop-loss and Iceberg orders for CAS-eligible stocks are disallowed between 3:15-3:40 pm.

      • After 3:25 pm, Market orders can no longer be modified or cancelled – only added or changed as Limit orders.

      • F&O trading in NFO and BFO will be extended till 3:40 pm on all trading days.

      • Changes to post-closing session apply to all stocks, regardless of whether they are CAS-eligible or not.

      Changes in Auto-Square Off Timings

      For intraday trades, the auto-square off timings will see the following changes from 03 Aug 2026.

      • Equity Robo Orders: 3:05 pm

      • Equity MIS Orders: 3:10 pm

      • Equity F&O Orders: 3:20 pm

      How to check if a stock is CAS-eligible?

      A new field, is_cas_enabled, is now available in the instrument master response. Check out the sample:

      {  
       
        "token" : "99926000",  
       
        "symbol" : "Nifty 50",  
       
        "name" : "NIFTY",  
       
        ...  
       
        "is_cas_enabled" : true 
       
      }
      

      A new field, referenceLimitPrice in our Market Data API can be used to get the Reference Price. Here’s a sample response:

      {  
       
      "status": true,  
       
      ...  
       
      "high": "191.25",  
       
      "low": "185",  
       
      "close": "187.80",  
       
      "referenceLimitPrice": "191",  
       
      }
      

      What are “Reference Price” and “Equilibrium Price”?

      The Reference Price is fixed at the start of CAS – it's the VWAP of trades between 3:00-3:15 pm (or LTP/previous close if no trades), and it sets the ±3% band within which CAS orders can be placed.

      The Equilibrium Price is discovered at the end of CAS – it's the price at which the maximum quantity of orders placed during the auction get matched, using volume maximisation.

      In short: Reference Price is the starting boundary for the auction, Equilibrium Price is its outcome. The Equilibrium Price becomes the stock's closing price for the day; if none is discovered, the Reference Price is used instead.

      Where to get more detailed information?

      You can view our full API documentation here: https://smartapi.angelone.in/docs/CASDoc

      For additional reading:

      “NSE To Bring Closing Auction Session: What Does It Mean for Stock Prices and Investors?” on Angel One

      “SEBI Introduces Closing Auction Session to Enhance Equity Market Price Discovery” on Angel One

      BSE’s official circular published on 10 Jun 2026

      NSE’s official circular published on 29 May 2026

      SEBI’s official circular published on 16 Jan 2026

      posted in General Discussion
      M
      Moderator_3
    • SmartAPI Websocket

      How to use smartapi websocket connections?

      posted in General Discussion
      M
      Moderator_3
    • Websocket documentation

      How to use websocket documentation?

      posted in General Discussion
      M
      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 Test
      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 Test
      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