Difference between revisions of "Bitcoins"
Jump to navigation
Jump to search
(Created page with " Scrape last cavirtex trade every 60s and output price [code] while true; do curl -sk https://www.cavirtex.com/home | grep -m1 Last | awk 'BEGIN{FS=" "};{print $2}'; sleep 60; do...") |
|||
Line 1: | Line 1: | ||
− | |||
Scrape last cavirtex trade every 60s and output price | Scrape last cavirtex trade every 60s and output price | ||
− | + | <pre> | |
while true; do curl -sk https://www.cavirtex.com/home | grep -m1 Last | awk 'BEGIN{FS=" "};{print $2}'; sleep 60; done | while true; do curl -sk https://www.cavirtex.com/home | grep -m1 Last | awk 'BEGIN{FS=" "};{print $2}'; sleep 60; done | ||
− | + | </pre> | |
Watch mtgox trades in real time | Watch mtgox trades in real time | ||
− | + | <pre> | |
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> |
Revision as of 16:02, 17 June 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}'