cryptocompare 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb1da60424846af0f722e8ee3857276a56a54cab
4
- data.tar.gz: 607e0325e789895690d4c2e10f12c20201b254cb
3
+ metadata.gz: 5c120153810c67df5d211b0402d1e57a47db6374
4
+ data.tar.gz: a9e64a31221c714c67b66873f783f35061666146
5
5
  SHA512:
6
- metadata.gz: ef0c477aa83c3a8f325a5f74bc858f608a6175cf553f40ded4cf4093288c4138f4e1a25fe5006f71ca817bfc94a86686fc4e0fe71de5ae4e2d351d238ffd7ade
7
- data.tar.gz: cde48298626ef54b0dcac8570219f2d60309f38e5e9f517e14646dfd42a8843b6173a3d536a9f5aed33d90b11ab0abb62c4ecbb559ecdfae577bec4c0a5ce573
6
+ metadata.gz: 6916d451843791bcb90f446cd09a1e3089b8d062c2f4b3fbd8399d5bfa74af47d737e28c4f1ee82f58e3a16771998ce7a773217a2b7f1679fae9f8e2de0bfcce
7
+ data.tar.gz: 3992b78b352ebc4a501f70284d7397088dad23c185d289a1cf133b368eab4e2da5ab6a0fab93261c156d25fc4c8f1761633f82496aedc147a3f39fbc8ec439c3
data/README.md CHANGED
@@ -456,40 +456,52 @@ Cryptocompare::HistoDay.find('BTC', 'USD')
456
456
 
457
457
  ## Supported Exchanges
458
458
 
459
- * BTC38
460
- * BTCC
461
- * BTCE
462
- * BTCMarkets
463
- * BTCXIndia
464
- * BTER
459
+ * ANXBTC
460
+ * Binance
465
461
  * Bit2C
466
462
  * BitBay
463
+ * BitcoinDE
464
+ * Bitfinex
467
465
  * bitFlyer
468
466
  * bitFlyerFX
467
+ * Bithumb
469
468
  * BitMarket
470
- * BitSquare
471
- * Bitfinex
472
469
  * Bitso
470
+ * BitSquare
473
471
  * Bitstamp
474
472
  * Bittrex
475
473
  * Bleutrade
474
+ * BTC38
475
+ * BTCChina
476
+ * BTCE
477
+ * BTCMarkets
478
+ * btcXchange
479
+ * BTCXIndia
480
+ * BTER
476
481
  * CCEDK
482
+ * CCEX
477
483
  * Cexio
478
- * CoinCheck
484
+ * CHBTC
479
485
  * Coinbase
486
+ * CoinCheck
487
+ * CoinExchange
480
488
  * Coinfloor
481
489
  * Coinone
490
+ * Coinroom
482
491
  * Coinse
483
492
  * Coinsetter
484
493
  * Cryptopia
494
+ * CryptoX
485
495
  * Cryptsy
486
496
  * EtherDelta
487
497
  * EthexIndia
498
+ * Exmo
488
499
  * Gatecoin
489
500
  * Gemini
490
501
  * HitBTC
491
502
  * Huobi
492
503
  * itBit
504
+ * Jubi
493
505
  * Korbit
494
506
  * Kraken
495
507
  * LakeBTC
@@ -497,20 +509,28 @@ Cryptocompare::HistoDay.find('BTC', 'USD')
497
509
  * LiveCoin
498
510
  * LocalBitcoins
499
511
  * Luno
512
+ * Lykke
500
513
  * MercadoBitcoin
501
514
  * MonetaGo
515
+ * MtGox
516
+ * Novaexchange
502
517
  * OKCoin
503
518
  * Paymium
504
519
  * Poloniex
505
520
  * QuadrigaCX
506
521
  * Quoine
522
+ * Remitano
507
523
  * TheRockTrading
508
524
  * Tidex
525
+ * TuxExchange
509
526
  * Unocoin
510
527
  * Vaultoro
528
+ * ViaBTC
529
+ * WavesDEX
511
530
  * Yacuna
512
531
  * Yobit
513
532
  * Yunbi
533
+ * Zaif
514
534
 
515
535
  If no exchange option is specified, then the default 'CCCAGG' is used. This is cryptocompare's aggregated data.
516
536
 
@@ -1,5 +1,4 @@
1
1
  require 'yaml'
2
- require_relative 'exchange_name_helper'
3
2
 
4
3
  # Helper module for setting query params.
5
4
  module Cryptocompare
@@ -14,7 +13,6 @@ module Cryptocompare
14
13
  # Helper method to parse parameters and build query parameters
15
14
  def self.to_query(opts)
16
15
  opts.collect do |key, value|
17
- value = ExchangeNameHelper.set_exchange(value) if key == 'e'
18
16
  "#{QUERY_PARAM_MAPPING[key]}=#{value}"
