Module consts

Module consts 

Source

Constants§

OKX
OKX_HTTP_URL
OKX_NAUTILUS_BROKER_ID
See https://www.okx.com/docs-v5/en/#overview-broker-program for further details.
OKX_SUPPORTED_ORDER_TYPES
OKX supported order types.
OKX_SUPPORTED_TIME_IN_FORCE
OKX supported order time in force for market orders.
OKX_WS_BUSINESS_URL
OKX_WS_DEMO_BUSINESS_URL
OKX_WS_DEMO_PRIVATE_URL
OKX_WS_DEMO_PUBLIC_URL
OKX_WS_PRIVATE_URL
OKX_WS_PUBLIC_URL

Statics§

OKX_RETRY_ERROR_CODES
OKX error codes that should trigger retries. Based on OKX API documentation: https://www.okx.com/docs-v5/en/#error-codes Only retry on temporary network/system issues.
OKX_VENUE

Functions§

should_retry_error_code
Determines if an OKX error code should trigger a retry.