Market Orders via API

NSE circular on algo trading mentions

‘The pre-set percentage of LTP shall necessarily be
accompanied by a limit price. Members are required to
adhere to the Market Price Protection check, by not placing
any algorithmic orders on the Exchange as a market order.
System Auditor shall refer releva-Trade risk controls -
auditor shall verify these checks which are designed to
ensure that order placement is within the ranges as
prescribed by Exchange circulars’

Want to know how exactly can one instantly enter or exit a position at the prevailing price via API.

I send limit orders with limit price beyond ltp. So assuming there is liquidity between bid/ask and your price you get instant fills. Give large distance ( price will have to be before circuit price) and you should get your fill at basically market price.