cryptocompare 0.10.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -2
- data/README.md +318 -128
- data/cryptocompare.gemspec +4 -4
- data/lib/cryptocompare.rb +3 -0
- data/lib/cryptocompare/coin_list.rb +76 -0
- data/lib/cryptocompare/coin_snapshot.rb +43 -43
- data/lib/cryptocompare/exchanges.rb +53 -0
- data/lib/cryptocompare/helpers/query_param_helper.rb +0 -2
- data/lib/cryptocompare/histo_day.rb +24 -24
- data/lib/cryptocompare/histo_hour.rb +24 -24
- data/lib/cryptocompare/histo_minute.rb +24 -24
- data/lib/cryptocompare/news.rb +97 -0
- data/lib/cryptocompare/price.rb +38 -38
- data/lib/cryptocompare/top_pairs.rb +12 -12
- data/lib/cryptocompare/version.rb +1 -1
- metadata +32 -32
- data/config/exchanges.yml +0 -55
- data/lib/cryptocompare/helpers/exchange_name_helper.rb +0 -14
@@ -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
|