gateio

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

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

func New

func New(client *http.Client, accesskey, secretkey string) *Gate

func (*Gate) CancelOrder

func (g *Gate) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*Gate) GetAccount

func (g *Gate) GetAccount() (*Account, error)

func (*Gate) GetDepth

func (g *Gate) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Gate) GetExchangeName

func (g *Gate) GetExchangeName() string

func (*Gate) GetKlineRecords

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

func (*Gate) GetOneOrder

func (g *Gate) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Gate) GetOrderHistorys

func (g *Gate) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*Gate) GetTicker

func (g *Gate) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Gate) GetTrades

func (g *Gate) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

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

func (*Gate) GetUnfinishOrders

func (g *Gate) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*Gate) LimitBuy

func (g *Gate) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Gate) LimitSell

func (g *Gate) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*Gate) MarketBuy

func (g *Gate) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Gate) MarketSell

func (g *Gate) 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