mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
Binance websocket (#143)
* optimize dockerfile to not invalidate layers * added binance websocket * added binance websocket types * loading exchanges from the codebase * Setting Binance websocket to Yes * revert import naming * binance websocket was missing * added gorilla websocket
This commit is contained in:
committed by
Adrian Gallagher
parent
4fadc6ff48
commit
42ea6ba598
@@ -29,6 +29,10 @@ func (b *Binance) Run() {
|
||||
log.Printf("%s %d currencies enabled: %s.\n", b.GetName(), len(b.EnabledPairs), b.EnabledPairs)
|
||||
}
|
||||
|
||||
if b.Websocket {
|
||||
go b.WebsocketClient()
|
||||
}
|
||||
|
||||
symbols, err := b.GetExchangeValidCurrencyPairs()
|
||||
if err != nil {
|
||||
log.Printf("%s Failed to get exchange info.\n", b.GetName())
|
||||
|
||||
Reference in New Issue
Block a user