Documentation
¶
Index ¶
Constants ¶
View Source
const ( RealBaseURL = "wss://www.deribit.com/ws/api/v2/" TestBaseURL = "wss://test.deribit.com/ws/api/v2/" RealRestBaseURL = "https://www.deribit.com/ws/api/v2/" TestRestBaseURL = "https://test.deribit.com/ws/api/v2/" )
View Source
const (
MaxTryTimes = 10000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Ctx context.Context
WsAddr string `json:"ws_addr"`
RestAddr string `json:"rest_addr"`
ApiKey string `json:"api_key"`
SecretKey string `json:"secret_key"`
AutoReconnect bool `json:"auto_reconnect"`
DebugMode bool `json:"debug_mode"`
WSBaseURL string `json:"ws_base_url"`
RestBaseURL string `json:"rest_base_url"`
Logger *logrus.Logger
}
func GetConfig ¶
func GetConfig() *Configuration
Click to show internal directories.
Click to hide internal directories.