Documentation
¶
Index ¶
- Constants
- type Kraken
- func (k *Kraken) AddOrder(symbol, side, orderType string, ...)
- func (k *Kraken) CancelOrder(orderID int64)
- func (k *Kraken) GetAssetPairs() (map[string]KrakenAssetPairs, error)
- func (k *Kraken) GetAssets() error
- func (k *Kraken) GetBalance()
- func (k *Kraken) GetClosedOrders(showTrades bool, userref, start, end, offset int64, closetime string)
- func (k *Kraken) GetDepth(symbol string) error
- func (e *Kraken) GetExchangeAccountInfo() (exchange.ExchangeAccountInfo, error)
- func (k *Kraken) GetFee(cryptoTrade bool) float64
- func (k *Kraken) GetLedgers(symbol, asset, ledgerType string, start, end, offset int64)
- func (k *Kraken) GetOHLC(symbol string) error
- func (k *Kraken) GetOpenOrders(showTrades bool, userref int64)
- func (k *Kraken) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
- func (k *Kraken) GetServerTime() error
- func (k *Kraken) GetSpread(symbol string)
- func (k *Kraken) GetTicker(symbol string) error
- func (k *Kraken) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
- func (k *Kraken) GetTradeBalance(symbol, asset string)
- func (k *Kraken) GetTradeVolume(symbol string)
- func (k *Kraken) GetTrades(symbol string) error
- func (k *Kraken) GetTradesHistory(tradeType string, showRelatedTrades bool, start, end, offset int64)
- func (k *Kraken) OpenPositions(txid int64, showPL bool)
- func (k *Kraken) QueryLedgers(id string)
- func (k *Kraken) QueryOrdersInfo(showTrades bool, userref, txid int64)
- func (k *Kraken) QueryTrades(txid int64, showRelatedTrades bool)
- func (k *Kraken) Run()
- func (k *Kraken) SendAuthenticatedHTTPRequest(method string, values url.Values) (interface{}, error)
- func (k *Kraken) SetDefaults()
- func (k *Kraken) Setup(exch config.ExchangeConfig)
- func (k *Kraken) Start()
- type KrakenAssetPairs
- type KrakenTicker
- type KrakenTickerResponse
Constants ¶
View Source
const ( KRAKEN_API_URL = "https://api.kraken.com" KRAKEN_API_VERSION = "0" KRAKEN_SERVER_TIME = "Time" KRAKEN_ASSETS = "Assets" KRAKEN_ASSET_PAIRS = "AssetPairs" KRAKEN_TICKER = "Ticker" KRAKEN_OHLC = "OHLC" KRAKEN_DEPTH = "Depth" KRAKEN_TRADES = "Trades" KRAKEN_SPREAD = "Spread" KRAKEN_BALANCE = "Balance" KRAKEN_TRADE_BALANCE = "TradeBalance" KRAKEN_OPEN_ORDERS = "OpenOrders" KRAKEN_CLOSED_ORDERS = "ClosedOrders" KRAKEN_QUERY_ORDERS = "QueryOrders" KRAKEN_TRADES_HISTORY = "TradesHistory" KRAKEN_QUERY_TRADES = "QueryTrades" KRAKEN_OPEN_POSITIONS = "OpenPositions" KRAKEN_LEDGERS = "Ledgers" KRAKEN_QUERY_LEDGERS = "QueryLedgers" KRAKEN_TRADE_VOLUME = "TradeVolume" KRAKEN_ORDER_CANCEL = "CancelOrder" KRAKEN_ORDER_PLACE = "AddOrder" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kraken ¶
type Kraken struct { exchange.ExchangeBase CryptoFee, FiatFee float64 Ticker map[string]KrakenTicker }
func (*Kraken) CancelOrder ¶
func (*Kraken) GetAssetPairs ¶
func (k *Kraken) GetAssetPairs() (map[string]KrakenAssetPairs, error)
func (*Kraken) GetBalance ¶
func (k *Kraken) GetBalance()
func (*Kraken) GetClosedOrders ¶
func (*Kraken) GetExchangeAccountInfo ¶
TODO: Retrieve Kraken info GetExchangeAccountInfo : Retrieves balances for all enabled currencies for the Kraken exchange
func (*Kraken) GetLedgers ¶
func (*Kraken) GetOpenOrders ¶
func (*Kraken) GetOrderbookEx ¶
func (k *Kraken) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
func (*Kraken) GetServerTime ¶
func (*Kraken) GetTickerPrice ¶
func (k *Kraken) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
This will return the TickerPrice struct when tickers are completed here..
func (*Kraken) GetTradeBalance ¶
func (*Kraken) GetTradeVolume ¶
func (*Kraken) GetTradesHistory ¶
func (*Kraken) OpenPositions ¶
func (*Kraken) QueryLedgers ¶
func (*Kraken) QueryOrdersInfo ¶
func (*Kraken) QueryTrades ¶
func (*Kraken) SendAuthenticatedHTTPRequest ¶
func (*Kraken) SetDefaults ¶
func (k *Kraken) SetDefaults()
func (*Kraken) Setup ¶
func (k *Kraken) Setup(exch config.ExchangeConfig)
type KrakenAssetPairs ¶
type KrakenAssetPairs struct { Altname string `json:"altname"` AclassBase string `json:"aclass_base"` Base string `json:"base"` AclassQuote string `json:"aclass_quote"` Quote string `json:"quote"` Lot string `json:"lot"` PairDecimals int `json:"pair_decimals"` LotDecimals int `json:"lot_decimals"` LotMultiplier int `json:"lot_multiplier"` LeverageBuy []int `json:"leverage_buy"` LeverageSell []int `json:"leverage_sell"` Fees [][]float64 `json:"fees"` FeesMaker [][]float64 `json:"fees_maker"` FeeVolumeCurrency string `json:"fee_volume_currency"` MarginCall int `json:"margin_call"` MarginStop int `json:"margin_stop"` }
type KrakenTicker ¶
Click to show internal directories.
Click to hide internal directories.