Fixed Alphapoint typo.

This commit is contained in:
Adrian Gallagher
2016-03-08 21:09:43 +11:00
parent 8556b5e019
commit 6b0106b721
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ type Alphapoint struct {
WebsocketConn *websocket.Conn
WebsocketURL string
ExchangeName string
ExchangeEnanbled bool
ExchangeEnabled bool
WebsocketEnabled bool
Verbose bool
APIUrl, APIKey, UserID, APISecret string

View File

@@ -29,7 +29,7 @@ type AlphapointWebsocketTicker struct {
}
func (a *Alphapoint) WebsocketClient() {
for a.ExchangeEnanbled && a.WebsocketEnabled {
for a.ExchangeEnabled && a.WebsocketEnabled {
var Dialer websocket.Dialer
var err error
a.WebsocketConn, _, err = Dialer.Dial(a.WebsocketURL, http.Header{})
@@ -50,7 +50,7 @@ func (a *Alphapoint) WebsocketClient() {
return
}
for a.ExchangeEnanbled && a.WebsocketEnabled {
for a.ExchangeEnabled && a.WebsocketEnabled {
msgType, resp, err := a.WebsocketConn.ReadMessage()
if err != nil {
log.Println(err)