SL and TP in Cash like bracket orders

tahseen
tahseen edited March 2020 in General
@sujith
Can we have the SL and TP feature in cash also like bracket orders ? If I want to do intraday cash without leverage and want to have SL and TP feature
  • themohammedfaisal
    @tahseen,
    Have you checked out GTT? You can trade in CNC(cash) while having your stop-loss and target triggers that fire an order as soon as one of them is hit.
  • tahseen
    tahseen edited March 2020
    @themohammedfaisal thanks

    In below I understand trigger values and in orders the price

    What is the purpose of last_price if I give my Limit order price
    Place GTT order

    trigger_type The type of GTT order(single/two-leg).
    tradingsymbol Trading symbol of the instrument.
    exchange Name of the exchange.
    trigger_values Trigger values (json array).
    last_price Last price of the instrument at the time of order placement.
    orders JSON order array containing following fields
    transaction_type BUY or SELL
    quantity Quantity to transact
    price The min or max price to execute the order at (for LIMIT orders)
  • rhnvrm
    @tahseen

    Hey,

    The last_price is required for two reasons:
    1. Validation of trigger conditions at time of placement
    2. The single leg trigger decides the direction for triggering itself using the last_price
  • tahseen
    @rhnvrm But already there is transaction_type parameter. Why would last_price be required
  • sujith
    @tahseen,
    You can have a target or stop-loss right for an open position. If you have a long position, you can set GTT for stop-loss and target with sell transaction type.
  • tahseen
    @sujith thanks for reply. What am trying to understand is for GTT

    Limit Price, Transaction Type, SL and TP does the entire work. Something like bracket order

    What is the use of last_price ?
  • sujith
    @tahseen, Like @rhnvrm mentioned, it is used by our system for validation of trigger conditions at the time of placing GTT and to determine the direction for single trigger GTTs.
  • rhnvrm
    rhnvrm edited March 2020
    @tahseen,

    I guess I understand what you are confused with. It seems to be there in the docs. The condition is separate from the orders, unlike what you have posted above.
    curl https://api.kite.trade/gtt/triggers \
    -H 'X-Kite-Version: 3' \
    -H 'Authorization: token api_key:access_token' \
    -d 'type=single' \
    -d 'condition={"exchange":"NSE", "tradingsymbol":"INFY", "trigger_values":[650.0], "last_price": 700.0}' \
    -d 'orders=[{"exchange":"NSE", "tradingsymbol": "INFY", "transaction_type": "BUY", "quantity": 1, "order_type": "LIMIT","product": "CNC", "price": 650.5}]'

    Suppose we want to place a gtt for INFY.

    if you place a single leg gtt with trigger_value at 650.

    If last_price is 600. When trigger_value > 650 it should place order.
    If last_price is 700. When trigger_value < 650 it should place order.

    Now, the order that will be placed, will use the Limit Price, Transaction Type, SL and TP etc as its parameters that you are setting inside the orders array. Not the other way around.
  • tahseen
    @rhnvrm

    I don't get what you mean by below

    If last_price is 600. When trigger_value > 650 it should place order.
    If last_price is 700. When trigger_value < 650 it should place order.
  • sujith
    @tahseen,
    Here @rhnvrm was explaining the use of the last price (a current market price or LTP) while placing the GTT. Or you can say this is how GTT works.
Sign In or Register to comment.