Skip to main content

OKX_RETRY_ERROR_CODES

Static OKX_RETRY_ERROR_CODES 

Source
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. Retries never apply to order submission POSTs: OKX rejects a duplicate clOrdId only while the first order rests open, so a submit whose response was lost can already have filled, and retrying could place a second live order. Submits are sent once, and an ambiguous outcome resolves through stream updates and reconciliation.

ยงReferences

Based on OKX API documentation: https://www.okx.com/docs-v5/en/#error-codes