i have a currency table,that contain 4 Currency SGD,INR,USD AUD,I need to convert the total 12 conversion Using this api
public static string CurrencyConvert(decimal amount, string fromCurrency, string toCurrency)
{
string apiURL = String.Format("https://www.google.com/finance/converter?a={0}&from={1}&to={2}&meta={3}", amount, fromCurrency, toCurrency, Guid.NewGuid().ToString());
var request = WebRequest.Create(apiURL);
var streamReader = new StreamReader(request.GetResponse().GetResponseStream(), System.Text.Encoding.ASCII);
var result = Regex.Matches(streamReader.ReadToEnd(), "<span class=\"?bld\"?>([^<]+)</span>")[0].Groups[1].Value;
return result;
}
SGD to INR;
SGD to USD;
SGD to AUD,
INR to SGD,
INR to USD,
INR to AUD,
AUD to SGD,
AUD to INR,
AUD to USD,
USD to SGD
USD to AUD,
USD to INR,