Buy price in kite.place_order?

Rajneesh_12
I place a buy order like this -
    kite.place_order(tradingsymbol=symbol,
exchange=kite.EXCHANGE_NFO,
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=quantity,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_MIS,
variety=kite.VARIETY_REGULAR)
So if I do not specify any price here then does it buy at ltp?
I calculate ltp like this -
 ltp = kite.ltp("NFO:" + symbol)["NFO:" + symbol]['last_price']
  • sujith
    A market order doesn't need price, it means buy at market price.
  • sujith
    You know more here.
  • Rajneesh_12
    are ltp and current market price different?


    Also is this correct now?
        # place limit for different price
    kite.place_order(tradingsymbol=symbol,
    exchange=exchange,
    transaction_type=kite.TRANSACTION_TYPE_BUY,
    quantity=quantity,
    order_type=kite.ORDER_TYPE_LIMIT,
    price=ltp,
    trigger_price = ltp,
    product=kite.PRODUCT_MIS,
    variety=kite.VARIETY_REGULAR)

  • sujith
    LTP is the last traded price, it is the same.
    You need to send validity and remove the trigger price.
  • Rajneesh_12
    I am placing BUY limit order in the above manner at a price greater than ltp but it buys at ltp only.
    So if I want to buy at some price higher than ltp how should I modify the above code.
    Also instead can I place a single type GTT buy order?
  • rakeshr
    @Rajneesh_12
    if I want to buy at some price higher than ltp how should I modify the above code.
    To buy above LTP, you can place a Buy SL order with the price at which you want to buy. You can go through this article, which explains in detail.
  • rsamikan
        # place limit for different price
    kite.place_order(tradingsymbol=symbol,
    exchange=exchange,
    transaction_type=kite.TRANSACTION_TYPE_BUY,
    quantity=quantity,
    order_type=kite.ORDER_TYPE_SL,
    price=ltp+0.5,
    trigger_price = ltp,
    product=kite.PRODUCT_MIS,
    variety=kite.VARIETY_REGULAR)
Sign In or Register to comment.