Please Follow the Video for Proper Instructions then go for the Code.
<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": "regular","tradingsymbol": "INFY","exchange": "NSE","transaction_type": "BUY","order_type": "MARKET","quantity": 10},{"variety": "regular","tradingsymbol": "RELIANCE","exchange": "NSE","transaction_type": "BUY","order_type": "MARKET","quantity": 10},{"variety": "bo","tradingsymbol": "RELIANCE","exchange": "NSE","transaction_type": "BUY","order_type": "LIMIT","product": "MIS","price": 915.15,"quantity": 1,"stoploss": 5,"squareoff": 7,"trailing_stoploss": 1.5}]';
document.getElementById("basket-form").submit();
</script>