spot

package
v2.0.0-...-48c436d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalDepth

func UnmarshalDepth(data []byte) (*Depth, error)

func UnmarshalResponse

func UnmarshalResponse(data []byte, i interface{}) error

func UnmarshalTicker

func UnmarshalTicker(data []byte) (*Ticker, error)

Types

type BaseResponse

type BaseResponse struct {
	Status  string `json:"status"`
	ErrCode int    `json:"err_code"`
	ErrMsg  string `json:"err_msg"`
}

type Spot

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

func New

func New() *Spot

func (*Spot) DoNoAuthRequest

func (s *Spot) DoNoAuthRequest(method, reqUrl string, params *url.Values, headers map[string]string) ([]byte, error)

func (*Spot) GetDepth

func (s *Spot) GetDepth(pair CurrencyPair, limit int, opt ...OptionParameter) (*Depth, []byte, error)

func (*Spot) GetExchangeInfo

func (s *Spot) GetExchangeInfo() (map[string]CurrencyPair, []byte, error)

func (*Spot) GetKline

func (s *Spot) GetKline(pair CurrencyPair, period KlinePeriod, opt ...OptionParameter) ([]Kline, []byte, error)

func (*Spot) GetName

func (s *Spot) GetName() string

func (*Spot) GetTicker

func (s *Spot) GetTicker(pair CurrencyPair, opt ...OptionParameter) (*Ticker, []byte, error)

func (*Spot) WithUnmarshalerOptions

func (s *Spot) WithUnmarshalerOptions(opts ...UnmarshalerOption) *Spot

func (*Spot) WithUriOptions

func (s *Spot) WithUriOptions(opts ...UriOption) *Spot

Jump to

Keyboard shortcuts

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