Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gdax

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

func New

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

func (*Gdax) CancelOrder

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

func (*Gdax) Get24HStats

func (g *Gdax) Get24HStats(pair CurrencyPair) (*Ticker, error)

func (*Gdax) GetAccount

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

func (*Gdax) GetDepth

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

func (*Gdax) GetExchangeName

func (g *Gdax) GetExchangeName() string

func (*Gdax) GetKlineRecords

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

func (*Gdax) GetOneOrder

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

func (*Gdax) GetOrderHistorys

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

func (*Gdax) GetTicker

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

func (*Gdax) GetTrades

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

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

func (*Gdax) GetUnfinishOrders

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

func (*Gdax) LimitBuy

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

func (*Gdax) LimitSell

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

func (*Gdax) MarketBuy

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

func (*Gdax) MarketSell

func (g *Gdax) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

Source Files