Difference between revisions of "Bitcoins"

From SkullSpace Wiki
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
[code]
+
<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
[/code]
+
</pre>
  
  
 
Watch mtgox trades in real time
 
Watch mtgox trades in real time
[code]
+
<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}'
[/code]
+
</pre>
 +
 
 +
[[Category: Projects]]

Latest revision as of 14:34, 4 October 2017

Info.png This page has been archived. All information in this article is historical.

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}'