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

introduce contract stat for dydx derivatives. #2099

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
teekenl commented 4 years ago

@ElvisLYC are you able to take a look at this PR. for spot trading, do we skip and return nothing for contract_stat ?

ElvisLYC commented 4 years ago

@teekenl my suggestion is:-

1) Before deployment, double check with the ticket assignor that all tickers listed here https://api.dydx.exchange/v1/stats/markets is referring to perpetual tickers (because it is stated as type spot in the api)

2)you don't need dydx and dydx_perpetual market, choose only one. referring to my comment above

ElvisLYC commented 4 years ago

LGTM