Versions in this module Expand all Collapse all v1 v1.1.3 Jan 15, 2020 v1.0.4 Aug 27, 2019 Changes in this version + type Gate struct + func New(client *http.Client, accesskey, secretkey string) *Gate + func (g *Gate) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (g *Gate) GetAccount() (*Account, error) + func (g *Gate) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (g *Gate) GetExchangeName() string + func (g *Gate) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (g *Gate) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (g *Gate) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (g *Gate) GetTicker(currency CurrencyPair) (*Ticker, error) + func (g *Gate) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (g *Gate) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (g *Gate) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (g *Gate) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (g *Gate) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (g *Gate) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)