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