A few sources for rate data, although I believe it's all delayed:
Yahoo finance via YQL: http://y.ahoo.it/vcStk
For data directly from Yahoo finance, there is a "download" link on any quote page, something like http://download.finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=sl1d1t1c1ohgv&e=.csv
Get Exchange Rates api gives you a snapshot in json format-
http://www.getexchangerates.com/api/
Open Exchange Rates has a paid api that is free for small-scale use:
https://openexchangerates.org/documentation