mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
Linked stats with Exchange ticker data.
This commit is contained in:
@@ -122,6 +122,7 @@ func (c *Coinbase) Run() {
|
||||
CoinbaseStats := c.GetStats("BTC-USD")
|
||||
CoinbaseTicker := c.GetTicker("BTC-USD")
|
||||
log.Printf("Coinbase BTC: Last %f High %f Low %f Volume %f\n", CoinbaseTicker.Price, CoinbaseStats.High, CoinbaseStats.Low, CoinbaseStats.Volume)
|
||||
AddExchangeInfo(c.GetName(), "BTC", CoinbaseTicker.Price, CoinbaseStats.Volume)
|
||||
}()
|
||||
time.Sleep(time.Second * c.PollingDelay)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user