It looks like you're new here. If you want to get involved, click one of these buttons!
if (condition True):
try:
kite.place_order(tradingsymbol="ACC",
price=700,
variety=kite.VARIETY_BO,
exchange=kite.EXCHANGE_NSE,
squareoff=707,
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=10,
stoploss=693,
order_type=kite.ORDER_TYPE_LIMIT,
product=kite.PRODUCT_BO,
disclosed_quantity=10)
except:
kite.place_order(tradingsymbol="ACC",
transaction_type="SELL",
variety="co",
exchange="NSE",
quantity=10,
product="MIS",
order_type="MARKET",
trigger_price=693,
disclosed_quantity=10)
If bracket order is allowed someday and you get 503 in some scenario then you will end up placing double order.