Sample Header Ad - 728x90

Trying to find better way to read BTC price from specific exchange using Linux

0 votes
1 answer
114 views
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.
Asked by αԋɱҽԃ αмєяιcαη (1267 rep)
Feb 11, 2019, 09:00 PM
Last activity: Feb 11, 2019, 09:45 PM