aofex

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpotAPI

func NewSpotAPI(client *http.Client, token, secretkey string) SpotAPI

*

  • spot

Types

type Aofex

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

func (*Aofex) Cancel

func (aofex *Aofex) Cancel(orderId string, pair CurrencyPair) (bool, error)

func (*Aofex) GetAccount

func (aofex *Aofex) GetAccount() (*Account, error)

func (*Aofex) GetAllCurrencyPair

func (aofex *Aofex) GetAllCurrencyPair() (map[string]SymbolSetting, error)

func (*Aofex) GetAllCurrencyStatus

func (aofex *Aofex) GetAllCurrencyStatus() (all map[string]CurrencyStatus, err error)

func (*Aofex) GetAllTicker

func (aofex *Aofex) GetAllTicker() ([]Ticker, error)

func (*Aofex) GetCurrencyStatus

func (aofex *Aofex) GetCurrencyStatus(currency Currency) (CurrencyStatus, error)

func (*Aofex) GetDepth

func (aofex *Aofex) GetDepth(pair CurrencyPair, size int, step int) (*Depth, error)

func (*Aofex) GetExchangeName

func (aofex *Aofex) GetExchangeName() string

func (*Aofex) GetFinishedOrders

func (aofex *Aofex) GetFinishedOrders(pair CurrencyPair) ([]Order, error)

func (*Aofex) GetKlineRecords

func (aofex *Aofex) GetKlineRecords(pair CurrencyPair, period KlinePeriod, size, since int) ([]Kline, error)

倒序

func (*Aofex) GetOrder

func (aofex *Aofex) GetOrder(orderId string, pair CurrencyPair) (*Order, error)

交易所有问题:一点都没成交或部分成交的订单,查询不到数据

func (*Aofex) GetOrderDeal

func (aofex *Aofex) GetOrderDeal(orderId string, pair CurrencyPair) ([]OrderDeal, error)

func (*Aofex) GetPendingOrders

func (aofex *Aofex) GetPendingOrders(pair CurrencyPair) ([]Order, error)

func (*Aofex) GetTicker

func (aofex *Aofex) GetTicker(pair CurrencyPair) (*Ticker, error)

func (*Aofex) GetTrades

func (aofex *Aofex) GetTrades(pair CurrencyPair, size int) ([]Trade, error)

func (*Aofex) GetURL

func (aofex *Aofex) GetURL() string

func (*Aofex) GetUserTrades

func (aofex *Aofex) GetUserTrades(pair CurrencyPair) ([]Trade, error)

func (*Aofex) LimitBuy

func (aofex *Aofex) LimitBuy(pair CurrencyPair, price, amount string) (*Order, error)

func (*Aofex) LimitSell

func (aofex *Aofex) LimitSell(pair CurrencyPair, price, amount string) (*Order, error)

func (*Aofex) MarketBuy

func (aofex *Aofex) MarketBuy(pair CurrencyPair, amount string) (*Order, error)

func (*Aofex) MarketSell

func (aofex *Aofex) MarketSell(pair CurrencyPair, amount string) (*Order, error)

func (*Aofex) SetURL

func (aofex *Aofex) SetURL(exurl string)

Jump to

Keyboard shortcuts

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