Documentation
¶
Index ¶
Constants ¶
View Source
const URLTemplate = `https://api.kraken.com/0/public/Ticker?pair=%s`
See https://www.kraken.com/en-gb/features/api#get-ticker-info
Variables ¶
View Source
var ( // Normal mode. DefaultTimeStamp = TimeStamp{ Fmt: "Mon Jan 2, 3:04pm", } // Test mode (more frequent updates). TestTimeStamp = TimeStamp{ Fmt: "Mon Jan 2, 3:04:05pm MST", } )
Functions ¶
Types ¶
type APIResponse ¶
type APIResponse struct { Result struct { Pair struct { P [2]string } `json:"XXBTZCAD"` } `json:"result"` }
type CryptoCurrency ¶
type CryptoCurrency struct {
Pair string
}
func (*CryptoCurrency) String ¶
func (c *CryptoCurrency) String() string
type LoadAvg ¶
type LoadAvg struct {
// contains filtered or unexported fields
}
LoadAvg represents the system load average (1, 5, and 15 minutes).
Click to show internal directories.
Click to hide internal directories.