☰
Login
Signup
Home
›
.Net API client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
October 2018
sujith
PlaceOrder confirmation that order received in kite
pandithurai
October 2018
in
.Net API client
Hi,
After placing the order in c# how do I check whether order received in Kite or failed?
Now I am using the below code, but some time it places multiple orders.
int retry = 2;
for (int retrycount = 0; retrycount <= retry; retrycount++)
{
Dictionary<string, dynamic> response = Trade.kite.PlaceOrder(Exchange.Trim(), SymbolName.Trim(), "SELL", Convert.ToInt16(Quantity), OrderType: "MARKET", Product: "MIS", Validity: "DAY");
orderid = response["data"]["order_id"];
OrderReference = orderid;
if (orderid != string.Empty)
{
break;
}
}
I appreciate your help as soon as possible.
Thanks and regards
Pandithurai
sujith
October 2018
edited October 2018
Hi
@pandithurai
,
It is not advisable to retry POST requests generally as it might lead to disastrous situations sometimes.
In this case, you need to fetch orderbook and check before retrying to place the order.
Sign In
or
Register
to comment.
It is not advisable to retry POST requests generally as it might lead to disastrous situations sometimes.
In this case, you need to fetch orderbook and check before retrying to place the order.