coingecko / cryptoexchange

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

what about improving the network request by adding "proxy" and "settimeout" ? #328

Open sg552 opened 6 years ago

sg552 commented 6 years ago

it seems that some website is not stable nor available, e.g. kraken( extreamly slow) , coins_markets, coin_exchange, bxthai_land ( 404 )

tmlee commented 6 years ago

One option is to do a rate limiting on your end before consuming the API through this gem. I have not thought of a good way to abstract this feature into the gem, although a good addition. Feel free to propose a solution with a Pull Request.

sg552 commented 6 years ago

ok, got it ~

wongy91 commented 6 years ago

perhaps can use Thread to make simultaneous HTTP call (enable proxy input)?