Access Historical Data for Faridabad Gold 18k (FARI-18k) using this API

Metals-API 7 min read
Access Historical Data for Faridabad Gold 18k (FARI-18k) using this API

Access Historical Data for Faridabad Gold 18k (FARI-18k) using this API

In the ever-evolving landscape of precious metals trading, having access to accurate and historical data is crucial for making informed decisions. For developers and traders interested in the gold market, particularly the 18k gold symbolized as FARI-18k, the Metals-API offers a robust solution. This blog post delves into the capabilities of the Metals-API, focusing on how to access historical prices and leverage the API's features for enhanced trading strategies.

About Gold (XAU)

Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. As digital transformation reshapes the financial landscape, the integration of technology in trading gold has become paramount. The use of data analytics and market insights allows traders to make more informed decisions, while innovations in price discovery enhance the accuracy of trading strategies.

With the rise of digital asset solutions, the ability to access real-time and historical data on gold prices has never been more critical. The Metals-API provides developers with the tools necessary to build next-generation applications that can analyze trends, forecast prices, and optimize trading strategies. By utilizing the API, developers can tap into a wealth of information that can significantly impact their trading outcomes.

API Description

The Metals-API is designed to provide real-time and historical data on various metals, including gold, silver, platinum, and palladium. The API's capabilities empower developers to create applications that can track price fluctuations, analyze historical trends, and convert between different metal values. With a focus on innovation and technological advancement, the Metals-API is transforming how traders interact with precious metals data.

One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on the subscription plan, users can receive updates every 60 minutes or even every 10 minutes. This real-time data is crucial for traders who need to make quick decisions based on the latest market conditions.

Key Features and Endpoints

The Metals-API offers a variety of endpoints that cater to different needs within the trading community. Here are some of the key features:

  • Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. For example, a request to this endpoint might return the current price of gold (XAU) along with other metals like silver (XAG) and platinum (XPT).
  • {
    "success": true,
    "timestamp": 1772756088,
    "base": "USD",
    "date": "2026-03-06",
    "rates": {
    "XAU": 0.000482,
    "XAG": 0.03815,
    "XPT": 0.000912,
    "XPD": 0.000744
    },
    "unit": "per troy ounce"
    }
  • Historical Rates Endpoint: This feature allows users to access historical exchange rates for any date since 1999. By appending a specific date to the API request, developers can retrieve past prices for gold and other metals.
  • {
    "success": true,
    "timestamp": 1772669688,
    "base": "USD",
    "date": "2026-03-05",
    "rates": {
    "XAU": 0.000485,
    "XAG": 0.03825,
    "XPT": 0.000915,
    "XPD": 0.000748
    },
    "unit": "per troy ounce"
    }
  • Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. This is particularly useful for analyzing trends over time.
  • {
    "success": true,
    "timeseries": true,
    "start_date": "2026-02-27",
    "end_date": "2026-03-06",
    "base": "USD",
    "rates": {
    "2026-02-27": {
    "XAU": 0.000485,
    "XAG": 0.03825,
    "XPT": 0.000915
    },
    "2026-03-01": {
    "XAU": 0.000483,
    "XAG": 0.0382,
    "XPT": 0.000913
    },
    "2026-03-06": {
    "XAU": 0.000482,
    "XAG": 0.03815,
    "XPT": 0.000912
    }
    },
    "unit": "per troy ounce"
    }
  • Convert Endpoint: This feature allows users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
  • {
    "success": true,
    "query": {
    "from": "USD",
    "to": "XAU",
    "amount": 1000
    },
    "info": {
    "timestamp": 1772756088,
    "rate": 0.000482
    },
    "result": 0.482,
    "unit": "troy ounces"
    }
  • Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, allowing traders to track changes in metal prices over time.
  • {
    "success": true,
    "fluctuation": true,
    "start_date": "2026-02-27",
    "end_date": "2026-03-06",
    "base": "USD",
    "rates": {
    "XAU": {
    "start_rate": 0.000485,
    "end_rate": 0.000482,
    "change": -3.0e-6,
    "change_pct": -0.62
    },
    "XAG": {
    "start_rate": 0.03825,
    "end_rate": 0.03815,
    "change": -0.0001,
    "change_pct": -0.26
    },
    "XPT": {
    "start_rate": 0.000915,
    "end_rate": 0.000912,
    "change": -3.0e-6,
    "change_pct": -0.33
    }
    },
    "unit": "per troy ounce"
    }
  • Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to query the API to get the open, high, low, and close prices for a specific date.
  • {
    "success": true,
    "timestamp": 1772756088,
    "base": "USD",
    "date": "2026-03-06",
    "rates": {
    "XAU": {
    "open": 0.000485,
    "high": 0.000487,
    "low": 0.000481,
    "close": 0.000482
    },
    "XAG": {
    "open": 0.03825,
    "high": 0.0383,
    "low": 0.0381,
    "close": 0.03815
    },
    "XPT": {
    "open": 0.000915,
    "high": 0.000918,
    "low": 0.00091,
    "close": 0.000912
    }
    },
    "unit": "per troy ounce"
    }
  • Bid/Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, which is essential for traders looking to make timely decisions.
  • {
    "success": true,
    "timestamp": 1772756088,
    "base": "USD",
    "date": "2026-03-06",
    "rates": {
    "XAU": {
    "bid": 0.000481,
    "ask": 0.000483,
    "spread": 2.0e-6
    },
    "XAG": {
    "bid": 0.0381,
    "ask": 0.0382,
    "spread": 0.0001
    },
    "XPT": {
    "bid": 0.000911,
    "ask": 0.000913,
    "spread": 2.0e-6
    }
    },
    "unit": "per troy ounce"
    }

