Hello @dsomanath1812
12 to 13 sec is a random one usually it will take atmost 1 or 2 sec only
Regards,
SmartAPI Team
Moderator_3
@Moderator_3
Best posts made by Moderator_3
-
RE: Time duration taken processing orderposted in Bugs
-
RE: Doesn't Have slice order APIposted in General Discussion
Thanks for the suggestion.
For now , you can use the loop functionality to achieve the same.Regards,
SmartAPI Team -
RE: Session Terminationposted in Python SDK
Hello @jaideep-siddula
Can you please use the logout API with the hlep of below attached docs
https://smartapi.angelbroking.com/docs/User#logoutRegards,
SmartAPI Team -
RE: Option Greek not returning a responseposted in Test
Hi @ruchitgoswami5 Kindly check now we get the data. If not kindly let us know here.
Regards,
SmartAPI Team.
Latest posts made by Moderator_3
-
Closing Auction Session (CAS): Upcoming Changes from 03 Aug 2026posted in General Discussion
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:
-
3.15-3.20 pm: Reference price is calculated. Order entry via SmartAPI will be rejected in this phase.
-
3.20-3.25 pm: Limit and Market orders can be placed, modified, or cancelled.
-
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.
-
3.30-3.35 pm: Orders are matched against each other, and the closing price is set.
-
3.35-3.50 pm: Transition from CAS to Post-closing session
-
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
-
-
RE: Doesn't Have slice order APIposted in General Discussion
Thanks for the suggestion.
For now , you can use the loop functionality to achieve the same.Regards,
SmartAPI Team -
RE: Invalid TOTP Error Code AB1050posted in Python SDK
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 -
RE: Getting Invalid TOTP/Token error in generateSession method callposted in Bugs
TOTP expires within a minute.
Storing a TOTP in env variable will not workRegards,
SmartAPI Team -
RE: Ordertag character length restricted to 15 in the placeOrderposted in General Discussion
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
-
RE: Please share the "Order Status List" for Inteaday Trading work-flow stages.posted in NodeJS SDK
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 -
RE: "error_code":"AB9019 "posted in Test
Hi @sac
Informed respective team about this issue will update you soon on this.
Regards, Smart API Team
-
RE: Upticks and Downticks should be greater than given percentage!posted in General Discussion
Please share actual request, response & client id along with date & time order placed.
Regards, Smart API Team