def place_order( variety, #variety = ["VARIETY_AMO", "VARIETY_BO", "VARIETY_CO", "VARIETY_REGULAR"] exchange, #exchange = ["EXCHANGE_BFO", "EXCHANGE_BSE", "EXCHANGE_CDS", "EXCHANGE_MCX", "EXCHANGE_NFO", "EXCHANGE_NSE"] tradingsymbol, #tradingsymbol = ['INFY','BANKNIFTY20AUGFUT'] transaction_type, #transaction_type = ["TRANSACTION_TYPE_BUY", "TRANSACTION_TYPE_SELL"] quantity, #intented quanity to be traded. Multiples of lot size in case of derivatives product, #product = ["PRODUCT_BO", "PRODUCT_CNC", "PRODUCT_CO", "PRODUCT_MIS", "PRODUCT_NRML"] order_type, #order_type = ["ORDER_TYPE_LIMIT", "ORDER_TYPE_MARKET", "ORDER_TYPE_SL", "ORDER_TYPE_SLM"] price=None, #offcourse the price at which you want to trade, in multiples of 5 paisa validity=None, #validity = ["VALIDITY_DAY", "VALIDITY_IOC"] disclosed_quantity=None, # optional. same as quantity or 'None' trigger_price=None, #applicable only for ORDER_TYPE_SL, ORDER_TYPE_SLM and VARIETY_CO's SL leg else 'None' squareoff=None, #target price to entry price difference. applicable in case of bracket orders, else 'None' stoploss=None, #stop loss to entry price difference. applicable in case of bracket orders, else 'None' trailing_stoploss=None, #trailing points in case of a bracket order, else 'None' tag=None)