osparamatrix / ks-orderapi-python

47 stars 59 forks source link

how to get market order price #56

Open dhairyag opened 3 years ago

dhairyag commented 3 years ago

Once we set market order with

info = client.place_order(order_type = "N", instrument_token = 1900, transaction_type = "BUY",\
                       quantity = 1, price = 0, disclosed_quantity = 0, trigger_price = 0,\
                       validity = "GFD", variety = "REGULAR", tag = "string")

How to get the exact amount for which above order was executed? The command client.positions('OPEN') gives netTrdValue which is average value of all the trades for today for each token.