I am getting this error in Publisher (< script src="https://kite.trade/publisher.js?v=1">) {"status":"error","message":"Invalid orders payload.","data":null,"error_type":"InputException"}
I think the issue was you were not sending product value. Now we have updated Kite Publisher to take NRML as default product. You can check and let us know if the issue still persists.
Ex:
kite.add({
"exchange": "NFO",
"tradingsymbol": "BANKNIFTY18MARFUT",
"quantity": 40,
"transaction_type": "BUY",
"order_type": "MARKET"
});
kite.add({
"exchange": "NFO",
"tradingsymbol": "INDUSINDBK18MARFUT",
"quantity": 300,
"transaction_type": "SELL",
"order_type": "MARKET"
});
now this error is coming
{"status":"error","message":"No valid orders found in payload.","data":null,"error_type":"InputException"}
The same is working for NSE
Ex:
kite.add({
"exchange": "NSE",
"tradingsymbol": "INFY",
"quantity": 5,
"transaction_type": "BUY",
"order_type": "MARKET"
});
kite.add({
"exchange": "NSE",
"tradingsymbol": "SBIN",
"quantity": 1,
"transaction_type": "SELL",
"order_type": "MARKET"
});
Thanks sujith