bitget

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitGetAccessKey        = "ACCESS-KEY"
	BitGetAccessSign       = "ACCESS-SIGN"
	BitGetTimeStamp        = "ACCESS-TIMESTAMP"
	BitGetAccessPassphrase = "ACCESS-PASSPHRASE"
	BitGetLocale           = "locale"
)

Variables

View Source
var (
	ErrParameterOrderID       = errors.New("parameter orderid error")
	ErrParameterClientOrderID = errors.New("parameter clientoid error")
)

Functions

This section is empty.

Types

type ISigner

type ISigner interface {
	SignRequest(ctx context.Context, req *http.Request) (*http.Request, error)
	GetTimestamp() string
}

func NewSigner

func NewSigner(accessKey, secretkey, passphrase string) ISigner

type ResponseError added in v0.9.8

type ResponseError struct {
	Code        int64  `json:"code,string"`
	Msg         string `json:"msg"`
	RequestTime int64  `json:"requestTime"`
	Data        any    `json:"data,omitempty"`
}

func (ResponseError) Error added in v0.9.8

func (e ResponseError) Error() string

func (ResponseError) Unwrap added in v0.9.8

func (e ResponseError) Unwrap() error

Unwrap allows ErrorResponse to wrap centralized errors

type Signer

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

func (*Signer) GetTimestamp

func (o *Signer) GetTimestamp() string

func (*Signer) SignRequest

func (o *Signer) SignRequest(_ context.Context, req *http.Request) (*http.Request, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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