c_cex

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

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXCHANGE_NAME = "c-cex.com"

	API_BASE_URL = "https://c-cex.com/"

	TICKER_URI = "t/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type C_cex

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

func New

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

func (*C_cex) CancelOrder

func (ccex *C_cex) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*C_cex) GetAccount

func (ccex *C_cex) GetAccount() (*Account, error)

func (*C_cex) GetDepth

func (ccex *C_cex) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*C_cex) GetExchangeName

func (ccex *C_cex) GetExchangeName() string

func (*C_cex) GetKlineRecords

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

func (*C_cex) GetOneOrder

func (ccex *C_cex) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*C_cex) GetOrderHistorys

func (ccex *C_cex) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*C_cex) GetTicker

func (ccex *C_cex) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*C_cex) GetTickerInBuf

func (ccex *C_cex) GetTickerInBuf(currency CurrencyPair) (*Ticker, error)

func (*C_cex) GetTickers

func (ccex *C_cex) GetTickers(currency CurrencyPair) (*Ticker, error)

func (*C_cex) GetTrades

func (ccex *C_cex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

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

func (*C_cex) GetUnfinishOrders

func (ccex *C_cex) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*C_cex) LimitBuy

func (ccex *C_cex) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*C_cex) LimitSell

func (ccex *C_cex) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*C_cex) MarketBuy

func (ccex *C_cex) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*C_cex) MarketSell

func (ccex *C_cex) 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