Skip to main content

Module config

Module config 

Source
Expand description

Client configuration: the key pair, the contour, the receive window and the base URLs.

Bybit has three contours with their own hosts. The main one is the default. The demo contour (api-demo.bybit.com) is a separate account with virtual money, open round the clock: it needs a key made in the demo mode of the site, and it serves only the private streams on its own WebSocket host (public data comes from the main host). The test contour is the exchange’s testnet.

Structs§

BybitConfig
Settings of the client: the key pair, the contour and the addresses.

Enums§

BybitEnv
The contour of the exchange the client talks to.
Category
The product category of the instruments. The category is part of every instrument id.

Constants§

DEFAULT_RECV_WINDOW_MS
How long a request is valid after its timestamp, in milliseconds (the exchange default).
DEMO_HTTP_BASE_URL
REST host of the demo contour.
DEMO_WS_PRIVATE_BASE_URL
WebSocket host of the private streams of the demo contour.
MAINNET_HTTP_BASE_URL
REST host of the main contour.
MAINNET_WS_BASE_URL
WebSocket host of the main contour (public and private streams).
TESTNET_HTTP_BASE_URL
REST host of the test contour.
TESTNET_WS_BASE_URL
WebSocket host of the test contour.