not a valid product code

chaudhariapurva
hi ,
i am placing the oreder and the raw capture is

POST https://api.kite.trade/orders/regular HTTP/1.1
Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
User-Agent: XXXXXXX
Content-Type: application/x-www-form-urlencoded
Host: api.kite.trade
Content-Length: 181
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

exchange=NSE&tradingsymbol=INFY&transaction_type=BUY&quantity=1&product=NRML&order_type=MARKET&variety=regular&access_token=XXXXX&api_key=XXXXX

Im getting error ---->>"{\"status\": \"error\", \"message\": \"Not a valid Product Code\", \"error_type\": \"OrderException\"}"

kindly help me resolve this problem
  • chaudhariapurva
    ALSO TRIED THIS---->
    POST https://api.kite.trade/orders/regular HTTP/1.1
    Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
    User-Agent: XXX
    Content-Type: application/x-www-form-urlencoded
    Host: api.kite.trade
    Content-Length: 182
    Accept-Encoding: gzip, deflate

    exchange=NSE&tradingsymbol=SUZLON&transaction_type=BUY&quantity=1&product=MIS&order_type=MARKET&variety=regular&access_token=XXX&api_key=XXX

    BUT STILL SAME ERROR
  • Vivek
    @chaudhariapurva Can you place order on kite and check it goes through? the issue might be that segments are not enabled for your user id.
  • chaudhariapurva
    this is part of response string which i get wen i request access token.
    product=[
    "BO",
    "CO",
    "CNC",
    "MIS",
    "NRML"
    ]
    user_id=RR4388
    order_type=[
    "LIMIT",
    "MARKET",
    "SL",
    "SL-M"
    ]
    exchange=[
    "NFO",
    "MCX",
    "CDS"
    ]

    kite also seems to be down(getting same error on kite)
    but the error is Not a valid Product Code
    why not reject order??????
    I really wanted to trade in mock trading session to test my app :(
  • chaudhariapurva
    hi,
    lol my acc is not activated for cash ,sry for wasting ur time.
    but please improve error responses of api
  • Vivek
    closing the thread
  • Kailash
    @chaudhariapurva No problem. Unfortunately, these messages are generated by the OMS/RMS which we can't amend.
This discussion has been closed.