mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 15:10:46 +00:00
Link up websocket handler to routes after refactor and various improvements
This commit is contained in:
@@ -54,6 +54,16 @@ func Add(exchange string, p pair.CurrencyPair, assetType string, price, volume f
|
||||
return
|
||||
}
|
||||
|
||||
if p.FirstCurrency == "XBT" {
|
||||
newPair := pair.NewCurrencyPair("BTC", p.SecondCurrency.String())
|
||||
Append(exchange, newPair, assetType, price, volume)
|
||||
}
|
||||
|
||||
if p.SecondCurrency == "USDT" {
|
||||
newPair := pair.NewCurrencyPair(p.FirstCurrency.String(), "USD")
|
||||
Append(exchange, newPair, assetType, price, volume)
|
||||
}
|
||||
|
||||
Append(exchange, p, assetType, price, volume)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user