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

Commit

Permalink
Merge pull request #68 from Swingcloud/base-volume-edit
Browse files Browse the repository at this point in the history
change ticker volume to base volume(ready)
  • Loading branch information
tmlee committed Aug 16, 2017
2 parents 29b59e5 + 25eb9e5 commit 761fb02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def adapt(output, market_pair)
ticker.ask = NumericHelper.to_d(market['AskPrice'])
ticker.high = NumericHelper.to_d(market['HighPrice'])
ticker.low = NumericHelper.to_d(market['LowPrice'])
ticker.volume = NumericHelper.to_d(market['Volume'])
ticker.volume = NumericHelper.to_d(market['Volume'])/ticker.last
ticker.timestamp = Time.now.to_i
ticker.payload = market
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 761fb02

Please sign in to comment.