Can some give a code example of placing a cover order for the following using python client?
script: NSE:RELIANCE since it is a cover order, it will be a market order... so is there a need to mention last price? (i think no?) stoploss... assume a stop loss of 10 rupees - and if last price is 1380, stoploss for the order payload should be 1370? or 10?
it would be greatly appreciated if someone can place the full expected lines of code, instead of pointing me to a existing github code.
I am expecting something like this as an answer to help.
kite.place_order(variety=co, exchange=NSE, tradingsymbol=RELIANCE, transaction_type=BUY,quantity=10, product=co, order_type=MARKET,stoploss=10) are there any other parameters too needed?
The stop loss trigger price is beyond the allowed range of 9.9%. Try a price within the range.
product='MIS'
. You need to sendtrigger_price
not stoploss value.Check all CO params here.