Skip to main content

Module consts

Module consts 

Source
Expand description

Venue identifiers and tuning constants for the Lighter adapter.

Constants§

DISCONNECT_TIMEOUT
Grace period a client waits for its background tasks to finish during teardown before aborting them.
HEARTBEAT_INTERVAL
Default WebSocket heartbeat interval.
HEARTBEAT_TIMEOUT
Teardown window for a WebSocket carrying no inbound frame of any kind.
HTTP_TIMEOUT
Default HTTP request timeout.
LIGHTER
Venue name string for Lighter.
LIGHTER_AUTH_TOKEN_MAX_TTL
Maximum auth-token expiry permitted by the venue (8 hours).
LIGHTER_AUTH_TOKEN_REFRESH_LEAD
Default refresh window before an auth token expires.
LIGHTER_ERROR_CODE_ALREADY_SUBSCRIBED
Venue error code for an idempotent duplicate WebSocket subscription.
LIGHTER_ERROR_CODE_INTEGRATOR_NOT_APPROVED
Venue error code for missing integrator approval.
LIGHTER_ERROR_CODE_INVALID_NONCE
Venue error code for an invalid (non-contiguous) transaction nonce.
LIGHTER_ERROR_CODE_TX_RANGE
Venue error-code range for L2 transaction failures.
LIGHTER_ERROR_CODE_WS_RATE_LIMITED
Venue error code for WebSocket request rate limiting.
LIGHTER_ERROR_CODE_WS_SUBSCRIBE_FAILED
Venue error code for a failed WebSocket subscription open.
LIGHTER_INTEGRATOR_APPROVAL_DOCS_URL
Public docs anchor for integrator approval.
LIGHTER_MAINNET_CHAIN_ID
L2 chain id for Lighter Mainnet.
LIGHTER_MAX_BATCH_TX
Maximum batch size for sendTxBatch on the WebSocket transport.
LIGHTER_NAUTILUS_INTEGRATOR_ACCOUNT_INDEX
Nautilus integrator account index on Lighter.
LIGHTER_ROBINHOOD
Venue name string for Robinhood Chain.
LIGHTER_ROBINHOOD_CHAIN_ID
L2 chain id for Robinhood Mainnet.
LIGHTER_TESTNET_CHAIN_ID
L2 chain id for Lighter Testnet.
QUEUE_MAX
Outbound command queue depth before backpressure kicks in.
RECONNECT_BASE_BACKOFF
Base reconnect backoff for the WebSocket client.
RECONNECT_MAX_BACKOFF
Maximum reconnect backoff for the WebSocket client.
SUBSCRIBE_INFLIGHT_MAX
Maximum subscribe messages awaiting venue acknowledgement at once.
SUBSCRIBE_RETRY_BASE_BACKOFF
Initial backoff after a venue-level WebSocket subscription rejection.
SUBSCRIBE_RETRY_MAX
Maximum venue-level retries for one WebSocket subscription request.

Statics§

LIGHTER_CLIENT_ID
Static client ID instance.
LIGHTER_ROBINHOOD_CLIENT_ID
Robinhood Chain client ID instance.
LIGHTER_ROBINHOOD_VENUE
Robinhood Chain venue identifier.
LIGHTER_VENUE
Lighter venue identifier.