This section describe how you can create historical graphs using the
Exchange Rate API from Xavier Finance.
The graphs will be provided in HTML format like this:
Code:
http://api.finance.xaviermedia.com/graphs/[currency]-[currency]-[period].html
[currency] = The two currencies you would like to show the graph for. Any of the 38 supported currencies can be used at any place.
[period] = Supported periods are 1m, 3m, 1y, 5y, 10y which will return graphs for the last 1 month, 3 months, 1 year, 5 years and 10 years (we only have data from 4th of January 1999 so you will at the moment only get 9 years).
To show the EUR/USD currency rate development for the last 3 months you send the following request to the API server:
Code:
http://api.finance.xaviermedia.com/graphs/EUR-USD-3m.html
To display the graphs on your own homepage you simply include the above link in an iframe like this:
Code:
<IFRAME SRC="http://api.finance.xaviermedia.com/graphs/EUR-USD-3m.html" name=xaviergraphs width=500 height=260 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
The graphs will be updated daily with new fresh data from the API server.
Since this is a free service we require a text link to
http://finance.xaviermedia.com/ if you use any graphs or data:
Code:
<a href="http://finance.xaviermedia.com/">Currency converter</a>