Code for placing amo orders on zerodha

Hi Team,

Please share code for placing after market orders on zerodha for options?

Hi @Sobhit,

Below is the code to place AMO orders:

kite.place_order(variety = kite.VARIETY_AMO, exchange= kite.EXCHANGE_NSE, tradingsymbol = name, transaction_type = kite.TRANSACTION_TYPE_SELL, quantity = lot_size, product = kite.PRODUCT_MIS, order_type = kite.ORDER_TYPE_MARKET, price = None, validity = None, disclosed_quantity = None, trigger_price = None, tag = None)