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...") |
m |
||
(2 intermediate revisions by 2 users 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> | |
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> |
+ | |||
+ | [[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}'