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
I'm implementing a feature to automatically execute my trading plan using HTTP instance. It involves setting leverage. In fact, if we set the same leverage, it will raise error, but I actually don't care if it remains the same. I found there's an option, ignore_codes, in _V5HTTPManager that can ignore the error codes. I added 110043, which presents "leverage not changed", to the ignore_codes, like following:
I expected the client to literally ignore the error of setting the same leverage.
Actual Behavior
This snippet here _http_manager.py#L375-376 does not escape from the while loop so the client consistently retried until max_retries and raised FailedRequestError: Bad request. retries exceeded maximum.
Scenario
I'm implementing a feature to automatically execute my trading plan using
HTTP
instance. It involves setting leverage. In fact, if we set the same leverage, it will raise error, but I actually don't care if it remains the same. I found there's an option,ignore_codes
, in_V5HTTPManager
that can ignore the error codes. I added110043
, which presents "leverage not changed", to theignore_codes
, like following:Expected Behavior
I expected the client to literally ignore the error of setting the same leverage.
Actual Behavior
This snippet here _http_manager.py#L375-376 does not escape from the while loop so the client consistently retried until
max_retries
and raisedFailedRequestError: Bad request. retries exceeded maximum
.Code to Reproduce
The output be like:
The text was updated successfully, but these errors were encountered: