mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Fixed Alphapoint typo.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user