It looks like you're new here. If you want to get involved, click one of these buttons!
const KiteConnect = require("kiteconnect").KiteConnect;
const kite = new KiteConnect({
api_key: "xxx",
access_token: "xxx"
})
const order = {
"variety": "regular",
"exchange": "NSE",
"tradingsymbol": "ORIENTELEC",
"transaction_type": "BUY",
"quantity": 20,
"product": "MIS",
"order_type": "LIMIT",
"price": 383.5,
"validity": "DAY",
"disclosed_quantity": null,
"trigger_price": null,
"squareoff": null,
"stoploss": null,
"trailing_stoploss": null,
"tag": "FC_LONGENTRY",
"order_id": null
};
(async ()=>{
try {
const resp = await kite.placeOrder(order.variety, order)
console.log(resp)
}
catch(err) {
console.log(err)
}
})();
Try running it in a loop 10 times.