Order Status Not Receive

sislam
This is my code when i placed the order, orderID generate successfully but Order Status not receive at that time
plz give me solution for that
thank you
CODE...............................................................................
Try

Dim Exch As String = InputBox("Enter Exch", "Exch", "NSE")
Dim Trdsym As String = InputBox("Enter TrdSymbol", "TrdSymbol", "ICICIBANK")
Dim Trans As String = InputBox("Enter Transaction Type", "Transaction", "BUY")
Dim QtyStr As String = InputBox("Enter Qty", "Qty", "1")
Dim Qty As Integer = 0
Integer.TryParse(QtyStr, Qty)
Dim OrderId As String = Kite.PlaceRegularOrder(Exch, Trdsym, Trans, "MARKET", Qty, "MIS")
MsgBox("Order Placed Successfully. OrderId is " & OrderId & "Order Status :" & Kite.GetOrderStatus(OrderId))
Catch ex As Exception
MsgBox(ex.Message)
End Try
  • sislam
    its mean Order Status not get at the time of Placing order
  • sujith
    Yes, you will only receive order id as the response for successful order placement.
  • sislam
    if this orderid is pass in Kite.GetOrderStatus(OrderId) at the time of order placement , is that posible to get order status ??
  • sujith
    Yes, you can place the order and then get order status.
  • sislam
    but i not get the order status at that time

    this is my code

    Dim Exch As String = InputBox("Enter Exch", "Exch", "NSE")
    Dim Trdsym As String = InputBox("Enter TrdSymbol", "TrdSymbol", "ICICIBANK")
    Dim Trans As String = InputBox("Enter Transaction Type", "Transaction", "BUY")
    Dim QtyStr As String = InputBox("Enter Qty", "Qty", "1")
    Dim Qty As Integer = 0
    Integer.TryParse(QtyStr, Qty)
    Dim OrderId As String = Kite.PlaceRegularOrder(Exch, Trdsym, Trans, "MARKET", Qty, "MIS")
    MsgBox("Order Placed Successfully. OrderId is " & OrderId & "Order Status :" & Kite.GetOrderStatus(OrderId))
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
  • sujith
    Can you let us know which .NET client are you using?
  • sislam
    .net framework 4.0 client
Sign In or Register to comment.