Setting the limit price automatically is the only benefit of market orders (with protection). Otherwise they become completely useless and API users should all switch over to using only limit orders.
Zerodha, would it be too much to ask for, if you could use separate subdomain names for "order api endpoints" and "non-order api endpoints"? For those with multiple ISP connections or operating from cloud platforms with multiple gateways, could sepa…
Same errors today on each and every request. Not random nor infrequent, but on every request. Also the ordering API endpoints are giving a similar error on every request (kt-oms).
I figured this out myself.
The last candle is the "live candle" still forming with changing market data, and so its timestamp is of the current minute. This also means we should be careful in using this candle, or exclude it entirely, while feeding…
Timestamps on 1-minute candles are wrong, or maybe my assumption.
Assumption - candle for data between 11:25 and 11:26 will have timestamp of 11:25 (candle opening time, as I read at many places that Zerodha API generates candles named after openin…