This commit is contained in:
Edwin 2023-11-25 15:17:01 +08:00
parent 75b8be5e17
commit eeb1743741

View File

@ -22,9 +22,9 @@ import (
const ( const (
defaultHTTPTimeout = time.Second * 15 defaultHTTPTimeout = time.Second * 15
RestBaseURL = "https://api.bybit.com" RestBaseURL = "https://api-testnet.bybit.com"
WsSpotPublicSpotUrl = "wss://stream.bybit.com/v5/public/spot" WsSpotPublicSpotUrl = "wss://stream-testnet.bybit.com/v5/public/spot"
WsSpotPrivateUrl = "wss://stream.bybit.com/v5/private" WsSpotPrivateUrl = "wss://stream-testnet.bybit.com/v5/private"
) )
// defaultRequestWindowMilliseconds specify how long an HTTP request is valid. It is also used to prevent replay attacks. // defaultRequestWindowMilliseconds specify how long an HTTP request is valid. It is also used to prevent replay attacks.