Versions in this module Expand all Collapse all v1 v1.0.6 Sep 27, 2019 Changes in this version + var API_DOMAIN = BASE_URL + API_V0 + var API_V0 = "/0/" + var BASE_URL = "https://api.kraken.com" + var PRIVATE = "private/" + var PUBLIC = "public/" + type BaseResponse struct + Error []string + Result interface{} + type Kraken struct + func New(client *http.Client, accesskey, secretkey string) *Kraken + func (k *Kraken) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (k *Kraken) GetAccount() (*Account, error) + func (k *Kraken) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (k *Kraken) GetExchangeName() string + func (k *Kraken) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (k *Kraken) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (k *Kraken) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (k *Kraken) GetOrderInfos(txids ...string) ([]Order, error) + func (k *Kraken) GetTicker(currency CurrencyPair) (*Ticker, error) + func (k *Kraken) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (k *Kraken) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (k *Kraken) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (k *Kraken) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (k *Kraken) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (k *Kraken) MarketSell(amount, price string, currency CurrencyPair) (*Order, error) + type NewOrderResponse struct + Description interface{} + TxIds []string