wex

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wex

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

func New

func New(client *http.Client, accessKey, secretKey string) *Wex

func (*Wex) CancelOrder

func (w *Wex) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*Wex) GetAccount

func (w *Wex) GetAccount() (*Account, error)

func (*Wex) GetDepth

func (w *Wex) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Wex) GetExchangeName

func (w *Wex) GetExchangeName() string

func (*Wex) GetKlineRecords

func (w *Wex) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, optional ...OptionalParameter) ([]Kline, error)

func (*Wex) GetOneOrder

func (w *Wex) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Wex) GetOrderHistorys

func (w *Wex) GetOrderHistorys(currency CurrencyPair, opt ...OptionalParameter) ([]Order, error)

func (*Wex) GetTicker

func (w *Wex) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Wex) GetTrades

func (w *Wex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

func (*Wex) GetUnfinishOrders

func (w *Wex) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*Wex) LimitBuy

func (w *Wex) LimitBuy(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Wex) LimitSell

func (w *Wex) LimitSell(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Wex) MarketBuy

func (w *Wex) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Wex) MarketSell

func (w *Wex) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

Jump to

Keyboard shortcuts

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