Set API keys from config file.

This commit is contained in:
Adrian Gallagher
2015-02-23 17:51:45 +11:00
parent b17286da25
commit 660dbb3337
12 changed files with 58 additions and 0 deletions

View File

@@ -63,6 +63,11 @@ func (i *ItBit) IsEnabled() (bool) {
return i.Enabled
}
func (i *ItBit) SetAPIKeys(apiKey, apiSecret string) {
i.ClientKey = apiKey
i.APISecret = apiSecret
}
func (i *ItBit) GetTicker(currency string) (ItBitTicker) {
path := ITBIT_API_URL + "/markets/" + currency + "/ticker"
var itbitTicker ItBitTicker