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:
Ermal Guni
2018-07-16 02:03:11 +02:00
committed by Adrian Gallagher
parent 4fadc6ff48
commit 42ea6ba598
6 changed files with 184 additions and 4 deletions

View File

@@ -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())