coinex

package
v0.0.0-...-2fde92b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 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 KlinePeriod, size int, opt ...OptionalParameter) ([]Kline, error)

func (*CoinEx) GetOneOrder

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

func (*CoinEx) GetOrderHistorys

func (coinex *CoinEx) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]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, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*CoinEx) LimitSell

func (coinex *CoinEx) LimitSell(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*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