XChange already supports BitcoinCharts:
https://github.com/timmolter/XChangeA slight problem with the BitcoinCharts data is that it includes exchanges and rates that are stale ie the last transaction might have been 3 months ago. (There is a date of transaction that Tim passes through).
All the exchanges seem to have little quirks in their data - for instance there is no real standard for which way round the currencies are given, nor if BTC or fiat is the denominator.
It takes time to work through them.