Versions in this module Expand all Collapse all v0 v0.2.5 May 25, 2021 Changes in this version + const USDCUSD type TickerResponse + USDCUSD PairTickerInfo v0.2.4 May 25, 2021 Changes in this version type BalanceResponse + USDC float64 v0.2.3 May 6, 2019 v0.2.2 May 6, 2019 v0.2.1 May 3, 2019 Changes in this version type Order + Trades []string v0.2.0 May 3, 2019 Changes in this version + type Client struct + func (api *Client) AddOrder(pair string, direction string, orderType string, volume string, ...) (*AddOrderResponse, error) + func (api *Client) AssetPairs() (*AssetPairsResponse, error) + func (api *Client) Assets() (*AssetsResponse, error) + func (api *Client) Balance() (*BalanceResponse, error) + func (api *Client) CancelOrder(txid string) (*CancelOrderResponse, error) + func (api *Client) ClosedOrders(args map[string]string) (*ClosedOrdersResponse, error) + func (api *Client) DepositAddresses(asset string, method string) (*DepositAddressesResponse, error) + func (api *Client) DepositMethods(asset string) (*DepositMethodsResponse, error) + func (api *Client) Depth(pair string, count int) (*OrderBook, error) + func (api *Client) OpenOrders(args map[string]string) (*OpenOrdersResponse, error) + func (api *Client) Query(method string, data map[string]string) (interface{}, error) + func (api *Client) QueryOrders(txids string, args map[string]string) (*QueryOrdersResponse, error) + func (api *Client) QueryTrades(txids []string, args map[string]string) (QueryTradesResponse, error) + func (api *Client) Ticker(pairs ...string) (*TickerResponse, error) + func (api *Client) Time() (*TimeResponse, error) + func (api *Client) Trades(pair string, since int64) (*TradesResponse, error) + func (api *Client) Withdraw(asset string, key string, amount *big.Float) (*WithdrawResponse, error) + func (api *Client) WithdrawInfo(asset string, key string, amount *big.Float) (*WithdrawInfoResponse, error) + type QueryTradesResponse map[string]Trade + type Trade struct + Cost float64 + Fee float64 + Margin float64 + Misc string + OrderTxID string + OrderType string + Pair string + Price float64 + Time float64 + Type string + Volume float64 v0.1.1 Feb 7, 2019 Changes in this version + type DepositMethodsResponse []struct type KrakenApi + func (api *KrakenApi) DepositMethods(asset string) (*DepositMethodsResponse, error) v0.1.0 Nov 13, 2018 Changes in this version + const APIURL + const APIUserAgent + const APIVersion + const BCHEUR + const BCHUSD + const BCHXBT + const BUY + const DASHEUR + const DASHUSD + const DASHXBT + const EOSETH + const EOSEUR + const EOSUSD + const EOSXBT + const GNOETH + const GNOEUR + const GNOUSD + const GNOXBT + const LIMIT + const MARKET + const MinimumBCH + const MinimumDASH + const MinimumDOGE + const MinimumEOS + const MinimumETC + const MinimumETH + const MinimumGNO + const MinimumICN + const MinimumLTC + const MinimumMLN + const MinimumREP + const MinimumUSDT + const MinimumXBT + const MinimumXLM + const MinimumXMR + const MinimumXRP + const MinimumZEC + const OTLimit + const OTMarket + const OTSettlePosition + const OTStopLoss + const OTStopLossAndLimit + const OTStopLossLimit + const OTStopLossProfit + const OTStopLossProfitLimit + const OTTakeProfi + const OTTakeProfitLimit + const OTTrailingStop + const OTTrailingStopLimit + const SELL + const USDTZUSD + const XBT + const XETCXETH + const XETCXUSD + const XETCXXBT + const XETCZEUR + const XETHXXBT + const XETHZCAD + const XETHZEUR + const XETHZGBP + const XETHZJPY + const XETHZUSD + const XICNXETH + const XICNXXBT + const XLTCXXBT + const XLTCZEUR + const XLTCZUSD + const XMLNXETH + const XMLNXXBT + const XREPXETH + const XREPXXBT + const XREPZEUR + const XREPZUSD + const XXBTZCAD + const XXBTZEUR + const XXBTZGBP + const XXBTZJPY + const XXBTZUSD + const XXDGXXBT + const XXLMXXBT + const XXLMZEUR + const XXLMZUSD + const XXMRXXBT + const XXMRZEUR + const XXMRZUSD + const XXRPXXBT + const XXRPZCAD + const XXRPZEUR + const XXRPZJPY + const XXRPZUSD + const XZECXXBT + const XZECZEUR + const XZECZUSD + type AddOrderResponse struct + Description OrderDescription + TransactionIds []string + type AssetInfo struct + Altname string + AssetClass string + Decimals int + DisplayDecimals int + type AssetPairInfo struct + Altname string + AssetClassBase string + AssetClassQuote string + Base string + FeeVolumeCurrency string + Fees [][]float64 + FeesMaker [][]float64 + LeverageBuy []float64 + LeverageSell []float64 + Lot string + LotDecimals int + LotMultiplier int + MarginCall int + MarginStop int + PairDecimals int + Quote string + type AssetPairsResponse struct + BCHEUR AssetPairInfo + BCHUSD AssetPairInfo + BCHXBT AssetPairInfo + DASHEUR AssetPairInfo + DASHUSD AssetPairInfo + DASHXBT AssetPairInfo + EOSETH AssetPairInfo + EOSEUR AssetPairInfo + EOSUSD AssetPairInfo + EOSXBT AssetPairInfo + GNOETH AssetPairInfo + GNOEUR AssetPairInfo + GNOUSD AssetPairInfo + GNOXBT AssetPairInfo + USDTZUSD AssetPairInfo + XETCXETH AssetPairInfo + XETCXUSD AssetPairInfo + XETCXXBT AssetPairInfo + XETCZEUR AssetPairInfo + XETHXXBT AssetPairInfo + XETHZCAD AssetPairInfo + XETHZEUR AssetPairInfo + XETHZGBP AssetPairInfo + XETHZJPY AssetPairInfo + XETHZUSD AssetPairInfo + XICNXETH AssetPairInfo + XICNXXBT AssetPairInfo + XLTCXXBT AssetPairInfo + XLTCZEUR AssetPairInfo + XLTCZUSD AssetPairInfo + XMLNXETH AssetPairInfo + XMLNXXBT AssetPairInfo + XREPXETH AssetPairInfo + XREPXXBT AssetPairInfo + XREPZEUR AssetPairInfo + XREPZUSD AssetPairInfo + XXBTZCAD AssetPairInfo + XXBTZEUR AssetPairInfo + XXBTZGBP AssetPairInfo + XXBTZJPY AssetPairInfo + XXBTZUSD AssetPairInfo + XXDGXXBT AssetPairInfo + XXLMXXBT AssetPairInfo + XXLMZEUR AssetPairInfo + XXLMZUSD AssetPairInfo + XXMRXXBT AssetPairInfo + XXMRZEUR AssetPairInfo + XXMRZUSD AssetPairInfo + XXRPXXBT AssetPairInfo + XXRPZCAD AssetPairInfo + XXRPZEUR AssetPairInfo + XXRPZJPY AssetPairInfo + XXRPZUSD AssetPairInfo + XZECXXBT AssetPairInfo + XZECZEUR AssetPairInfo + XZECZUSD AssetPairInfo + type AssetsResponse struct + BCH AssetInfo + DASH AssetInfo + EOS AssetInfo + GNO AssetInfo + KFEE AssetInfo + USDT AssetInfo + XDAO AssetInfo + XETC AssetInfo + XETH AssetInfo + XICN AssetInfo + XLTC AssetInfo + XMLN AssetInfo + XNMC AssetInfo + XREP AssetInfo + XXBT AssetInfo + XXDG AssetInfo + XXLM AssetInfo + XXMR AssetInfo + XXRP AssetInfo + XXVN AssetInfo + XZEC AssetInfo + ZCAD AssetInfo + ZEUR AssetInfo + ZGBP AssetInfo + ZJPY AssetInfo + ZKRW AssetInfo + ZUSD AssetInfo + type BalanceResponse struct + BCH float64 + DASH float64 + EOS float64 + GNO float64 + KFEE float64 + USDT float64 + XDAO float64 + XETC float64 + XETH float64 + XICN float64 + XLTC float64 + XMLN float64 + XNMC float64 + XREP float64 + XXBT float64 + XXDG float64 + XXLM float64 + XXMR float64 + XXRP float64 + XXVN float64 + XZEC float64 + ZCAD float64 + ZEUR float64 + ZGBP float64 + ZJPY float64 + ZKRW float64 + ZUSD float64 + type CancelOrderResponse struct + Count int + Pending bool + type ClosedOrdersResponse struct + Closed map[string]Order + Count int + type DepositAddressesResponse []struct + type DepthResponse map[string]OrderBook + type KrakenApi struct + func New(key, secret string) *KrakenApi + func NewWithClient(key, secret string, httpClient *http.Client) *KrakenApi + func (api *KrakenApi) AddOrder(pair string, direction string, orderType string, volume string, ...) (*AddOrderResponse, error) + func (api *KrakenApi) AssetPairs() (*AssetPairsResponse, error) + func (api *KrakenApi) Assets() (*AssetsResponse, error) + func (api *KrakenApi) Balance() (*BalanceResponse, error) + func (api *KrakenApi) CancelOrder(txid string) (*CancelOrderResponse, error) + func (api *KrakenApi) ClosedOrders(args map[string]string) (*ClosedOrdersResponse, error) + func (api *KrakenApi) DepositAddresses(asset string, method string) (*DepositAddressesResponse, error) + func (api *KrakenApi) Depth(pair string, count int) (*OrderBook, error) + func (api *KrakenApi) OpenOrders(args map[string]string) (*OpenOrdersResponse, error) + func (api *KrakenApi) Query(method string, data map[string]string) (interface{}, error) + func (api *KrakenApi) QueryOrders(txids string, args map[string]string) (*QueryOrdersResponse, error) + func (api *KrakenApi) Ticker(pairs ...string) (*TickerResponse, error) + func (api *KrakenApi) Time() (*TimeResponse, error) + func (api *KrakenApi) Trades(pair string, since int64) (*TradesResponse, error) + func (api *KrakenApi) Withdraw(asset string, key string, amount *big.Float) (*WithdrawResponse, error) + func (api *KrakenApi) WithdrawInfo(asset string, key string, amount *big.Float) (*WithdrawInfoResponse, error) + type KrakenResponse struct + Error []string + Result interface{} + type OpenOrdersResponse struct + Count int + Open map[string]Order + type Order struct + CloseTime float64 + Cost float64 + Description OrderDescription + ExpireTime float64 + Fee float64 + LimitPrice float64 + Misc string + OpenTime float64 + OrderFlags string + Price float64 + Reason string + ReferenceID string + StartTime float64 + Status string + StopPrice float64 + TransactionID string + UserRef int + Volume string + VolumeExecuted float64 + type OrderBook struct + Asks []OrderBookItem + Bids []OrderBookItem + type OrderBookItem struct + Amount float64 + Price float64 + Ts int64 + func (o *OrderBookItem) UnmarshalJSON(data []byte) error + type OrderDescription struct + AssetPair string + Close string + Leverage string + Order string + OrderType string + PrimaryPrice string + SecondaryPrice string + Type string + type PairTickerInfo struct + Ask []string + Bid []string + Close []string + High []string + Low []string + OpeningPrice float64 + Trades []int + Volume []string + VolumeAveragePrice []string + type QueryOrdersResponse map[string]Order + type TickerResponse struct + BCHEUR PairTickerInfo + BCHUSD PairTickerInfo + BCHXBT PairTickerInfo + DASHEUR PairTickerInfo + DASHUSD PairTickerInfo + DASHXBT PairTickerInfo + EOSETH PairTickerInfo + EOSEUR PairTickerInfo + EOSUSD PairTickerInfo + EOSXBT PairTickerInfo + GNOETH PairTickerInfo + GNOEUR PairTickerInfo + GNOUSD PairTickerInfo + GNOXBT PairTickerInfo + USDTZUSD PairTickerInfo + XETCXETH PairTickerInfo + XETCXUSD PairTickerInfo + XETCXXBT PairTickerInfo + XETCZEUR PairTickerInfo + XETHXXBT PairTickerInfo + XETHZCAD PairTickerInfo + XETHZEUR PairTickerInfo + XETHZGBP PairTickerInfo + XETHZJPY PairTickerInfo + XETHZUSD PairTickerInfo + XICNXETH PairTickerInfo + XICNXXBT PairTickerInfo + XLTCXXBT PairTickerInfo + XLTCZEUR PairTickerInfo + XLTCZUSD PairTickerInfo + XMLNXETH PairTickerInfo + XMLNXXBT PairTickerInfo + XREPXETH PairTickerInfo + XREPXXBT PairTickerInfo + XREPZEUR PairTickerInfo + XREPZUSD PairTickerInfo + XXBTZCAD PairTickerInfo + XXBTZEUR PairTickerInfo + XXBTZGBP PairTickerInfo + XXBTZJPY PairTickerInfo + XXBTZUSD PairTickerInfo + XXDGXXBT PairTickerInfo + XXLMXXBT PairTickerInfo + XXLMZEUR PairTickerInfo + XXLMZUSD PairTickerInfo + XXMRXXBT PairTickerInfo + XXMRZEUR PairTickerInfo + XXMRZUSD PairTickerInfo + XXRPXXBT PairTickerInfo + XXRPZCAD PairTickerInfo + XXRPZEUR PairTickerInfo + XXRPZJPY PairTickerInfo + XXRPZUSD PairTickerInfo + XZECXXBT PairTickerInfo + XZECZEUR PairTickerInfo + XZECZUSD PairTickerInfo + func (v *TickerResponse) GetPairTickerInfo(pair string) PairTickerInfo + type TimeResponse struct + Rfc1123 string + Unixtime int64 + type TradeInfo struct + Buy bool + Limit bool + Market bool + Miscellaneous string + Price string + PriceFloat float64 + Sell bool + Time int64 + Volume string + VolumeFloat float64 + type TradesResponse struct + Last int64 + Trades []TradeInfo + type WithdrawInfoResponse struct + Amount big.Float + Fee big.Float + Limit big.Float + Method string + type WithdrawResponse struct + RefID string