pub static OKX_RETRY_ERROR_CODES: LazyLock<AHashSet<&'static str>>Expand description
OKX error codes that should trigger retries.
Only retry on temporary network/system issues. 50004 (“request
timeout, outcome unknown”) is safe because every order/cancel/amend
path sends clOrdId and OKX rejects duplicates with 51000.
§References
Based on OKX API documentation: https://www.okx.com/docs-v5/en/#error-codes