It looks like you're new here. If you want to get involved, click one of these buttons!
sl = 0.995*ltp
target = 1.05*ltp
sl_price = tick_size * round(sl/tick_size)
target = target * round(target/tick_size)
order_dict = [{"transaction_type": t_type_sl , "quantity": quantity,
'order_type': kite.ORDER_TYPE_LIMIT, "product": product_type , "price": sl_price},
{"transaction_type": t_type_sl , "quantity": quantity,
'order_type': kite.ORDER_TYPE_LIMIT, "product": product_type , "price": target}
]
trigger_id = kite.place_gtt(kite.GTT_TYPE_OCO, symbol, exchange, [sl_price, target], ltp, order_dict)
Facing error kiteconnect.exceptions.InputException: Invalid `price`
Can you paste the complete debug log here for the above request?
We are not able to generate the above inputException of
Invalid `price`
at our end.Also, re-check if you are sending correct values for transaction_type, product and quantity.
So this might be the issue.