Get Faridabad Gold 18k (FARI-18k) Historical Prices with API Calls
Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders alike, obtaining historical prices for gold, such as the Faridabad Gold 18k (FARI-18k), can be seamlessly achieved through the Metals-API. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and other essential data points that can empower your trading strategies.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a popular choice for investors and traders. As digital transformation sweeps across various sectors, the precious metals market is no exception. The integration of technology in trading has revolutionized how market participants access data and execute trades. With the advent of data analytics, traders can now gain deeper insights into market trends, price movements, and potential investment opportunities.
Moreover, the innovation in price discovery mechanisms has enabled more accurate valuations of gold and other precious metals. Digital asset solutions are also emerging, allowing for more efficient trading and investment strategies. By leveraging the capabilities of the Metals-API, developers can create applications that provide real-time data, historical trends, and analytical insights, thus enhancing their trading operations.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API empowers developers to build next-generation applications that can access a wealth of information at their fingertips. With its robust architecture, the Metals-API supports a variety of endpoints that cater to different data needs, from the latest rates to historical trends.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the user's subscription plan. This means that whether you're a casual trader or a professional investor, you can access the most current prices for gold and other metals. Additionally, the API offers historical rates dating back to 2019, allowing users to analyze trends over time and make data-driven decisions.
Key Features and Endpoints
The Metals-API boasts a comprehensive suite of features that cater to various trading and analytical needs. Here are some of the key endpoints and their functionalities:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for all available metals. Depending on your subscription plan, this endpoint can return updates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay informed about the latest market movements.
{
"success": true,
"timestamp": 1768436558,
"base": "USD",
"date": "2026-01-15",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
For those interested in analyzing past performance, the Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This is particularly useful for back-testing trading strategies or understanding long-term trends in gold prices.
{
"success": true,
"timestamp": 1768350158,
"base": "USD",
"date": "2026-01-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for traders looking to analyze price movements over specific periods, providing insights into market behavior.
{
"success": true,
"timeseries": true,
"start_date": "2026-01-08",
"end_date": "2026-01-15",
"base": "USD",
"rates": {
"2026-01-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint 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": 1768436558,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This can help traders understand volatility and make more informed decisions based on historical price changes.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-08",
"end_date": "2026-01-15",
"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
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is crucial for traders looking to analyze market trends and make predictions based on historical performance.
{
"success": true,
"timestamp": 1768436558,
"base": "USD",
"date": "2026-01-15",
"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
The Bid/Ask Endpoint provides current bid and ask prices for metals, allowing traders to understand market sentiment and make informed trading decisions.
{
"success": true,
"timestamp": 1768436558,
"base": "USD",
"date": "2026-01-15",
"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"
}
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 various metals into their applications.
Conclusion
In conclusion, the Metals-API offers a robust and versatile solution for accessing historical prices and real-time data for precious metals like gold. By leveraging its various endpoints, developers can create applications that provide critical insights into market trends, price fluctuations, and trading opportunities. The ability to access historical data, real-time rates, and analytical tools empowers traders to make informed decisions and optimize their trading strategies.
For those looking to dive deeper into the capabilities of the Metals-API, I encourage you to explore the Metals-API Documentation for detailed information on each endpoint and its functionalities. With the right tools and data at your disposal, you can enhance your trading experience and stay ahead in the dynamic world of precious metals.