Bitcoin Watch is now making available per-trade historical data for mtgox, bitcoinmarket PPUSD, bitcoinmarket LRUSD and bitcoinmarket PGAU. It's in CSV text format, zipped:
http://www.bitcoinwatch.com/trades.zipRobot authors, please
do not poll this more than once a day. Do not consider this a real-time feed. You do not need to download the entire history of bitcoin every 5 minutes! If you need a real-time feed, please connect directly to the marketplace tickers themselves.
Cool. I'm going to have some fun writing a bash/gnuplot script in order to print a graph of that.
Edit. I like the format of the datetime
Edit bis. Here is some code :
#!/bin/bash
cd /tmp
f=trades.csv
if ! [[ -f "$f" ]] || (( $(stat -c %X "$f") < $(date +%s) - 3600*24 ))
then
wget http://www.bitcoinwatch.com/trades.zip
unzip trades.zip
fi
tail -n +2 "$f" |
cut -d, -f1 |
sort -u |
{
declare -a currency
while read c
do
currency+=("$c")
grep "$c" $f |
cut -d, -f 2,3 |
sed -re 's/"//g; s/,/ /g' > "${c//\"/}"
done
[[ -z "$DISPLAY" ]] &&
echo "set terminal png ; set output 'btc-graph.png'"
IFS=,
echo "
set xtics 5e6
set style data lines
plot ${currency[*]}
"
} |
gnuplot -p &&
[[ -z "$DISPLAY" ]] &&
fim 'btc-graph.png'