It looks like you're new here. If you want to get involved, click one of these buttons!
if variety.lower() == "bo" and product.lower() == "bo":
return self._put("orders.modify", {
"order_id": order_id,
"exchange":exchange,
"tradingsymbol":tradingsymbol,
"quantity": quantity,
"price": price,
"trigger_price": trigger_price,
"disclosed_quantity": disclosed_quantity,
"variety": variety,
"parent_order_id": parent_order_id
})["order_id"]
elif variety.lower() == "co" and product.lower() == "co":
return self._put("orders.modify", {
"order_id": order_id,
"exchange":exchange,
"tradingsymbol":tradingsymbol,
"trigger_price": trigger_price,
"variety": variety,
"parent_order_id": parent_order_id
})["order_id"]