Versions in this module Expand all Collapse all v0 v0.2.1 Jul 4, 2022 v0.2.0 Jul 4, 2022 v0.1.0 Jul 4, 2022 Changes in this version + const AAVEUSD + const ADACAD + const ADAETH + const ADAEUR + const ADAUSD + const ADAXBT + 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 LINKUSD + const LINKXBT + 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 QTUMCAD + const QTUMETH + const QTUMEUR + const QTUMUSD + const QTUMXBT + const SELL + const USDTZUSD + const XBTUSDT + const XETCXETH + const XETCXXBT + const XETCZEUR + const XETCZUSD + 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 XTZCAD + const XTZETH + const XTZEUR + const XTZUSD + const XTZXBT + 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 + OrderMin string + PairDecimals int + Quote string + type AssetPairsResponse struct + AAVEUSD AssetPairInfo + ADACAD AssetPairInfo + ADAETH AssetPairInfo + ADAEUR AssetPairInfo + ADAUSD AssetPairInfo + ADAXBT AssetPairInfo + 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 + LINKUSD AssetPairInfo + LINKXBT AssetPairInfo + QTUMCAD AssetPairInfo + QTUMETH AssetPairInfo + QTUMEUR AssetPairInfo + QTUMUSD AssetPairInfo + QTUMXBT AssetPairInfo + USDTZUSD AssetPairInfo + XETCXETH AssetPairInfo + XETCXXBT AssetPairInfo + XETCZEUR AssetPairInfo + XETCZUSD 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 + XTZCAD AssetPairInfo + XTZETH AssetPairInfo + XTZEUR AssetPairInfo + XTZUSD AssetPairInfo + XTZXBT 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 + AAVE AssetInfo + ADA AssetInfo + BCH AssetInfo + DASH AssetInfo + EOS AssetInfo + GNO AssetInfo + KFEE AssetInfo + LINK AssetInfo + QTUM AssetInfo + USDT AssetInfo + XDAO AssetInfo + XETC AssetInfo + XETH AssetInfo + XICN AssetInfo + XLTC AssetInfo + XMLN AssetInfo + XNMC AssetInfo + XREP AssetInfo + XTZ 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 + AAVE float64 + ADA float64 + BCH float64 + DASH float64 + EOS float64 + GNO float64 + KFEE float64 + LINK float64 + QTUM float64 + TRX float64 + USDT float64 + XDAO float64 + XETC float64 + XETH float64 + XICN float64 + XLTC float64 + XMLN float64 + XNMC float64 + XREP float64 + XTZ 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 FeeInfo struct + Fee float64 + MaxFee float64 + MinFee float64 + NextFee float64 + NextVolume float64 + TierVolume float64 + type Fees struct + AAVEUSD FeeInfo + ADACAD FeeInfo + ADAETH FeeInfo + ADAEUR FeeInfo + ADAUSD FeeInfo + ADAXBT FeeInfo + BCHEUR FeeInfo + BCHUSD FeeInfo + BCHXBT FeeInfo + DASHEUR FeeInfo + DASHUSD FeeInfo + DASHXBT FeeInfo + EOSETH FeeInfo + EOSEUR FeeInfo + EOSUSD FeeInfo + EOSXBT FeeInfo + GNOETH FeeInfo + GNOEUR FeeInfo + GNOUSD FeeInfo + GNOXBT FeeInfo + LINKUSD FeeInfo + LINKXBT FeeInfo + QTUMCAD FeeInfo + QTUMETH FeeInfo + QTUMEUR FeeInfo + QTUMUSD FeeInfo + QTUMXBT FeeInfo + USDTZUSD FeeInfo + XETCXETH FeeInfo + XETCXXBT FeeInfo + XETCZEUR FeeInfo + XETCZUSD FeeInfo + XETHXXBT FeeInfo + XETHZCAD FeeInfo + XETHZEUR FeeInfo + XETHZGBP FeeInfo + XETHZJPY FeeInfo + XETHZUSD FeeInfo + XICNXETH FeeInfo + XICNXXBT FeeInfo + XLTCXXBT FeeInfo + XLTCZEUR FeeInfo + XLTCZUSD FeeInfo + XMLNXETH FeeInfo + XMLNXXBT FeeInfo + XREPXETH FeeInfo + XREPXXBT FeeInfo + XREPZEUR FeeInfo + XREPZUSD FeeInfo + XTZCAD FeeInfo + XTZETH FeeInfo + XTZEUR FeeInfo + XTZUSD FeeInfo + XTZXBT FeeInfo + XXBTZCAD FeeInfo + XXBTZEUR FeeInfo + XXBTZGBP FeeInfo + XXBTZJPY FeeInfo + XXBTZUSD FeeInfo + XXDGXXBT FeeInfo + XXLMXXBT FeeInfo + XXLMZEUR FeeInfo + XXLMZUSD FeeInfo + XXMRXXBT FeeInfo + XXMRZEUR FeeInfo + XXMRZUSD FeeInfo + XXRPXXBT FeeInfo + XXRPZCAD FeeInfo + XXRPZEUR FeeInfo + XXRPZJPY FeeInfo + XXRPZUSD FeeInfo + XZECXXBT FeeInfo + XZECZEUR FeeInfo + XZECZUSD FeeInfo + 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) Ledgers(args map[string]string) (*LedgersResponse, error) + func (api *KrakenAPI) OHLC(pair string) (*OHLCResponse, error) + func (api *KrakenAPI) OHLCWithInterval(pair string, interval string) (*OHLCResponse, 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) TradeBalance(args map[string]string) (*TradeBalanceResponse, error) + func (api *KrakenAPI) TradeVolume(args map[string]string) (*TradeVolumeResponse, error) + func (api *KrakenAPI) Trades(pair string, since int64) (*TradesResponse, error) + func (api *KrakenAPI) TradesHistory(start int64, end int64, args map[string]string) (*TradesHistoryResponse, error) + func (api *KrakenAPI) WithClient(httpClient *http.Client) *KrakenAPI + 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 KrakenApi = KrakenAPI + type KrakenResponse struct + Error []string + Result interface{} + type LedgerInfo struct + Aclass string + Amount big.Float + Asset string + Balance big.Float + Fee big.Float + RefID string + Time float64 + Type string + type LedgersResponse struct + Ledger map[string]LedgerInfo + type OHLC struct + Close float64 + Count int + High float64 + Low float64 + Open float64 + Time time.Time + Volume float64 + Vwap float64 + func NewOHLC(input []interface{}) (*OHLC, error) + type OHLCResponse struct + Last float64 + OHLC []*OHLC + Pair string + 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 + AAVEUSD PairTickerInfo + ADACAD PairTickerInfo + ADAETH PairTickerInfo + ADAEUR PairTickerInfo + ADAUSD PairTickerInfo + ADAXBT PairTickerInfo + 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 + LINKUSD PairTickerInfo + LINKXBT PairTickerInfo + QTUMCAD PairTickerInfo + QTUMETH PairTickerInfo + QTUMEUR PairTickerInfo + QTUMUSD PairTickerInfo + QTUMXBT PairTickerInfo + USDTZUSD PairTickerInfo + XBTUSDT PairTickerInfo + XETCXETH PairTickerInfo + XETCXXBT PairTickerInfo + XETCZEUR PairTickerInfo + XETCZUSD 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 + XTZCAD PairTickerInfo + XTZETH PairTickerInfo + XTZEUR PairTickerInfo + XTZUSD PairTickerInfo + XTZXBT 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 TradeBalanceResponse struct + CostBasisOP float64 + CurrentValuationOP float64 + Equity float64 + EquivalentBalance float64 + FreeMargin float64 + MarginLevel float64 + MarginOP float64 + TradeBalance float64 + UnrealizedNetProfitLossOP float64 + type TradeHistoryInfo struct + AssetPair string + Cost float64 + Fee float64 + Margin float64 + Misc string + OrderType string + PostxID string + Price float64 + Time float64 + TransactionID string + Type string + Volume float64 + type TradeInfo struct + Buy bool + Limit bool + Market bool + Miscellaneous string + Price string + PriceFloat float64 + Sell bool + Time int64 + Volume string + VolumeFloat float64 + type TradeVolumeResponse struct + Currency string + Fees Fees + FeesMaker Fees + Volume float64 + type TradesHistoryResponse struct + Count int + Trades map[string]TradeHistoryInfo + 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