-
Notifications
You must be signed in to change notification settings - Fork 38
/
consts.go
43 lines (37 loc) · 1.72 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package bybit_connector
const (
Name = "bybit.api.go"
Version = "1.0.4"
// Https
MAINNET = "https://api.bybit.com"
MAINNET_BACKT = "https://api.bytick.com"
TESTNET = "https://api-testnet.bybit.com"
DEMO_ENV = "https://api-demo.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_TRADE_MAINNET = "wss://stream.bybit.com/v5/trade"
WEBSOCKET_PRIVATE_TESTNET = "wss://stream-testnet.bybit.com/v5/private"
WEBSOCKET_TRADE_TESTNET = "wss://stream-testnet.bybit.com/v5/trade"
WEBSOCKET_PRIVATE_DEMO = "wss://wss://stream-demo.bybit.com/v5/private"
WEBSOCKET_TRADE_DEMO = "wss://wss://stream-demo.bybit.com/v5/trade"
// Deprecated: V3 is deprecated and replaced by v5
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"
)