Linked stats with Exchange ticker data.

This commit is contained in:
Adrian Gallagher
2015-03-18 18:33:02 +11:00
parent e65fbf6a77
commit b4e90fb2ee
11 changed files with 40 additions and 70 deletions

View File

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