Ideally this should be handled through one of our existing APIs. You can view existing APIs at:
Forex Trading APIs | Currency API requirements
If you are doing an infrequent download (every few hours, once a day etc), then the Report API should be able to give you what you need. It is a simple API that will allow you to request a report between set dates available in several formats.