File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1781,16 +1781,15 @@ def handle_similar_open_order(
17811781 f"Keeping existing { trade .exit_side } order. { price = } , { amount = } "
17821782 )
17831783 return True
1784- else :
1785- # cancel open orders of this trade if order is different
1786- self .cancel_open_orders_of_trade (
1787- trade ,
1788- [trade .entry_side , trade .exit_side ],
1789- constants .CANCEL_REASON ["REPLACE" ],
1790- True ,
1791- )
1792- Trade .commit ()
1793- return False
1784+ # cancel open orders of this trade if order is different
1785+ self .cancel_open_orders_of_trade (
1786+ trade ,
1787+ [trade .entry_side , trade .exit_side ],
1788+ constants .CANCEL_REASON ["REPLACE" ],
1789+ True ,
1790+ )
1791+ Trade .commit ()
1792+ return False
17941793
17951794 return False
17961795
You can’t perform that action at this time.
0 commit comments