Error in Publisher

arjunender
arjunender edited March 2018 in Kite Publisher
Hi,


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"}

For NSE exchange it is working fine


Thanks
  • arjunender
    any suggestions
  • cdesai1987
    check the data type number must no go as string
  • arjunender
    arjunender edited March 2018
    Ok

    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"
    });
  • sujith
    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.
  • arjunender
    It is working now
    Thanks sujith
This discussion has been closed.