cryptoexchange 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c3c5092969d161c818141bf62cd47ff1d06566c
4
- data.tar.gz: 9e4b6006845a7b059436d4403168eff080db35eb
3
+ metadata.gz: 66f0b0109d6f99f30b5812d0f857345cfaaa853b
4
+ data.tar.gz: e0c3d4816e13d575eebc8acb5c69fde29edbadbc
5
5
  SHA512:
6
- metadata.gz: 212c4eb457261902793e931496bc458878f39cef023c79779bc5fb460c885170aeaf146ebc6e22944649f77f9e9ddecf170069f23268a6f7605b84812cafa1b5
7
- data.tar.gz: d5adf2fc535d3178c73855225052d5480532c6558edbce2faaab19e411aea1eff969d84656d81dda8250fa20ca0cddff9dab58beac34b7987931b98b31d6d249
6
+ metadata.gz: 39c658176740743e24702d75a0c864713de87e9c47895a3c9b8051e437ebd8779fddfc2e1ff321b7bae5b4971944d56541778ff75f6873eff7d65ca2b3af6b1e
7
+ data.tar.gz: 9fcd45a098ff706af57885d065dc9b19d5b0ed0078743d011446be5b91883585f6ac628dcee68d2fbf0fd28433c7c2b680cfbdc0ed2bda564bad0bd8d8eaae2c
@@ -39,7 +39,7 @@ module Cryptoexchange::Exchanges
39
39
  ticker.last = NumericHelper.to_d(output['Last'])
40
40
  ticker.high = NumericHelper.to_d(output['High'])
41
41
  ticker.low = NumericHelper.to_d(output['Low'])
42
- ticker.volume = NumericHelper.to_d(output['Volume'])
42
+ ticker.volume = NumericHelper.to_d(output['BaseVolume'])
43
43
  ticker.timestamp = Time.parse(output['TimeStamp']).to_i
44
44
  ticker.payload = output
45
45
  ticker
@@ -41,7 +41,7 @@ module Cryptoexchange::Exchanges
41
41
  ticker.ask = NumericHelper.to_d(market['AskPrice'])
42
42
  ticker.high = NumericHelper.to_d(market['HighPrice'])
43
43
  ticker.low = NumericHelper.to_d(market['LowPrice'])
44
- ticker.volume = NumericHelper.to_d(market['Volume'])
44
+ ticker.volume = NumericHelper.to_d(market['Volume'])/ticker.last
45
45
  ticker.timestamp = Time.now.to_i
46
46
  ticker.payload = market
47
47
  ticker
@@ -32,7 +32,7 @@ module Cryptoexchange::Exchanges
32
32
  ticker.ask = NumericHelper.to_d(data['AskPrice'])
33
33
  ticker.high = NumericHelper.to_d(data['High'])
34
34
  ticker.low = NumericHelper.to_d(data['Low'])
35
- ticker.volume = NumericHelper.to_d(data['Volume'])
35
+ ticker.volume = NumericHelper.to_d(data['BaseVolume'])
36
36
  ticker.change = NumericHelper.to_d(data['Change'])
37
37
  ticker.timestamp = Time.now.to_i
38
38
  ticker.payload = data
@@ -30,7 +30,7 @@ module Cryptoexchange::Exchanges
30
30
  ticker.last = NumericHelper.to_d(market['last'].to_s)
31
31
  ticker.bid = NumericHelper.to_d(market['bid'].to_s)
32
32
  ticker.ask = NumericHelper.to_d(market['ask'].to_s)
33
- ticker.volume = NumericHelper.to_d(market['quoteVolume'].to_s)
33
+ ticker.volume = NumericHelper.to_d(market['baseVolume'].to_s)
34
34
  ticker.timestamp = DateTime.now.to_time.to_i
35
35
  ticker.payload = market
36
36
  ticker
@@ -1,3 +1,3 @@
1
1
  module Cryptoexchange
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptoexchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TM Lee