coingecko / cryptoexchange

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

edit uniswap endpoint #2094

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