I am ok until getting Access Token but then after placing an order never worked , sometime error 400 and sometimes 404 !
can anyone please convert below cURL for using directly on the webpage address bar (URL) something like "https://api.kite.trade/user/margins/equity?api_key=xxx&access_token=yyy", because i am able to get margin details by placing above url with access key etc, but i am not able to convert below curl to URL , as i am just a beginner programmer in C#,
Placing an order is a POST request, so you have to use a utility like cURL. If you append the params to the url, it becomes a GET request (which doesn't exist for the orders route, which is why you're getting the 404).
You will have to use the http or net library in C# and make POST requests.
please see above parameter i am trying to post from Postman as a test , this is exactly the same referred on that thread , by this paramete i am gettign error (400) Bad Request
Note:api_key and access_token are not mine , i just tweaked it as its public
https://api.kite.trade/orders/regular?api_key=#######&access_token=########&tradingsymbol=VEDL&exchange=NSE&transaction_type=BUY&order_type=MARKET&quantity=1&product=MIS&validity=DAY
You will have to use the http or net library in C# and make POST requests.
I have tried Chrome Postman and it returns the following error, have used body row format
{
"status": "error",
"message": "Missing api_key",
"error_type": "InputException"
}
please see above parameter i am trying to post from Postman as a test , this is exactly the same referred on that thread , by this paramete i am gettign error (400) Bad Request
Note:api_key and access_token are not mine , i just tweaked it as its public