summaryrefslogtreecommitdiff
path: root/blaunits.rb
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2018-02-01 15:19:38 +0000
committerJoe Robinson <joe@lc8n.com>2018-02-01 15:19:38 +0000
commitc83afef1d907c44343dff7b7afd3692881357aa9 (patch)
treeb9e02dfece4987b2ccd7381ff7b764de38432214 /blaunits.rb
parent3b750d67687949223bde7bd992c1e0aafb9c5607 (diff)
Remove limit from coinmarketcap results
Diffstat (limited to 'blaunits.rb')
-rwxr-xr-xblaunits.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/blaunits.rb b/blaunits.rb
index b696e72..e1ef041 100755
--- a/blaunits.rb
+++ b/blaunits.rb
@@ -3,12 +3,12 @@
require 'net/http'
require 'json'
-VERSION = "2.2.2"
+VERSION = "2.2.3"
BINARY_NAME = "units"
begin
def get_crypto_id(currency_name)
- url = 'https://api.coinmarketcap.com/v1/ticker/'
+ url = 'https://api.coinmarketcap.com/v1/ticker/?limit=0'
uri = URI(url)
response = Net::HTTP.get(uri)
currencies = JSON.parse(response)