You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we cancel an order and get an error. The goal is for the exchange adapter to have a method to check, for example, that the error is due to the fact that the order is in the process of being canceled and the cancellation should be ignored.
At the same time, different exchanges may have their own text for this error.
The further, the more such cases. We need to make an elegant solution so that each adapter handles such errors itself and has a method like:
Let's say we cancel an order and get an error. The goal is for the exchange adapter to have a method to check, for example, that the error is due to the fact that the order is in the process of being canceled and the cancellation should be ignored.
At the same time, different exchanges may have their own text for this error.
The further, the more such cases. We need to make an elegant solution so that each adapter handles such errors itself and has a method like:
func (...) IsOrderCancellInProgressError(err error) bool {...}
The text was updated successfully, but these errors were encountered: