bybit.go.api/consts.go

38 lines
1.4 KiB
Go

package bybit_connector
const (
Name = "bybit.api.go"
Version = "1.0.1"
// Https
MAINNET = "https://api.bybit.com"
MAINNET_BACKT = "https://api.bytick.com"
TESTNET = "https://api-testnet.bybit.com"
// 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"
// 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"
signTypeKey = "X-BAPI-SIGN-TYPE"
)