Back to godoc.org

Package coinex

v1.1.3
Latest Go to latest

The latest major version is .

Published: Jan 15, 2020 | License: MIT | Module: code.dllexport.com/mario/GoEx

Index

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)

Package Files

  • coinex.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier