restpub

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = "https://api-pub.bitfinex.com"
)

Functions

This section is empty.

Types

type BitfinexClient

type BitfinexClient struct {
	// contains filtered or unexported fields
}

func NewBitfinexClient

func NewBitfinexClient(cfg *BitfinexClientCfg) (*BitfinexClient, error)

func (*BitfinexClient) GetBaseURL

func (b *BitfinexClient) GetBaseURL() string

func (*BitfinexClient) GetDebug

func (b *BitfinexClient) GetDebug() bool

func (*BitfinexClient) SendHTTPRequest

func (b *BitfinexClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error)

type BitfinexClientCfg

type BitfinexClientCfg struct {
	Debug bool
	// Logger
	Logger *slog.Logger

	BaseURL    string `validate:"required"`
	Key        string
	Secret     string
	RecvWindow int
}

type RestPubClient

type RestPubClient struct {
	*BitfinexClient
	// contains filtered or unexported fields
}

func NewRestPubClient

func NewRestPubClient(cfg *BitfinexClientCfg) (*RestPubClient, error)

func (*RestPubClient) PlatformStatus

func (r *RestPubClient) PlatformStatus(ctx context.Context) error

Jump to

Keyboard shortcuts

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