Free API to get Gold and Silver rates as per market in ASP.Net

on Jan 17, 2013 05:52 AM

hello sir i wnt API(Free/Paid) for Gold, Silver rate which gng to b increase or decrease as per share market .....

Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Jan 18, 2013 04:17 AM

After lot of searching I managed to find one free international API that for Gold in USD

protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
        string url = "{0}&trim_end={1}&collapse=daily&transformation=&commit=Refine";
        DateTime today = DateTime.Now;
        url = string.Format(url, today.AddDays(-1).ToString("yyyy-MM-dd"), today.AddDays(-1).ToString("yyyy-MM-dd"));
        using (System.Net.WebClient client = new System.Net.WebClient())
            string xml = client.DownloadString(url);
            System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
            string rate = doc.SelectNodes("/dataset/data/datum/datum")[1].InnerText;