Last active
March 25, 2024 04:45
-
-
Save maltoze/b295c345221733640818a6c380d5501c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Metadata allows your plugin to show up in the app, and website. | |
# | |
# <xbar.title>FLT/USDT tracker</xbar.title> | |
# <xbar.version>v0.1</xbar.version> | |
# <xbar.author>maltoze</xbar.author> | |
# <xbar.author.github>maltoze</xbar.author.github> | |
# <xbar.desc>FLT/USDT price tracker</xbar.desc> | |
# <xbar.image></xbar.image> | |
# <xbar.dependencies></xbar.dependencies> | |
# <xbar.abouturl></xbar.abouturl> | |
# Variables become preferences in the app: | |
export PATH='/usr/bin:/opt/local/bin:/usr/local/bin:$PATH' | |
price=$(curl -s 'https://api.bybit.com/v5/market/recent-trade?category=spot&symbol=FLTUSDT&limit=1' \ | |
| jq -r '.result.list[0].price' \ | |
| awk '{printf("%.3f\n", $1)}') | |
echo "$price | templateImage=iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAALnSURBVFhH7VdLaxNRFM77/TQJSWMSSSAxZCC+usguoC6yiO4UoTsfdCtad5Zsim7qH3ApuFLookU3Lrqsv0ChZFNBRlExxVZFZPy+8UwQwYkk004W+eCS0++ec+a79557ZuqYYQa7Ua/XUx6PZ4mDttD2oVwu17xe7wcO2kLbBxGkckyFoGq1WjEE0Rb68NFqtYKZTOZEPB6/6Xa7dzmSyeStfD5/knPidvBot9ueVCp1MRAIbEDER6fTqYHWB21wn/x+/0Y0Gr1AXz3ooIAdiAeDwQcul2uPD8fNUvHwLfz9FUK+QeQWflW4avShL2N+R1uMRqMRgYCHMLkLg1AotJrNZpVardY0aog2OQhZhaABfRnDWD2JlYCAO3IkaiwWu6xpmpN8pVKpGoJok+McduYKfN8xhrHkLUMul2tgpTtI/iMSidwQWofZtYfwRcYg9k2xWFSEnhwQcZcrRY08azabYaF1mAmiL2KeMxbiloWeDLzCPp/vBZPiil8VeggzQQSO7jpjmcOSdlAqleZQC9sYuzi6eaGHGCUILWIeBc4+tc1cQo8PbPkxrHAHSVX0Fr1o/8QoQYxhLHMwl9Djo1AoHMXq+hif0YVPCT3EKEHpdPo0Ygco7D5zCT0+WJg4/03WQSKRWBB6iFGCUMwLUkObf1+IsREOh1fww1v2tNPp+HVSYCYIDdGHTv4EpiY5rAG2/Qy2/T1qYZ9NUWgdZoLQLi5hd/YZyxxCTw52XqzwHree9QT7rEz9UxBaxDksoM8Yxhqd3TKgoFM4sjUR9Rb2bax6Du+vuiHoOICOnMerYok+9MWRrTFW0lgLPgzF+QgP+inCXuFFys+QPQ6IXMfva87RB3OP8dE2+c0yA28KauMadoSfHd/5cNDD7yFyEP2SPpbdqv8BesoR4Dxq5T525QsHbXKcE7fDx9R8Uxswu/a2QARNz/9liqIU0SzXOWgLbR96vZ6r2+2GOGgLPcMMNsHh+AXVWtVsPgpmQQAAAABJRU5ErkJggg==" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment