2023-11-03 16:29:17 +02:00
|
|
|
package bybit_connector
|
2023-10-30 20:26:54 +02:00
|
|
|
|
2023-11-03 02:19:07 +02:00
|
|
|
const (
|
|
|
|
Name = "bybit.api.go"
|
2024-02-22 19:19:26 +02:00
|
|
|
Version = "1.0.2"
|
2023-11-05 18:33:56 +02:00
|
|
|
// Https
|
|
|
|
MAINNET = "https://api.bybit.com"
|
|
|
|
MAINNET_BACKT = "https://api.bytick.com"
|
|
|
|
TESTNET = "https://api-testnet.bybit.com"
|
2023-11-03 02:19:07 +02:00
|
|
|
// WebSocket public channel - Mainnet
|
|
|
|
SPOT_MAINNET = "wss://stream.bybit.com/v5/public/spot"
|
|
|
|
LINEAR_MAINNET = "wss://stream.bybit.com/v5/public/linear"
|
|
|
|
INVERSE_MAINNET = "wss://stream.bybit.com/v5/public/inverse"
|
|
|
|
OPTION_MAINNET = "wss://stream.bybit.com/v5/public/option"
|
2023-10-30 20:26:54 +02:00
|
|
|
|
2023-11-03 02:19:07 +02:00
|
|
|
// WebSocket public channel - Testnet
|
|
|
|
SPOT_TESTNET = "wss://stream-testnet.bybit.com/v5/public/spot"
|
|
|
|
LINEAR_TESTNET = "wss://stream-testnet.bybit.com/v5/public/linear"
|
|
|
|
INVERSE_TESTNET = "wss://stream-testnet.bybit.com/v5/public/inverse"
|
|
|
|
OPTION_TESTNET = "wss://stream-testnet.bybit.com/v5/public/option"
|
|
|
|
|
|
|
|
// WebSocket private channel
|
|
|
|
WEBSOCKET_PRIVATE_MAINNET = "wss://stream.bybit.com/v5/private"
|
|
|
|
WEBSOCKET_PRIVATE_TESTNET = "wss://stream-testnet.bybit.com/v5/private"
|
|
|
|
|
|
|
|
// V3
|
|
|
|
V3_CONTRACT_PRIVATE = "wss://stream.bybit.com/contract/private/v3"
|
|
|
|
V3_UNIFIED_PRIVATE = "wss://stream.bybit.com/unified/private/v3"
|
|
|
|
V3_SPOT_PRIVATE = "wss://stream.bybit.com/spot/private/v3"
|
|
|
|
|
|
|
|
// Globals
|
|
|
|
timestampKey = "X-BAPI-TIMESTAMP"
|
|
|
|
signatureKey = "X-BAPI-SIGN"
|
|
|
|
apiRequestKey = "X-BAPI-API-KEY"
|
|
|
|
recvWindowKey = "X-BAPI-RECV-WINDOW"
|
2023-11-05 18:33:56 +02:00
|
|
|
signTypeKey = "X-BAPI-SIGN-TYPE"
|
2023-11-03 02:19:07 +02:00
|
|
|
)
|