Unable to place an order for MCX segment via kite api

masti6407
Response :blush:
{
"status": "error",
"message": "The instrument you are placing an order for has either expired or does not exist.",
"data": null,
"error_type": "InputException"
}

Request:
curl --location 'https://api.kite.trade/orders/regular' \
--header 'Authorization: token 4l3z9me25bgm0p1a:' \
--header 'X-Kite-Version: 3' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: _cfuvid=KBgFfHBscPsiGN1VeWHlG9xRhbX4J2AQA9QkKHNI9pQ-1685684057058-0-604800000' \
--data-urlencode 'tradingsymbol=NATURALGAS JUN FUT' \
--data-urlencode 'exchange=MCX' \
--data-urlencode 'transaction_type=BUY' \
--data-urlencode 'order_type=LIMIT' \
--data-urlencode 'quantity=1' \
--data-urlencode 'validity=DAY' \
--data-urlencode 'variety=regular' \
--data-urlencode 'product=NRML' \
--data-urlencode 'price=170'

Can you please help about mistake done ?
Tagged:
  • rakeshr
    rakeshr edited June 2023
    The instrument you are placing an order for has either expired or does not exist.
    'tradingsymbol=NATURALGAS JUN FUT'
    There shouldn't be any space in the trading symbol. You need to use correct trading symbol from the instruments list.
Sign In or Register to comment.