Difference between revisions of "Bitcoins"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
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]] |
Revision as of 13:25, 23 September 2011
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}'