Project

coinquery

0.0
The project is in a healthy, maintained state
Uses the Coingecko API. Inspired by the coingecko_client gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

Introducing the CoinQuery gem

require 'coinquery'

cq = CoinQuery.new

a = cq.coins
a.each do |coin|
  puts "%+12s: %s" % [coin['name'], coin['current_price']]
end
     Bitcoin: 57668
    Ethereum: 2930.74
Binance Coin: 622.56
         XRP: 1.57
      Tether: 1.0
cq.price :solana
#=> 48.17

cq.historical_price :eth, '28 April 2021'
#=> 2647.16  

cq.coins_list.length
#=> 6983

Resources

coinquery crypto coinmarketcap coingecko cryptocurrency bitcoin gem