upex

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpotAPI

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

*

  • spot

Types

type Upex

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

func (*Upex) Cancel

func (upex *Upex) Cancel(orderId string, pair CurrencyPair) (bool, error)

func (*Upex) GetAccount

func (upex *Upex) GetAccount() (*Account, error)

func (*Upex) GetAllCurrencyPair

func (upex *Upex) GetAllCurrencyPair() (map[string]SymbolSetting, error)

func (*Upex) GetAllCurrencyStatus

func (upex *Upex) GetAllCurrencyStatus() (all map[string]CurrencyStatus, err error)

func (*Upex) GetAllTicker

func (upex *Upex) GetAllTicker() ([]Ticker, error)

func (*Upex) GetCurrencyStatus

func (upex *Upex) GetCurrencyStatus(currency Currency) (CurrencyStatus, error)

func (*Upex) GetDepth

func (upex *Upex) GetDepth(pair CurrencyPair, size int, step int) (*Depth, error)

func (*Upex) GetExchangeName

func (upex *Upex) GetExchangeName() string

func (*Upex) GetFinishedOrders

func (upex *Upex) GetFinishedOrders(pair CurrencyPair) ([]Order, error)

func (*Upex) GetKlineRecords

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

倒序

func (*Upex) GetOrder

func (upex *Upex) GetOrder(orderId string, pair CurrencyPair) (*Order, error)

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

func (*Upex) GetOrderDeal

func (upex *Upex) GetOrderDeal(orderId string, pair CurrencyPair) ([]OrderDeal, error)

func (*Upex) GetPendingOrders

func (upex *Upex) GetPendingOrders(pair CurrencyPair) ([]Order, error)

func (*Upex) GetTicker

func (upex *Upex) GetTicker(pair CurrencyPair) (*Ticker, error)

func (*Upex) GetTrades

func (upex *Upex) GetTrades(pair CurrencyPair, size int) ([]Trade, error)

func (*Upex) GetURL

func (upex *Upex) GetURL() string

func (*Upex) GetUserTrades

func (upex *Upex) GetUserTrades(pair CurrencyPair) ([]Trade, error)

func (*Upex) LimitBuy

func (upex *Upex) LimitBuy(pair CurrencyPair, price, amount string) (*Order, error)

func (*Upex) LimitSell

func (upex *Upex) LimitSell(pair CurrencyPair, price, amount string) (*Order, error)

func (*Upex) MarketBuy

func (upex *Upex) MarketBuy(pair CurrencyPair, amount string) (*Order, error)

func (*Upex) MarketSell

func (upex *Upex) MarketSell(pair CurrencyPair, amount string) (*Order, error)

func (*Upex) SetURL

func (upex *Upex) SetURL(exurl string)

Jump to

Keyboard shortcuts

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