Fix Crypto Query API by Retrying the Inverse PairsteemCreated with Sketch.

in #witness-category2 years ago

The Query API ie. (https://price.justyy.workers.dev/) returns INF when API returns failure.

For example,
image.png

And to my surprise, the inverse pair is usually fine:

image.png

Therefore, I've added a workaround by retrying with the inverse pair and do the math by 1.0/rate.

image.png

Steem to the Moon!

  • You can swap the STEEM/SBD to USDT (TRC-20) via Steem2USDT!
  • Register a free STEEM account at SteemYY!
Sort:  

!ask any free APIs to query the Crypto Prices?

  1. CoinMarketCap API
  2. CryptoCompare API
  3. CoinGecko API
  4. Blockchair API
  5. Bitstamp API
  6. Kaiko Data API

command: !ask is powered by witness @justyy and his contributions are: https://steemyy.com
More commands are coming!. !ask is currently based on ChatGPT-3.5