DEV Community

DoctorLai
DoctorLai

Posted on

Coinlookup Bot and API Added Shortcut Query e.g. 100 STEEM

Previously, I have noticed that many users just typed "1000 STEEM" and they would like to know the value of their assets, possibly in the unit of USD.

They could have queried "100 STEEM USD" or "100 STEEM USDT" but they just don't want to bother typing that much.

Thus, I have added the support for such shortcut query in the cryptocurrency lookup tools.

When the query is in the format of AMOUNT COIN-OR-FIAT it will be as like querying AMOUNT COIN-OR-FIAT USD, which is to append " USD" at the end of the query.

See the examples of invoking the shortcut query in the Cryptocurrency Bot:

$ curl -s --data "100 STEEM" https://price.justyy.workers.dev/query
{"query":["100 STEEM"],"time":"2023-03-06T20:10:16.225Z","result":["100 steem = 20.88650875 USD"]}
Enter fullscreen mode Exit fullscreen mode

image.png

image.png


Steem to the Moon!

You can swap the STEEM/SBD to USDT (TRC-20) via Steem2USDT

Top comments (0)