I would like to use my Linux console to read Bitcoin price from specific exchange using one-liner command.
I were able to achieve that using
Curl with the following command.
curl -sSL https://api.binance.com/api/v1/ticker/price?symbol=BTCUSDT | head -n 1 | sed "s|^.*,|$|" | sed "s|\(\.[0-9]$\)|\10|"
But I noticed a delay while retrieving the price and it's shown the price on the console wrongly.