#!/bin/bash
showmeip=$(curl -s "https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT" | python3 -c "
import sys, json
data = json.load(sys.stdin)
price = float(data['lastPrice'])
pct = float(data['priceChangePercent'])
n = int(price)
d = '{:.2f}'.format(price).split('.')[1]
s = str(n)
result = ''
for i, c in enumerate(s):
    if i > 0 and (len(s)-i) % 3 == 0:
        result += '.'
    result += c
sign = '+' if pct > 0 else ''
color = '\033[91m' if pct > 0 else '\033[92m'
reset = '\033[0m'
print(f'{color}{result},{d} ({sign}{pct:.2f}%){reset}')
")
echo ""
echo "$showmeip"
exit 0
