coinbig

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

Documentation

Index

Constants

View Source
const (
	API_BASE_URL = "https://www.coinbig.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinBig

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

func New

func New(client *http.Client, api_key, secret_key string) *CoinBig

func (*CoinBig) CancelOrder

func (cb *CoinBig) CancelOrder(orderId string, currencyPair common.TradingPair) (bool, error)

func (*CoinBig) CancelOrders

func (cb *CoinBig) CancelOrders(orderId []string) (bool, error)

func (*CoinBig) GetAccount

func (cb *CoinBig) GetAccount() (*common.Account, error)

func (*CoinBig) GetDepth

func (cb *CoinBig) GetDepth(size int, currencyPair common.TradingPair) (*common.Depth, error)

func (*CoinBig) GetExchangeName

func (cb *CoinBig) GetExchangeName() string

func (*CoinBig) GetKlineRecords

func (cb *CoinBig) GetKlineRecords(currency common.TradingPair, period, size, since int) ([]common.Kline, error)

func (*CoinBig) GetOneOrder

func (cb *CoinBig) GetOneOrder(orderId string, currencyPair common.TradingPair) (*common.Order, error)

func (*CoinBig) GetOrderHistorys

func (cb *CoinBig) GetOrderHistorys(currencyPair common.TradingPair, currentPage, pageSize int) ([]common.Order, error)

func (*CoinBig) GetServerSync

func (cb *CoinBig) GetServerSync() error

func (*CoinBig) GetTicker

func (cb *CoinBig) GetTicker(currencyPair common.TradingPair) (*common.Ticker, error)

func (*CoinBig) GetTrades

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

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

func (*CoinBig) GetUnfinishOrders

func (cb *CoinBig) GetUnfinishOrders(currencyPair common.TradingPair) ([]common.Order, error)

func (*CoinBig) LimitBuy

func (cb *CoinBig) LimitBuy(amount, price string, currencyPair common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)

func (*CoinBig) LimitSell

func (cb *CoinBig) LimitSell(amount, price string, currencyPair common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)

func (*CoinBig) MarketBuy

func (cb *CoinBig) MarketBuy(amount, price string, currencyPair common.TradingPair) (*common.Order, error)

func (*CoinBig) MarketSell

func (cb *CoinBig) MarketSell(amount, price string, currencyPair common.TradingPair) (*common.Order, error)

Jump to

Keyboard shortcuts

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