Project

coinquery

0.0
No commit activity in last 3 years
No release in over 3 years
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
2022
2023
2024
 Dependencies

Runtime

~> 0.3, >= 0.3.4
>= 0.81.0, ~> 0.81
~> 0.3, >= 0.3.3
 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