Free Forex Conversion Widget

I created this widget for some of my projects, since I couldn't find a decent widget with this functionality anywhere else. This widget uses a FOREX feed from openexchangerates.org, which is automatically updated on an hourly basis.

Disclaimer

There is no guarantee as to the accuracy of this feed, which is meant for quick reference only.

Demo

Now that we have that disclaimer in place, here's a demo of the FOREX widget. You can customize the look of the table with a stylesheet.


Usage

To use this widget on your website, you need to add just 2 lines of code. Copy the lines below, paste them on your website and you're good to go.

<script id="fxcwJS" type="text/javascript" src="https://www.warrenasia.com/widgets/fx/fx-widget.js"></script>
<div id="forex-widget-container"></div>

There are a few things you can customize, if you need to:

  • baseValue: This is the amount in INR that should be used as the initial value
  • currencyList: This is a list of 3-character, comma-separated currency codes that you want to display in your widget. By default, the widget shows the following 8 currencies: USD, EUR, JPY, GBP, CHF, CAD, AUD, ZAR
  • precision: This is the number of digits you want to display, after the decimal point. By default, the widget shows 2 digits after the decimal point.

<script id="fxcwJS" type="text/javascript" 
	src="https://www.warrenasia.com/widgets/fx/fx-widget.js#baseValue=1000&currencyList=USD,EUR,JPY,GBP,CHF,CAD,AUD,ZAR&precision=2"></script>
<div id="forex-widget-container"></div>

Like this widget? Got a suggestion? Let me know.



Please enable Javascript to view this site properly.