0.0
No commit activity in last 3 years
No release in over 3 years
Uses the Coin360 API; unofficial gem. #cryptocurrency
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.81.0, ~> 0.81
~> 0.3, >= 0.3.7
 Project Readme

Introducing the Coin360Api21 gem

require 'coin360api21'

coin = Coin360Api21::Coin.new
r = coin.historical :btc, date_start: 1620120300, period: '1h'
r.length
#=> 2 
r[0]
#=> {"price"=>56415.53, "volume"=>29825963239.686802, "market_cap"=>1054919300000, "timestamp"=>1620126000} 
r = coin.historical :btc, date_start: 1620120300, date_end: 1620121200
r = coin.historical :btc, date_start: 1620115500

r = Coin360Api21::Global.new.latest
#=> 
{"cryptocurrencies"=>4041,
 "markets"=>24092,
 "exchanges"=>275,
 "total_volume"=>177202511004.28357,
 "total_market_cap"=>2268510035966.863,
 "timestamp"=>1620128400}

Resources

coin360 bitcoin crypto cryptocurrency cryptocoins prices