coin58

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin58

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

func New58Coin

func New58Coin(client *http.Client, apikey string, apisecretkey string) *Coin58

58coin.com closed the trade api

func (*Coin58) CancelOrder

func (coin58 *Coin58) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*Coin58) GetAccount

func (coin58 *Coin58) GetAccount() (*Account, error)

func (*Coin58) GetDepth

func (coin58 *Coin58) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Coin58) GetExchangeName

func (coin58 *Coin58) GetExchangeName() string

func (*Coin58) GetKlineRecords

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

func (*Coin58) GetOneOrder

func (coin58 *Coin58) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Coin58) GetOrderHistorys

func (coin58 *Coin58) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*Coin58) GetTicker

func (coin58 *Coin58) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Coin58) GetTrades

func (coin58 *Coin58) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

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

func (*Coin58) GetUnfinishOrders

func (coin58 *Coin58) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*Coin58) LimitBuy

func (coin58 *Coin58) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Coin58) LimitSell

func (coin58 *Coin58) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*Coin58) MarketBuy

func (coin58 *Coin58) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Coin58) MarketSell

func (coin58 *Coin58) 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