aacoin

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aacoin

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

func New

func New(client *http.Client, api_key, secret_key string) *Aacoin

func (*Aacoin) CancelOrder

func (aa *Aacoin) CancelOrder(orderId string, currencyPair CurrencyPair) (bool, error)

func (*Aacoin) CancelOrders

func (aa *Aacoin) CancelOrders(orderId []string) (bool, error)

func (*Aacoin) GetAccount

func (aa *Aacoin) GetAccount() (*Account, error)

func (*Aacoin) GetDepth

func (aa *Aacoin) GetDepth(size int, currencyPair CurrencyPair) (*Depth, error)

func (*Aacoin) GetExchangeName

func (aa *Aacoin) GetExchangeName() string

func (*Aacoin) GetKlineRecords

func (aa *Aacoin) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)

func (*Aacoin) GetOneOrder

func (aa *Aacoin) GetOneOrder(orderId string, currencyPair CurrencyPair) (*Order, error)

func (*Aacoin) GetOrderHistorys

func (aa *Aacoin) GetOrderHistorys(currencyPair CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*Aacoin) GetTicker

func (aa *Aacoin) GetTicker(currencyPair CurrencyPair) (*Ticker, error)

func (*Aacoin) GetTrades

func (aa *Aacoin) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

非个人,整个交易所的交易记录

func (*Aacoin) GetUnfinishOrders

func (aa *Aacoin) GetUnfinishOrders(currencyPair CurrencyPair) ([]Order, error)

func (*Aacoin) LimitBuy

func (aa *Aacoin) LimitBuy(amount, price string, currencyPair CurrencyPair) (*Order, error)

func (*Aacoin) LimitSell

func (aa *Aacoin) LimitSell(amount, price string, currencyPair CurrencyPair) (*Order, error)

func (*Aacoin) MarketBuy

func (aa *Aacoin) MarketBuy(amount, price string, currencyPair CurrencyPair) (*Order, error)

func (*Aacoin) MarketSell

func (aa *Aacoin) MarketSell(amount, price string, currencyPair CurrencyPair) (*Order, error)

Jump to

Keyboard shortcuts

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