coingecko / cryptoexchange

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

fix deversifi volume #2120

Closed wenjieyek closed 4 years ago

wenjieyek 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