Skip to content

Commit

Permalink
use method to devide volume (coingecko#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swingcloud authored and tmlee committed Dec 23, 2017
1 parent efd00b0 commit a57b380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a57b380

Please sign in to comment.