From a57b38043b08797c4be7bd2b0ef8ed0225bbbeb9 Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Sat, 23 Dec 2017 18:09:20 +0800 Subject: [PATCH] use method to devide volume (#256) --- lib/cryptoexchange/exchanges/crypto_bridge/services/market.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptoexchange/exchanges/crypto_bridge/services/market.rb b/lib/cryptoexchange/exchanges/crypto_bridge/services/market.rb index 65807704e..ef016538d 100644 --- a/lib/cryptoexchange/exchanges/crypto_bridge/services/market.rb +++ b/lib/cryptoexchange/exchanges/crypto_bridge/services/market.rb @@ -37,7 +37,7 @@ def adapt(output, market_pair) ticker.ask = NumericHelper.to_d(output['ask']) ticker.bid = NumericHelper.to_d(output['bid']) ticker.last = NumericHelper.to_d(output['last']) - ticker.volume = NumericHelper.to_d(output['volume']) / ticker.last + ticker.volume = NumericHelper.divide(NumericHelper.to_d(output['volume']), ticker.last) ticker.timestamp = Time.now.to_i ticker.payload = output ticker