coingecko / cryptoexchange

[UNMAINTAINED] Ruby library to query market data from cryptocurrency exchanges (https://www.coingecko.com)
https://www.coingecko.com
MIT License
296 stars 242 forks source link

Update coss api #2097

Closed teekenl closed 4 years ago

teekenl commented 4 years ago
client = Cryptoexchange::Client.new
pairs = client.pairs 'exchange_name'
tickers = pairs.map do |p| client.ticker p end
sorted_tickers = tickers.sort_by do |t| t.volume end.reverse
wongy91 commented 4 years ago

LGTM 👍