how to capture price

ruchi_kumari12
i need information about price at which the trade was placed by the user.how can i capture that price?
  • sujith
    Is this regarding Kite Publisher?
  • ruchi_kumari12
    yeah like this i am placing my order.

    function KiteBuyButton(tradingsymbol,transactiontype,ids){
    KiteConnect.ready(function() {var kite = new KiteConnect("*******");
    kite.add({
    "tradingsymbol": tradingsymbol,
    "exchange": "NFO",
    "transaction_type": transactiontype ,
    "order_type": "MARKET",
    "product": "NRML",
    "quantity": trade_qty,
    "readonly": true
    });
    kite.finished(function(status, request_token) {
    alert("Finished. Status is " + status);});
    kite.renderButton("#default-button");
    kite.link('#'+ids);
    });
    }
  • sujith
    It is always 0 for a market order. One can't fetch order details using a Kite Publisher. You need a Kite Connect app to fetch order details.
Sign In or Register to comment.