Documentation ¶
Index ¶
- func NewSpotAPI(client *http.Client, token, secretkey string) SpotAPI
- type Aofex
- func (aofex *Aofex) Cancel(orderId string, pair CurrencyPair) (bool, error)
- func (aofex *Aofex) GetAccount() (*Account, error)
- func (aofex *Aofex) GetAllCurrencyPair() (map[string]SymbolSetting, error)
- func (aofex *Aofex) GetAllCurrencyStatus() (all map[string]CurrencyStatus, err error)
- func (aofex *Aofex) GetAllTicker() ([]Ticker, error)
- func (aofex *Aofex) GetCurrencyStatus(currency Currency) (CurrencyStatus, error)
- func (aofex *Aofex) GetDepth(pair CurrencyPair, size int, step int) (*Depth, error)
- func (aofex *Aofex) GetExchangeName() string
- func (aofex *Aofex) GetFinishedOrders(pair CurrencyPair) ([]Order, error)
- func (aofex *Aofex) GetKlineRecords(pair CurrencyPair, period KlinePeriod, size, since int) ([]Kline, error)
- func (aofex *Aofex) GetOrder(orderId string, pair CurrencyPair) (*Order, error)
- func (aofex *Aofex) GetOrderDeal(orderId string, pair CurrencyPair) ([]OrderDeal, error)
- func (aofex *Aofex) GetPendingOrders(pair CurrencyPair) ([]Order, error)
- func (aofex *Aofex) GetTicker(pair CurrencyPair) (*Ticker, error)
- func (aofex *Aofex) GetTrades(pair CurrencyPair, size int) ([]Trade, error)
- func (aofex *Aofex) GetURL() string
- func (aofex *Aofex) GetUserTrades(pair CurrencyPair) ([]Trade, error)
- func (aofex *Aofex) LimitBuy(pair CurrencyPair, price, amount string) (*Order, error)
- func (aofex *Aofex) LimitSell(pair CurrencyPair, price, amount string) (*Order, error)
- func (aofex *Aofex) MarketBuy(pair CurrencyPair, amount string) (*Order, error)
- func (aofex *Aofex) MarketSell(pair CurrencyPair, amount string) (*Order, error)
- func (aofex *Aofex) SetURL(exurl string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Aofex ¶
type Aofex struct {
// contains filtered or unexported fields
}
func (*Aofex) GetAccount ¶
func (*Aofex) GetAllCurrencyPair ¶
func (*Aofex) GetAllCurrencyStatus ¶
func (*Aofex) GetAllTicker ¶
func (*Aofex) GetCurrencyStatus ¶
func (*Aofex) GetExchangeName ¶
func (*Aofex) GetFinishedOrders ¶
func (*Aofex) GetKlineRecords ¶
func (aofex *Aofex) GetKlineRecords(pair CurrencyPair, period KlinePeriod, size, since int) ([]Kline, error)
倒序
func (*Aofex) GetOrderDeal ¶
func (*Aofex) GetPendingOrders ¶
func (*Aofex) GetUserTrades ¶
func (*Aofex) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.