Versions in this module Expand all Collapse all v0 v0.0.7 Jan 31, 2024 Changes in this version + const ADA + const APIUrl + const APIVersion + const ATOM + const BCH + const BSV + const Buy + const DASH + const EOS + const GNO + const Interval15m + const Interval1M + const Interval1d + const Interval1h + const Interval1m + const Interval30m + const Interval4h + const Interval5m + const Interval7d + const KFEE + const LedgerTypeAll + const LedgerTypeDeposit + const LedgerTypeMargin + const LedgerTypeRollover + const LedgerTypeTrade + const LedgerTypeWithdrawal + const Limit + const Market + 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 QTUM + const Sell + const StatusCancelled + const StatusClosed + const StatusExpired + const StatusOpen + const StatusPending + const TradeBuy + const TradeLimit + const TradeMarket + const TradeSell + const TradeTypeAll + const TradeTypeAnyPosition + const TradeTypeClosedPosition + const TradeTypeClosingPosition + const TradeTypeNoPosition + const USDT + const XDAO + const XETC + const XETH + const XICN + const XLTC + const XMLN + const XNMC + const XREP + const XTZ + const XXBT + const XXDG + const XXLM + const XXMR + const XXRP + const XXVN + const XZEC + const ZCAD + const ZEUR + const ZGBP + const ZJPY + const ZKRW + const ZUSD + type AddOrderResponse struct + Description OrderDescription + TransactionIds []string + type Asset struct + AlternateName string + AssetClass string + Decimals int + DisplayDecimals int + type AssetPair 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 + WSName string + type BalanceResponse struct + ADA float64 + BCH float64 + BSV float64 + DASH float64 + EOS float64 + GNO float64 + KFEE float64 + QTUM 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 + XXTZ float64 + XXVN float64 + XZEC float64 + ZCAD float64 + ZEUR float64 + ZGBP float64 + ZJPY float64 + ZKRW float64 + ZUSD float64 + type CancelResponse struct + Count int64 + Pending bool + type Candle struct + Close float64 + Count int64 + High float64 + Low float64 + Open float64 + Time int64 + Volume float64 + VolumeWAP float64 + type CloseLevel struct + LotVolume float64 + Price float64 + func (item *CloseLevel) UnmarshalJSON(buf []byte) error + type ClosedOrdersResponse struct + Count int64 + Orders map[string]OrderInfo + type Fees struct + Fee float64 + MaxFee float64 + MinFee float64 + NextFee float64 + NextVolume float64 + TierVolume float64 + type GetWebSocketTokenResponse struct + Expires int64 + Token string + type Kraken struct + func New(key string, secret string) *Kraken + func (api *Kraken) AddOrder(pair string, side string, orderType string, volume float64, ...) (AddOrderResponse, error) + func (api *Kraken) AssetPairs(pairs ...string) (map[string]AssetPair, error) + func (api *Kraken) Assets(assets ...string) (map[string]Asset, error) + func (api *Kraken) Cancel(orderID string) (CancelResponse, error) + func (api *Kraken) Candles(pair string, interval int64, since int64) (OHLCResponse, error) + func (api *Kraken) GetAccountBalances() (BalanceResponse, error) + func (api *Kraken) GetClosedOrders(needTrades bool, userRef string, start int64, end int64) (ClosedOrdersResponse, error) + func (api *Kraken) GetLedgersInfo(ledgerType string, start int64, end int64, assets ...string) (LedgerInfoResponse, error) + func (api *Kraken) GetOpenOrders(needTrades bool, userRef string) (OpenOrdersResponse, error) + func (api *Kraken) GetOpenPositions(docalcs bool, txIDs ...string) (map[string]Position, error) + func (api *Kraken) GetOrderBook(pair string, depth int64) (map[string]OrderBook, error) + func (api *Kraken) GetSpread(pair string, since int64) (SpreadResponse, error) + func (api *Kraken) GetTradeBalance(baseAsset string) (TradeBalanceResponse, error) + func (api *Kraken) GetTradeVolume(needFeeInfo bool, pairs ...string) (TradeVolumeResponse, error) + func (api *Kraken) GetTrades(pair string, since int64) (TradeResponse, error) + func (api *Kraken) GetTradesHistory(tradeType string, needTrades bool, start int64, end int64) (TradesHistoryResponse, error) + func (api *Kraken) GetWebSocketsToken() (GetWebSocketTokenResponse, error) + func (api *Kraken) QueryLedgers(ledgerIds ...string) (map[string]Ledger, error) + func (api *Kraken) QueryOrders(needTrades bool, userRef string, txIDs ...string) (map[string]OrderInfo, error) + func (api *Kraken) QueryTrades(trades bool, txIDs ...string) (map[string]PrivateTrade, error) + func (api *Kraken) Ticker(pairs ...string) (map[string]Ticker, error) + func (api *Kraken) Time() (TimeResponse, error) + type KrakenResponse struct + Error []string + Result interface{} + type Ledger struct + Amount float64 + Asset string + AssetClass string + Balance float64 + Fee float64 + LedgerType string + RefID string + Time float64 + type LedgerInfoResponse struct + Ledgers map[string]Ledger + type Level struct + Price float64 + Volume float64 + WholeLotVolume float64 + func (item *Level) UnmarshalJSON(buf []byte) error + type OHLCResponse struct + Candles map[string][]Candle + Last int64 + func (item *OHLCResponse) UnmarshalJSON(buf []byte) error + type OpenOrdersResponse struct + Orders map[string]OrderInfo + type OrderBook struct + Asks []OrderBookItem + Bids []OrderBookItem + type OrderBookItem struct + Price float64 + Timestamp int64 + Volume float64 + func (item *OrderBookItem) UnmarshalJSON(buf []byte) error + type OrderDescription struct + CloseCondition string + Info string + Leverage string + OrderType string + Pair string + Price float64 + Price2 float64 + Side string + type OrderInfo struct + AveragePrice float64 + CloseTimestamp float64 + Cost float64 + Description OrderDescription + ExpireTimestamp float64 + Fee float64 + Flags string + LimitPrice float64 + Misc string + OpenTimestamp float64 + Reason string + RefID *string + StartTimestamp float64 + Status string + StopPrice float64 + UserRef interface{} + Volume float64 + VolumeExecuted float64 + type Position struct + Cost float64 + Fee float64 + Flags string + Margin float64 + Misc string + OrderID string + OrderType string + Pair string + Price float64 + Profit float64 + RolloverTime float64 + Side string + Status string + Terms string + Time float64 + Value float64 + Volume float64 + VolumeClosed float64 + type PrivateTrade struct + Cost float64 + Fee float64 + Margin float64 + Misc string + OrderID string + OrderType string + Pair string + PositionAveragePrice float64 + PositionCost float64 + PositionFee float64 + PositionID string + PositionMargin float64 + PositionProfit float64 + PositionStatus string + PositionTrades []string + PositionVolume float64 + Price float64 + Side string + Time float64 + Volume float64 + type Spread struct + Ask float64 + Bid float64 + Time float64 + func (item *Spread) UnmarshalJSON(buf []byte) error + type SpreadResponse struct + ADACAD []Spread + ADAETH []Spread + ADAEUR []Spread + ADAUSD []Spread + ADAXBT []Spread + BCHEUR []Spread + BCHUSD []Spread + BCHXBT []Spread + DASHEUR []Spread + DASHUSD []Spread + DASHXBT []Spread + EOSETH []Spread + EOSEUR []Spread + EOSUSD []Spread + EOSXBT []Spread + GNOETH []Spread + GNOEUR []Spread + GNOUSD []Spread + GNOXBT []Spread + Last float64 + QTUMCAD []Spread + QTUMETH []Spread + QTUMEUR []Spread + QTUMUSD []Spread + QTUMXBT []Spread + USDTZUSD []Spread + XETCXETH []Spread + XETCXXBT []Spread + XETCZEUR []Spread + XETCZUSD []Spread + XETHXXBT []Spread + XETHZCAD []Spread + XETHZEUR []Spread + XETHZGBP []Spread + XETHZJPY []Spread + XETHZUSD []Spread + XICNXETH []Spread + XICNXXBT []Spread + XLTCXXBT []Spread + XLTCZEUR []Spread + XLTCZUSD []Spread + XMLNXETH []Spread + XMLNXXBT []Spread + XREPXETH []Spread + XREPXXBT []Spread + XREPZEUR []Spread + XREPZUSD []Spread + XTZCAD []Spread + XTZETH []Spread + XTZEUR []Spread + XTZUSD []Spread + XTZXBT []Spread + XXBTZCAD []Spread + XXBTZEUR []Spread + XXBTZGBP []Spread + XXBTZJPY []Spread + XXBTZUSD []Spread + XXDGXXBT []Spread + XXLMXXBT []Spread + XXLMZEUR []Spread + XXLMZUSD []Spread + XXMRXXBT []Spread + XXMRZEUR []Spread + XXMRZUSD []Spread + XXRPXXBT []Spread + XXRPZCAD []Spread + XXRPZEUR []Spread + XXRPZJPY []Spread + XXRPZUSD []Spread + XZECXXBT []Spread + XZECZEUR []Spread + XZECZUSD []Spread + type Ticker struct + Ask Level + Bid Level + Close CloseLevel + High CloseLevel + Low CloseLevel + OpeningPrice float64 + Trades TimeLevel + Volume CloseLevel + VolumeAveragePrice CloseLevel + type TimeLevel struct + Last24Hours float64 + Today float64 + func (item *TimeLevel) UnmarshalJSON(buf []byte) error + type TimeResponse struct + Rfc1123 string + Unixtime int64 + type Trade struct + Misc string + OrderType string + Price float64 + Side string + Time float64 + Volume float64 + func (item *Trade) UnmarshalJSON(buf []byte) error + type TradeBalanceResponse struct + CostPositions float64 + CurrentValue float64 + Equity float64 + EquivalentBalance float64 + FreeMargin float64 + MarginLevel float64 + OpenMargin float64 + TradeBalance float64 + UnrealizedProfit float64 + type TradeResponse struct + ADACAD []Trade + ADAETH []Trade + ADAEUR []Trade + ADAUSD []Trade + ADAXBT []Trade + BCHEUR []Trade + BCHUSD []Trade + BCHXBT []Trade + DASHEUR []Trade + DASHUSD []Trade + DASHXBT []Trade + EOSETH []Trade + EOSEUR []Trade + EOSUSD []Trade + EOSXBT []Trade + GNOETH []Trade + GNOEUR []Trade + GNOUSD []Trade + GNOXBT []Trade + Last float64 + QTUMCAD []Trade + QTUMETH []Trade + QTUMEUR []Trade + QTUMUSD []Trade + QTUMXBT []Trade + USDTZUSD []Trade + XETCXETH []Trade + XETCXXBT []Trade + XETCZEUR []Trade + XETCZUSD []Trade + XETHXXBT []Trade + XETHZCAD []Trade + XETHZEUR []Trade + XETHZGBP []Trade + XETHZJPY []Trade + XETHZUSD []Trade + XICNXETH []Trade + XICNXXBT []Trade + XLTCXXBT []Trade + XLTCZEUR []Trade + XLTCZUSD []Trade + XMLNXETH []Trade + XMLNXXBT []Trade + XREPXETH []Trade + XREPXXBT []Trade + XREPZEUR []Trade + XREPZUSD []Trade + XTZCAD []Trade + XTZETH []Trade + XTZEUR []Trade + XTZUSD []Trade + XTZXBT []Trade + XXBTZCAD []Trade + XXBTZEUR []Trade + XXBTZGBP []Trade + XXBTZJPY []Trade + XXBTZUSD []Trade + XXDGXXBT []Trade + XXLMXXBT []Trade + XXLMZEUR []Trade + XXLMZUSD []Trade + XXMRXXBT []Trade + XXMRZEUR []Trade + XXMRZUSD []Trade + XXRPXXBT []Trade + XXRPZCAD []Trade + XXRPZEUR []Trade + XXRPZJPY []Trade + XXRPZUSD []Trade + XZECXXBT []Trade + XZECZEUR []Trade + XZECZUSD []Trade + type TradeVolumeResponse struct + Currency string + Fees map[string]Fees + FeesMaker map[string]Fees + Volume float64 + type TradesHistoryResponse struct + Count int64 + Trades map[string]PrivateTrade Other modules containing this package github.com/kanuku/go_kraken