Documentation ¶
Index ¶
- Variables
- func Sym2duo(pair string) q.D
- type BaseResponse
- type Kraken
- func (k *Kraken) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error)
- func (k *Kraken) Balances() (availables, frozens *sync.Map, err error)
- func (k *Kraken) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (k *Kraken) Fee() float64
- func (k *Kraken) GetAccount() (*Account, error)
- func (k *Kraken) GetAttr() (a q.Attr)
- func (k *Kraken) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (k *Kraken) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, opt ...OptionalParameter) ([]Kline, error)
- func (k *Kraken) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (k *Kraken) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]Order, error)
- func (k *Kraken) GetOrderInfos(txids ...string) ([]Order, error)
- func (k *Kraken) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (k *Kraken) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (k *Kraken) GetUnfinishedOrders(currency CurrencyPair) ([]Order, error)
- func (k *Kraken) LimitBuy(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (k *Kraken) LimitSell(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (k *Kraken) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (k *Kraken) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (k *Kraken) OneTicker(d q.D) (ticker q.Bbo, err error)
- func (k *Kraken) PairArray() (map[string]q.D, map[q.D]q.P, error)
- func (k *Kraken) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error)
- func (k *Kraken) String() string
- func (k *Kraken) Test() bool
- func (k *Kraken) TradeFee() (map[string]q.TradeFee, error)
- func (k *Kraken) WithdrawFee() (sf []q.NetworkWithdraw, err 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 ¶
Types ¶
type BaseResponse ¶
type Kraken ¶
type Kraken struct {
// contains filtered or unexported fields
}
func (*Kraken) CancelOrder ¶
func (*Kraken) GetAccount ¶
func (*Kraken) GetKlineRecords ¶
func (*Kraken) GetOneOrder ¶
func (*Kraken) GetOrderHistorys ¶
func (*Kraken) GetOrderInfos ¶
func (*Kraken) GetTicker ¶
func (k *Kraken) GetTradeBalance() { var resultmap map[string]any k.doAuthenticatedRequest("POST", "private/TradeBalance", url.Values{}, &resultmap) log.Println(resultmap) }
func (*Kraken) GetUnfinishedOrders ¶
func (*Kraken) MarketSell ¶
func (*Kraken) PlaceOrders ¶
func (*Kraken) WithdrawFee ¶
func (k *Kraken) WithdrawFee() (sf []q.NetworkWithdraw, err error)
type NewOrderResponse ¶
Click to show internal directories.
Click to hide internal directories.