Difference between revisions of "Bitcoins"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Archived}} | ||
+ | |||
Scrape last cavirtex trade every 60s and output price | Scrape last cavirtex trade every 60s and output price | ||
<pre> | <pre> | ||
Line 9: | Line 11: | ||
nc bitcoincharts.com 27007 | grep '"symbol": "mtgoxUSD"' | awk 'BEGIN {FS=":|,"};{print substr($4,2,7) "\t" $6}' | nc bitcoincharts.com 27007 | grep '"symbol": "mtgoxUSD"' | awk 'BEGIN {FS=":|,"};{print substr($4,2,7) "\t" $6}' | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category: Projects]] |
Latest revision as of 14:34, 4 October 2017
Scrape last cavirtex trade every 60s and output price
while true; do curl -sk https://www.cavirtex.com/home | grep -m1 Last | awk 'BEGIN{FS=" "};{print $2}'; sleep 60; done
Watch mtgox trades in real time
nc bitcoincharts.com 27007 | grep '"symbol": "mtgoxUSD"' | awk 'BEGIN {FS=":|,"};{print substr($4,2,7) "\t" $6}'