mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 23:16:53 +00:00
Set API keys from config file.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user