'Stop price can't be changed below the market. affected Order: BuyToCover 1 StopMarket @ 11051.25'
I know the reason, but how can I catch this error/message in the code? All what I see in the log file is:
2023-01-17 00:07:16:342|1|32|Order='9df18931ee2b40139f5e5a102907c221/Playback101' Name='Short#PB#11#SL' New state='Accepted' Instrument='NQ 03-23' Action='Buy to cover' Limit price=0 Stop price=11051.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='bce9a440833041fba1e23cdc7f9bc260' Filled=0 Fill price=0 Error='Unable to change order' Native error='Stop price can't be changed below the market.' 2023-01-17 00:07:16:342|0|32|Playback101, Stop price can't be changed below the market. affected Order: BuyToCover 1 StopMarket @ 11051.25

Comment