{"repo":"alexanderdavidpan/cryptocompare","free":true,"listed":false,"github":"https://github.com/alexanderdavidpan/cryptocompare","clone":"git clone https://github.com/alexanderdavidpan/cryptocompare.git","description":"💸 A Ruby gem for finding cryptocurrency prices by using the CryptoCompare API.","language":"Ruby","stars":77,"topics":["cryptocurrency","ruby","cryptocompare","bitcoin","ethereum","litecoin"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"cryptocompare This is a Ruby gem that utilizes the CryptoCompare API to fetch data related to cryptocurrencies. Installation Add this line to your application's Gemfile: And then execute: $ bundle Or install it yourself as: $ gem install cryptocompare Usage To use cryptocompare, just require it like so: API Keys Some requests will require an API key. In order to obtain an API key, you will need to request one from Cryptocompare. You can then pass it in as an optional parameter in the any Cryptocompare module method like so: Price Finds the currency price(s) of a given currency symbol. Really fast, 20-60 ms. Cached each 10 seconds. Examples: Convert cryptocurrency to fiat. Convert fiat to cryptocurrency. Convert cryptocurrency to cryptocurrency. Convert fiat to fiat. Convert multiple cryptocurrencies to multiple fiat. Convert multiple fiat to multiple cryptocurrencies. Convert prices based on exchange. Get full price info (raw and display) for cryptocurrency to fiat currency. Generate average price for cryptocurrency to fiat currency. Get day average price. PriceHistorical Finds the price of any cryptocurrency in any other currency that you need at a given timestamp. The price comes from the daily info - so it would be the price at the end of the day GMT based on the requested timestamp. If the crypto does not trade directly into the toSymbol requested, BTC will be used for conversion. Tries to get direct trading pair data, if there is none or it is more than 30 days before th","default_branch":null,"files":null,"tree":[],"storefront":"/r/alexanderdavidpan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alexanderdavidpan/cryptocompare/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}