How to call buy and sell api

mastertrader21
Dear ,

I had used for the following ways :-
1. https://api.kite.trade/orders/regular
{
"api_key":"xxx",
"access_token":"xx",
"tradingsymbol":"RCOM",
"exchange":"NSE",
"transaction_type":"BUY",
"order_type":"LMT",
"quantity":1.0,
"product":"MIS",
"validity":"DAY"
}
res :- {
"status": "error",
"message": "Missing api_key",
"error_type": "InputException"
}
2. https://api.kite.trade/orders/regular/api_key=xxx"\"access_token=xxx"\"tradingsymbol=RCOM"\"exchange=NSE"\"transaction_type=BUY"\"order_type=LMT"\"quantity=1"\"product=MIS"\"validity=DAY"
res :- {
"status": "error",
"message": "Route not found",
"error_type": "GeneralException"
}

Please guide me for the same, to api using advance rest client
  • tonystark
    Hi @mastertrader21,

    If you are using official .Net API client then you can use PlaceOrder function.

    If you want to call API directly, make a POST request to https://api.kite.trade/orders/regular with all parameters in form format, not in JSON.
Sign In or Register to comment.