Trying to create our own Trailing Algorithm, not able to change CO/BO triggers

razzobull
razzobull edited November 2016 in API clients
What are we exactly doing, we are trying to create our own stop loss trailing system.
The stop loss trailing system has to keep changing trigger prices as the price changes.
We are not able to update trigger prices in COs, that exist in our current open orders. We couldn't do the same in BO's too. Can you throw some light on it.

Below are the errors we get

url = https://api.kite.trade/orders/bo?api_key=xxxx&access_token=xxx
code = 400

response = {"status": "error", "message": "Required parameter 'price' is missing", "error_type": "InputException"}

params = [api_key=xxx, access_token=xxx, tradingsymbol=CEATLTD, exchange=NSE, transaction_type=BUY, order_type=MARKET, quantity=1, product=CO, validity=DAY, trigger_price=1134.45]
jobname = PLACE_BRACKET_ORDER_JOB





url = https://api.kite.trade/orders/co/161122000420227?api_key=xxx&access_token=xxx&tradingsymbol=SBIN
code = 400

response = {"status": "error", "message": "Required parameter 'trigger_price' is missing", "error_type": "InputException"}

params = [order_id=161122000420227, api_key=xxx, access_token=xxx, tradingsymbol=SBIN, trigger_price=257.0, exchange=NSE] jobname =


  • sujith
    Hi @razzobull,

    For bracket order, you need to specify price field because first leg is limit order.
    For cover order, are you sure you are trying to modify second leg order?
    KiteConnect has only CO market order, i.e. you cannot modify trigger_price for first leg.
Sign In or Register to comment.