spot

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrvApi

type PrvApi struct {
	*common.Prv
}

func (*PrvApi) CreateOrder

func (api *PrvApi) CreateOrder(pair CurrencyPair, qty, price float64, side OrderSide, orderTy OrderType, opts ...OptionParameter) (*Order, []byte, error)

func (*PrvApi) GetHistoryOrders

func (api *PrvApi) GetHistoryOrders(pair CurrencyPair, opt ...OptionParameter) ([]Order, []byte, error)

type Spot

type Spot struct {
	*common.OKxV5
	// contains filtered or unexported fields
}

func New

func New() *Spot

func (*Spot) GetExchangeInfo

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

func (*Spot) NewCurrencyPair

func (s *Spot) NewCurrencyPair(baseSym, quoteSym string, opts ...model.OptionParameter) (model.CurrencyPair, error)

func (*Spot) NewPrvApi

func (s *Spot) NewPrvApi(apiOps ...options.ApiOption) *PrvApi

Jump to

Keyboard shortcuts

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