Using the Opening Auction or Live Data to Buy Near the NSE Open
Summary
The document discusses ways to buy an NSE-listed stock close to its market opening price through a Zerodha API. It presents two approaches: submit an order during the pre-open period to participate in the opening auction, or wait for the auction to finish and use the market data feed to detect that the market has opened before sending a buy order. The auction approach can match at the opening price, but the price and precise matching time are unknown beforehand. The feed-triggered approach acts after the auction, so it cannot guarantee execution at the opening price.
The exchange is practical guidance rather than a tested strategy: it offers no execution data, comparison of order types, or evidence that either approach will meet a specified price limit. Outcomes may depend on order handling, liquidity, feed timing, and API latency, none of which are examined. The guidance is specific to the NSE opening process and does not establish that the same steps or timing apply to other exchanges or brokers.
Key ideas
- An order entered during the pre-open period can participate in the opening auction.
- The auction price and exact matching time are not known in advance.
- A market data feed can be monitored to trigger a buy after the opening auction completes.
- A post-auction trigger cannot ensure execution at the opening price.
Tags
Full text
# How to buy a stock as close to the marketopen price as possible in NSE? # How to buy a stock as close to the marketopen price as possible in NSE? I can place an order at 9.15 1s or 0s, using the API. The maximum change I can incur is +0.4%, kindly give your opinion on how I can do this? I use kite zerodha ## Answer by Ezy (score 1) https://quant.stackexchange.com/a/43276 Usually the best way to buy a stock at the open price is to participate in the opening auction. The issue is that you do not know in advance what the price will be (nor the exact match time) but you can place the order during the pre-open period. If you want to buy just after the opening auction has occurred then the standard way is to listen to the market data feed and check for the open status for the feed to trigger your buy order.
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.