adapted to the new api of bitcoincharts