deribit

package
v0.1.0-beta.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL