Orders are rejected when placed by API

pawan
@sujith: Can you please help me with this?

I tried to place a BUY order for "BANK NIFTY" via APIs but the order was rejected with error "RMS:Field not found 63002". Below is the order request passed to zerodha Nodejs SDK and this is the order_id 191227000061129 returned by zerodha SDK -
{
"tradingsymbol": "NIFTY BANK",
"transaction_type": "BUY",
"quantity": 20,
"product": "CNC",
"order_type": "MARKET",
"validity": "DAY",
"exchange": "NSE",
"price": 32142.5,
"disclosed_quantity": 0,
"trigger_price": 0,
"squareoff": 0,
"stoploss": 0,
"trailing_stoploss": 0
}
When the same order payload was submitted to KITE APIs via POSTMAN, i got the "InputException" with this error - "Missing or empty field `exchange`". I've attached the screenshot of POSTMAN window.
  • sujith
    Hi @pawan,
    You need to send a valid tradingsymbol which can be found in the instrument master dump which is published by the exchange while placing an order.
    The order quantity has to be in multiples of the lot size which can be found in the instrument dump.
    The exchange is NFO for all NSE futures and options instruments.
    A Product type for F&O instruments can only be MIS or NRML.
    CNC is a product type for delivery trades on the equity segment.
  • sujith
    NIFTY BANK is an index, one can't trade indices. One can only trade F&O contracts of an index.
Sign In or Register to comment.