Publisher Offsite order execution-Kite Connect 3-API-BO

Please Folllow the Video Properly then go for the Code Input:


<form method="post" id="basket-form" action="https://kite.trade/connect/basket">
<input type="hidden" name="api_key" value="r5a308ywreuekt3m"/>
<input type="hidden" id="basket" name="data" value=""/>
</form>
<script>
document.getElementById("basket").value='[{"variety":"bo","exchange":"NSE","tradingsymbol":"RELIANCE","transaction_type":"BUY","quantity":10,"product":"MIS","order_type":"LIMIT","price":1341.00,"squareoff":15,"stoploss":7,"trailing_stoploss":2.5},{"variety":"bo","exchange":"NSE","tradingsymbol":"RELIANCE","transaction_type":"BUY","quantity":10,"product":"MIS","order_type":"SL","price":1341.00,"trigger_price":1340.00,"squareoff":15,"stoploss":7,"trailing_stoploss":2.5},{"variety":"bo","exchange":"NSE","tradingsymbol":"RELIANCE","transaction_type":"SELL","quantity":10,"product":"MIS","order_type":"SL","price":1340.00,"trigger_price":1341.00,"squareoff":15,"stoploss":7,"trailing_stoploss":2.5}]';
document.getElementById("basket-form").submit();
</script>