Documentation ¶
Index ¶
- Constants
- type Coinbase
- type Spot
- func (*Spot) CancelOrder(*Order) ([]byte, error)
- func (*Spot) GetAccount() (*Account, []byte, error)
- func (*Spot) GetDepth(pair Pair, size int) (*Depth, []byte, error)
- func (*Spot) GetExchangeName() string
- func (spot *Spot) GetExchangeRule(pair Pair) (*Rule, []byte, error)
- func (spot *Spot) GetKlineRecords(pair Pair, period, size, since int) ([]*Kline, []byte, error)
- func (spot *Spot) GetOHLCs(symbol string, period, size, since int) ([]*OHLC, []byte, error)
- func (*Spot) GetOrder(*Order) ([]byte, error)
- func (*Spot) GetOrders(pair Pair) ([]*Order, error)
- func (spot *Spot) GetTicker(pair Pair) (*Ticker, []byte, error)
- func (*Spot) GetTrades(pair Pair, since int64) ([]*Trade, error)
- func (*Spot) GetUnFinishOrders(pair Pair) ([]*Order, []byte, error)
- func (spot *Spot) KeepAlive()
- func (*Spot) PlaceOrder(*Order) ([]byte, error)
Constants ¶
View Source
const ( ACCEPT = "Accept" CONTENT_TYPE = "Content-Type" CACHE_CONTROL = "Cache-control" APPLICATION_JSON = "application/json" APPLICATION_JSON_UTF8 = "application/json; charset=UTF-8" ENDPOINT = "https://api.exchange.coinbase.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spot ¶
type Spot struct {
*Coinbase
}
func (*Spot) CancelOrder ¶
func (*Spot) GetAccount ¶
func (*Spot) GetExchangeName ¶
func (*Spot) GetExchangeRule ¶
func (*Spot) GetKlineRecords ¶
func (*Spot) GetUnFinishOrders ¶
Click to show internal directories.
Click to hide internal directories.