coinex

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 13 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 common.TradingPair) (bool, error)

func (*CoinEx) GetAccount

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

func (*CoinEx) GetDepth

func (coinex *CoinEx) GetDepth(size int, currency common.TradingPair) (*common.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 common.TradingPair, period, size, since int) ([]common.Kline, error)

func (*CoinEx) GetOneOrder

func (coinex *CoinEx) GetOneOrder(orderId string, currency common.TradingPair) (*common.Order, error)

func (*CoinEx) GetOrderHistorys

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

func (*CoinEx) GetPendingOrders

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

func (*CoinEx) GetTicker

func (coinex *CoinEx) GetTicker(currency common.TradingPair) (*common.Ticker, error)

func (*CoinEx) GetTrades

func (coinex *CoinEx) GetTrades(currencyPair common.TradingPair, since int64) ([]common.Trade, error)

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

func (*CoinEx) GetUnfinishOrders

func (coinex *CoinEx) GetUnfinishOrders(currency common.TradingPair) ([]common.Order, error)

func (*CoinEx) LimitBuy

func (coinex *CoinEx) LimitBuy(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)

func (*CoinEx) LimitSell

func (coinex *CoinEx) LimitSell(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)

func (*CoinEx) MarketBuy

func (coinex *CoinEx) MarketBuy(amount, price string, currency common.TradingPair) (*common.Order, error)

func (*CoinEx) MarketSell

func (coinex *CoinEx) MarketSell(amount, price string, currency common.TradingPair) (*common.Order, error)

Jump to

Keyboard shortcuts

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