19
17
  end.sort * '&'
20
18
  end
@@ -1,3 +1,3 @@
1
1
  module Cryptocompare
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptocompare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander David Pan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: vcr
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: faraday
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: json
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: A Ruby gem for communicating with the CryptoCompare API
@@ -115,8 +115,8 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - .gitignore
119
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
120
  - CODE_OF_CONDUCT.md
121
121
  - Gemfile
122
122
  - LICENSE.txt
@@ -124,12 +124,10 @@ files:
124
124
  - Rakefile
125
125
  - bin/console
126
126
  - bin/setup
127
- - config/exchanges.yml
128
127
  - config/query_param_mapping.yml
129
128
  - cryptocompare.gemspec
130
129
  - lib/cryptocompare.rb
131
130
  - lib/cryptocompare/coin_snapshot.rb
132
- - lib/cryptocompare/helpers/exchange_name_helper.rb
133
131
  - lib/cryptocompare/helpers/query_param_helper.rb
134
132
  - lib/cryptocompare/histo_day.rb
135
133
  - lib/cryptocompare/histo_hour.rb
@@ -149,17 +147,17 @@ require_paths:
149
147
  - lib
150
148
  required_ruby_version: !ruby/object:Gem::Requirement
151
149
  requirements:
152
- - - '>='
150
+ - - ">="
153
151
  - !ruby/object:Gem::Version
154
152
  version: 2.0.0
155
153
  required_rubygems_version: !ruby/object:Gem::Requirement
156
154
  requirements:
157
- - - '>='
155
+ - - ">="
158
156
  - !ruby/object:Gem::Version
159
157
  version: '0'
160
158
  requirements: []
161
159
  rubyforge_project:
162
- rubygems_version: 2.0.14.1
160
+ rubygems_version: 2.6.14
163
161
  signing_key:
164
162
  specification_version: 4
165
163
  summary: A Ruby gem for communicating with the CryptoCompare API
@@ -1,55 +0,0 @@
1
- BTC38: BTC38
2
- BTCC: BTCC
3
- BTCE: BTCE
4
- BTCMARKETS: BTCMarkets
5
- BTCXINDIA: BTCXIndia
6
- BTER: BTER
7
- BIT2C: Bit2C
8
- BITBAY: BitBay
9
- BITFLYER: bitFlyer
10
- BITFLYERFX: bitFlyerFX
11
- BITMARKET: BitMarket
12
- BITSQUARE: BitSquare
13
- BITFINEX: Bitfinex
14
- BITSO: Bitso
15
- BITSTAMP: Bitstamp
16
- BITTREX: Bittrex
17
- BLEUTRADE: Bleutrade
18
- CCEDK: CCEDK
19
- CEXIO: Cexio
20
- COINCHECK: CoinCheck
21
- COINBASE: Coinbase
22
- COINFLOOR: Coinfloor
23
- COINONE: Coinone
24
- COINSE: Coinse
25
- COINSETTER: Coinsetter
26
- CRYPTOPIA: Cryptopia
27
- CRYPTSY: Cryptsy
28
- ETHERDELTA: EtherDelta
29
- ETHEXINDIA: EthexIndia
30
- GATECOIN: Gatecoin
31
- GEMINI: Gemini
32
- HITBTC: HitBTC
33
- HUOBI: Huobi
34
- ITBIT: itBit
35
- KORBIT: Korbit
36
- KRAKEN: Kraken
37
- LAKEBTC: LakeBTC
38
- LIQUI: Liqui
39
- LIVECOIN: LiveCoin
40
- LOCALBITCOINS: LocalBitcoins
41
- LUNO: Luno
42
- MERCADOBITCOIN: MercadoBitcoin
43
- MONETAGO: MonetaGo
44
- OKCOIN: OKCoin
45
- PAYMIUM: Paymium
46
- POLONIEX: Poloniex
47
- QUADRIGACX: QuadrigaCX
48
- QUOINE: Quoine
49
- THEROCKTRADING: TheRockTrading
50
- TIDEX: Tidex
51
- UNOCOIN: Unocoin
52
- VAULTORO: Vaultoro
53
- YACUNA: Yacuna
54
- YOBIT: Yobit
55
- YUNBI: Yunbi
@@ -1,14 +0,0 @@
1
- require 'yaml'
2
-
3
- # Helper module for exchange names.
4
- module Cryptocompare
5
- module ExchangeNameHelper
6
- EXCHANGES = YAML::load_file(File.join(__dir__, '../../../config/exchanges.yml'))
7
-
8
- # Helper method to overcome case-sensitive exchange name enforced by the API.
9
- # If no supported exchange mapping is found, it will try user's input.
10
- def self.set_exchange(exchange)
11
- EXCHANGES[exchange.upcase] || exchange
12
- end
13
- end
14
- end