dcrdex
dcrdex copied to clipboard
Suggestion: Fiat rate source with support for websockets
@buck54321: // coinpaprika has two options. /tickers is for the top 2500 assets all in // one request. /ticker/[slug] is for a single ticker. From testing // Single ticker request took 274.626125ms // Size of single ticker response: 0.733 kB // All tickers request took 47.651851ms // Size of all tickers response: 1828.863 kB // Single ticker requests were < 1 kB, while all tickers were 1.8 MB, but // the larger request was faster (without json decoding). Coinpaprika's, // free tier allows up to 25k requests per month. For a // fiatRateRequestInterval of 12 minutes, that 3600 requests per // month for the all tickers request, and 3600 * N requests for N assets. // So any more than 25000 / 3600 = 6.9 assets, and we can expect to run into // rate limits. But the bandwidth of the full tickers request is kinda // ridiculous too. Solution needed.
I'm leaning towards fiat rate sources with WebSocket support as they'll make this easier and save us the headache of dealing with rate limits. We can always use the REST APIs as a fallback.
Thinking of Binance, Bittrex, Kucoin etc... Coinpaprika says they are actively working on alternate methods and that "WebSockets streaming interface is under active development". I can't tell if Messari has websocket support cuz I found nothing while researching.
Most exchanges now encourage receiving data via WebSockets.
What do y'all think?
Edit: It seems Coinpaprika supports WS (https://streaming.coinpaprika.com/) but is limited to >$799 plan.
Of course WebSocket feeds are always preferred. I may be misunderstanding, but have you identified a reliable WebSockets fiat exchange rate feed that is free and requires no API key?
I'm not averse to enabling price feeds from sources that do require an API key, but we would need to hash out some details before moving forward.
I'm not averse to enabling price feeds from sources that do require an API key
I really don’t like sources that require an API key but open to suggestions.
have you identified a reliable WebSockets fiat exchange rate feed that is free and requires no API key
I recommend Binance, Bittrex, and Kucoin.
@martonp @JoeGruffins @peterzen, any suggestions?
Bitvavo has unauthenticated WS support
https://docs.bitvavo.com/
Bitvavo has unauthenticated WS support
https://docs.bitvavo.com/
Thanks for your suggestion @peterzen. It seems Bitvavo doesn’t have support for DCR-USDT
market but I'm yet to check for other markets.