It could be written pretty easily.
Truncate the value (at the decimal) returned from this API call:
I don't have the skill/knowledge. How much sats to do it? And a 1btc = $ amount as well? 🙂
reply
If I knew about this I would have used it in my example instead XD
reply