coinex

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinEx

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

func New

func New(client *http.Client, accessKey, secretKey string) *CoinEx

func (*CoinEx) CancelOrder

func (coinex *CoinEx) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*CoinEx) GetAccount

func (coinex *CoinEx) GetAccount() (*Account, error)

func (*CoinEx) GetDepth

func (coinex *CoinEx) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*CoinEx) GetDifficulty

func (coinex *CoinEx) GetDifficulty() (limit, cur float64, err error)

func (*CoinEx) GetExchangeName

func (coinex *CoinEx) GetExchangeName() string

func (*CoinEx) GetKlineRecords

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

func (*CoinEx) GetOneOrder

func (coinex *CoinEx) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*CoinEx) GetOrderHistorys

func (coinex *CoinEx) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*CoinEx) GetPendingOrders

func (coinex *CoinEx) GetPendingOrders(page, limit int, pair CurrencyPair) ([]Order, error)

func (*CoinEx) GetTicker

func (coinex *CoinEx) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*CoinEx) GetTrades

func (coinex *CoinEx) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

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

func (*CoinEx) GetUnfinishOrders

func (coinex *CoinEx) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*CoinEx) LimitBuy

func (coinex *CoinEx) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*CoinEx) LimitSell

func (coinex *CoinEx) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*CoinEx) MarketBuy

func (coinex *CoinEx) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*CoinEx) MarketSell

func (coinex *CoinEx) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

Jump to

Keyboard shortcuts

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