I am using the following code to download streaming financial data
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer XXX..." "https://...=EUR_USD" | jq --raw-output '[.time, .bids.price, .asks.price] | @csv'
which is successfully streaming in the terminal thus
However, what I would really like is to further process this, using sed, to get
and then append this to a file, let's call it "output," but when I try piping to sed I no longer see the streaming data although I'm sure my sed syntax is correct as I've checked it against a static test file.
So my question is: how do I further pipe to sed and then append to the file "output?"