mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Added LakeBTC Volume field to ticker.
This commit is contained in:
@@ -38,6 +38,7 @@ type LakeBTCTicker struct {
|
||||
Ask float64
|
||||
High float64
|
||||
Low float64
|
||||
Volume float64
|
||||
}
|
||||
|
||||
type LakeBTCTickerResponse struct {
|
||||
|
||||
2
main.go
2
main.go
@@ -331,7 +331,7 @@ func main() {
|
||||
if bot.exchange.lakebtc.IsEnabled() {
|
||||
go func() {
|
||||
LakeBTCTickerResponse := bot.exchange.lakebtc.GetTicker()
|
||||
log.Printf("LakeBTC USD: Last %f (%f) High %f (%f) Low %f (%f)\n", LakeBTCTickerResponse.USD.Last, LakeBTCTickerResponse.CNY.Last, LakeBTCTickerResponse.USD.High, LakeBTCTickerResponse.CNY.High, LakeBTCTickerResponse.USD.Low, LakeBTCTickerResponse.CNY.Low)
|
||||
log.Printf("LakeBTC USD: Last %f (%f) High %f (%f) Low %f (%f) Volume US %f (CNY %f)\n", LakeBTCTickerResponse.USD.Last, LakeBTCTickerResponse.CNY.Last, LakeBTCTickerResponse.USD.High, LakeBTCTickerResponse.CNY.High, LakeBTCTickerResponse.USD.Low, LakeBTCTickerResponse.CNY.Low, LakeBTCTickerResponse.USD.Volume, LakeBTCTickerResponse.CNY.Volume)
|
||||
}()
|
||||
}
|
||||
if bot.exchange.btcchina.IsEnabled() {
|
||||
|
||||
2
stats.go
2
stats.go
@@ -142,6 +142,6 @@ func PopulateExchangeInfo() {
|
||||
}
|
||||
if bot.exchange.lakebtc.IsEnabled() {
|
||||
LakeBTC := bot.exchange.lakebtc.GetTicker()
|
||||
AddExchangeInfo(bot.exchange.lakebtc.GetName(), "BTC", LakeBTC.USD.Last, 0)
|
||||
AddExchangeInfo(bot.exchange.lakebtc.GetName(), "BTC", LakeBTC.USD.Last, LakeBTC.USD.Volume)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user