Each of these endpoints provides unique functionalities that can be leveraged for various trading strategies. By understanding how to utilize these features effectively, developers can create applications that not only track prices but also analyze trends and make predictions based on historical data.

List of Symbols

The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate multiple metals into their applications.

API Endpoint Examples and Responses

Understanding the API's response structure is crucial for effective integration. Below are examples of various API endpoints, showcasing the JSON responses you can expect:

Latest Rates Endpoint

Get real-time exchange rates for all available metals.

{
"success": true,
"timestamp": 1772756088,
"base": "USD",
"date": "2026-03-06",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}

Historical Rates Endpoint

Access historical exchange rates for any date since 1999.

{
"success": true,
"timestamp": 1772669688,
"base": "USD",
"date": "2026-03-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}

Time-series Endpoint

Get exchange rates for a specific time period.

{
"success": true,
"timeseries": true,
"start_date": "2026-02-27",
"end_date": "2026-03-06",
"base": "USD",
"rates": {
"2026-02-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}

Convert Endpoint

Convert any amount from one metal to another or to/from USD.

{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772756088,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}

Fluctuation Endpoint

Track rate fluctuations between two dates.

{
"success": true,
"fluctuation": true,
"start_date": "2026-02-27",
"end_date": "2026-03-06",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}

OHLC (Open/High/Low/Close) Price Endpoint

Get OHLC data for a specific time period.

{
"success": true,
"timestamp": 1772756088,
"base": "USD",
"date": "2026-03-06",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}

Bid/Ask Endpoint

Get current bid and ask prices for metals.

{
"success": true,
"timestamp": 1772756088,
"base": "USD",
"date": "2026-03-06",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}

Conclusion

Accessing historical data for Faridabad Gold 18k (FARI-18k) through the Metals-API opens up a world of possibilities for traders and developers alike. With its comprehensive suite of features, including real-time rates, historical data access, and conversion capabilities, the API empowers users to make informed trading decisions based on accurate and timely information.

As the market for precious metals continues to evolve, leveraging advanced technologies and data analytics will be essential for success. The Metals-API stands out as a powerful tool that not only simplifies the process of accessing metal prices but also enhances the overall trading experience. For more information, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation.

In summary, whether you are a seasoned trader or a developer looking to integrate precious metals data into your applications, the Metals-API provides the necessary tools to navigate the complexities of the gold market effectively. Embrace the future of trading with the Metals-API and unlock the potential of historical data for Faridabad Gold 18k.