mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 07:26:47 +00:00
Made slight amendments to interface code, ran gofmt.
This commit is contained in:
32
itbithttp.go
32
itbithttp.go
@@ -71,24 +71,24 @@ func (i *ItBit) IsEnabled() bool {
|
||||
}
|
||||
|
||||
func (i *ItBit) Setup(exch Exchanges) {
|
||||
if !exch.Enabled {
|
||||
i.SetEnabled(false)
|
||||
} else {
|
||||
i.AuthenticatedAPISupport = exch.AuthenticatedAPISupport
|
||||
i.SetAPIKeys(exch.APIKey, exch.APISecret, exch.ClientID)
|
||||
i.RESTPollingDelay = exch.RESTPollingDelay
|
||||
i.Verbose = exch.Verbose
|
||||
i.Websocket = exch.Websocket
|
||||
i.BaseCurrencies = SplitStrings(exch.BaseCurrencies, ",")
|
||||
i.AvailablePairs = SplitStrings(exch.AvailablePairs, ",")
|
||||
i.EnabledPairs = SplitStrings(exch.EnabledPairs, ",")
|
||||
}
|
||||
}
|
||||
|
||||
func (i *ItBit) Start() {
|
||||
go i.Run()
|
||||
if !exch.Enabled {
|
||||
i.SetEnabled(false)
|
||||
} else {
|
||||
i.Enabled = true
|
||||
i.AuthenticatedAPISupport = exch.AuthenticatedAPISupport
|
||||
i.SetAPIKeys(exch.APIKey, exch.APISecret, exch.ClientID)
|
||||
i.RESTPollingDelay = exch.RESTPollingDelay
|
||||
i.Verbose = exch.Verbose
|
||||
i.Websocket = exch.Websocket
|
||||
i.BaseCurrencies = SplitStrings(exch.BaseCurrencies, ",")
|
||||
i.AvailablePairs = SplitStrings(exch.AvailablePairs, ",")
|
||||
i.EnabledPairs = SplitStrings(exch.EnabledPairs, ",")
|
||||
}
|
||||
}
|
||||
|
||||
func (i *ItBit) Start() {
|
||||
go i.Run()
|
||||
}
|
||||
|
||||
func (i *ItBit) SetAPIKeys(apiKey, apiSecret, userID string) {
|
||||
i.ClientKey = apiKey
|
||||
|
||||
Reference in New Issue
Block a user