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§
- Bybit
Config - Settings of the client: the key pair, the contour and the addresses.
Enums§
- Bybit
Env - 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.