Documentation ¶
Index ¶
- Variables
- type BaseResponse
- type Kraken
- func (k *Kraken) CancelOrder(orderId string, currency common.TradingPair) (bool, error)
- func (k *Kraken) GetAccount() (*common.Account, error)
- func (k *Kraken) GetDepth(size int, currency common.TradingPair) (*common.Depth, error)
- func (k *Kraken) GetExchangeName() string
- func (k *Kraken) GetKlineRecords(currency common.TradingPair, period, size, since int) ([]common.Kline, error)
- func (k *Kraken) GetOneOrder(orderId string, currency common.TradingPair) (*common.Order, error)
- func (k *Kraken) GetOrderHistorys(currency common.TradingPair, currentPage, pageSize int) ([]common.Order, error)
- func (k *Kraken) GetOrderInfos(txids ...string) ([]common.Order, error)
- func (k *Kraken) GetTicker(currency common.TradingPair) (*common.Ticker, error)
- func (k *Kraken) GetTrades(currencyPair common.TradingPair, since int64) ([]common.Trade, error)
- func (k *Kraken) GetUnfinishOrders(currency common.TradingPair) ([]common.Order, error)
- func (k *Kraken) LimitBuy(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (k *Kraken) LimitSell(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (k *Kraken) MarketBuy(amount, price string, currency common.TradingPair) (*common.Order, error)
- func (k *Kraken) MarketSell(amount, price string, currency common.TradingPair) (*common.Order, error)
- type NewOrderResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BASE_URL = "https://api.kraken.com" API_V0 = "/0/" API_DOMAIN = BASE_URL + API_V0 PUBLIC = "public/" PRIVATE = "private/" )
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Error []string `json:"error"` Result interface{} `json:"result"` }
type Kraken ¶
type Kraken struct {
// contains filtered or unexported fields
}
func (*Kraken) CancelOrder ¶
func (*Kraken) GetExchangeName ¶
func (*Kraken) GetKlineRecords ¶
func (*Kraken) GetOneOrder ¶
func (*Kraken) GetOrderHistorys ¶
func (*Kraken) GetOrderInfos ¶
func (*Kraken) GetUnfinishOrders ¶
func (*Kraken) LimitBuy ¶
func (k *Kraken) LimitBuy(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*Kraken) LimitSell ¶
func (k *Kraken) LimitSell(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*Kraken) MarketSell ¶
type NewOrderResponse ¶
type NewOrderResponse struct { Description interface{} `json:"descr"` TxIds []string `json:"txid"` }
Click to show internal directories.
Click to hide internal directories.