deribit

package
v0.0.0-...-51e8eb1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL     = "https://www.deribit.com/api/v2"
	TestBaseURL = "https://test.deribit.com/ws/api/v2"
	WSURL       = "wss://www.deribit.com/ws/api/v2"
	TestWSURL   = "wss://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 {
	*WebsocketConfiguration
	*HttpConfiguration
	Ctx        context.Context
	Client     *http.Client
	Debug      bool
	Credential Credential
	Logger     *logrus.Logger
}

func GetConfig

func GetConfig() *Configuration

type Credential

type Credential struct {
	ApiKey    string
	SecretKey string
}

type HttpConfiguration

type HttpConfiguration struct {
	BaseUrl string
}

type WebsocketConfiguration

type WebsocketConfiguration struct {
	Url                  string
	AutoReconnect        bool
	ReconnectDuration    time.Duration
	AutoStart            bool
	ReadLimit            int64
	DialWebsocketTimeout time.Duration
	CallTimeout          time.Duration
	TestDuration         time.Duration
	HeartBeatInterval    float64
}

Jump to

Keyboard shortcuts

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