The following command achieve my goal by grepping BTC
price from specific exchange.
curl -sS https://api.binance.com/api/v1/ticker/price?symbol=BTCUSDT | jq -r '.price'
the output will be for the moment 7222.25000000
but i would like to get it 7222.25
curl
tag if curl is an essential part of the problem. If you can download the file to save it on disk and runjq -r .price <myfile
and get the same problem, curl isn't a necessary part of the problem.