Documentation ¶
Index ¶
- Constants
- func GetNormalizePairName(pair string) string
- func NormalizeAssetName(name string) string
- type Client
- func (c *Client) BuildQueryString(params map[string]interface{}) string
- func (c *Client) Get(endpoint string, params map[string]interface{}) (*http.Response, error)
- func (c *Client) HasAuth() bool
- func (c *Client) Post(endpoint string, params map[string]interface{}) (*http.Response, error)
- func (c *Client) Ticker(pairs ...string) (tickers map[string]Ticker, err error)
- type GetLedgerOptions
- type LedgerEntry
- type LedgerService
- type RawLedgerEntry
- type RawLedgerResponse
- type RawSetter
- type RawTickerPair
- type RawTickerResponse
- type Ticker
Constants ¶
View Source
const API_ROOT = "https://api.kraken.com"
Variables ¶
This section is empty.
Functions ¶
func GetNormalizePairName ¶
func NormalizeAssetName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildQueryString ¶
type GetLedgerOptions ¶
type LedgerEntry ¶
type LedgerEntry struct { LedgerID string ReferenceID string Timestamp time.Time Type string AssetClass string Asset string Amount float64 Fee float64 Balance float64 }
func NewLedgerEntryFromRaw ¶
func NewLedgerEntryFromRaw(id string, raw RawLedgerEntry) LedgerEntry
type LedgerService ¶
type LedgerService struct {
// contains filtered or unexported fields
}
func NewLedgerService ¶
func NewLedgerService(client *Client) *LedgerService
func (*LedgerService) Ledger ¶
func (s *LedgerService) Ledger(options GetLedgerOptions) ([]LedgerEntry, error)
func (*LedgerService) RawLedger ¶
func (s *LedgerService) RawLedger(params map[string]interface{}) (*RawLedgerResponse, error)
type RawLedgerEntry ¶
type RawLedgerResponse ¶
type RawLedgerResponse struct { Error []string `json:"error"` Result struct { Count int64 `json:"count"` Ledger map[string]RawLedgerEntry `json:"ledger""` } `json:"result"` Raw string `json:"-"` }
func (*RawLedgerResponse) SetRaw ¶
func (r *RawLedgerResponse) SetRaw(raw string)
type RawTickerPair ¶
type RawTickerResponse ¶
type RawTickerResponse struct { Error []string `json:"error"` Result map[string]RawTickerPair `json:"result"` }
Click to show internal directories.
Click to hide internal directories.