Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
change ticker volume to base volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Swingcloud committed Aug 4, 2017
1 parent 103f49c commit bf37f1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cryptoexchange/exchanges/bleutrade/services/market.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def adapt(output, market_pair)
ticker.last = NumericHelper.to_d(output['Last'])
ticker.high = NumericHelper.to_d(output['High'])
ticker.low = NumericHelper.to_d(output['Low'])
ticker.volume = NumericHelper.to_d(output['Volume'])
ticker.volume = NumericHelper.to_d(output['BaseVolume'])
ticker.timestamp = Time.parse(output['TimeStamp']).to_i
ticker.payload = output
ticker
Expand Down
2 changes: 1 addition & 1 deletion lib/cryptoexchange/exchanges/cryptopia/services/market.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def adapt(output)
ticker.ask = NumericHelper.to_d(data['AskPrice'])
ticker.high = NumericHelper.to_d(data['High'])
ticker.low = NumericHelper.to_d(data['Low'])
ticker.volume = NumericHelper.to_d(data['Volume'])
ticker.volume = NumericHelper.to_d(data['BaseVolume'])
ticker.change = NumericHelper.to_d(data['Change'])
ticker.timestamp = Time.now.to_i
ticker.payload = data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def adapt(output, market_pair)
ticker.last = NumericHelper.to_d(market['last'].to_s)
ticker.bid = NumericHelper.to_d(market['bid'].to_s)
ticker.ask = NumericHelper.to_d(market['ask'].to_s)
ticker.volume = NumericHelper.to_d(market['quoteVolume'].to_s)
ticker.volume = NumericHelper.to_d(market['baseVolume'].to_s)
ticker.timestamp = DateTime.now.to_time.to_i
ticker.payload = market
ticker
Expand Down

0 comments on commit bf37f1c

Please sign in to comment.