Getting historic exchange data through an API
Have a look at the API of Bitcoin Charts. They have trade data available for all the major exchanges but delayed by 15 minutes. You can then fill up the gap using the available exchange APIs.