Retrieve Historical Data for Ahmedabad Gold (XAU-AHME) using this API
Retrieve Historical Data for Ahmedabad Gold (XAU-AHME) using this API
In the ever-evolving landscape of financial markets, the demand for accurate and timely data is paramount, especially when it comes to precious metals like gold. The ability to retrieve historical data for Ahmedabad Gold (XAU-AHME) is made seamless through the Metals-API. This powerful API not only provides real-time exchange rates but also offers a plethora of features that empower developers to create innovative applications and solutions in the realm of precious metals trading.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. In recent years, the digital transformation in precious metals has revolutionized how traders and investors interact with this timeless commodity. The integration of data analytics and market insights has enabled stakeholders to make informed decisions based on real-time data. With the rise of technology in trading, the innovation in price discovery has become more sophisticated, allowing for more accurate valuations of gold.
Moreover, digital asset solutions have emerged, allowing for the tokenization of gold, making it accessible to a broader audience. The Metals-API Documentation provides comprehensive guidance on how to leverage these advancements to retrieve historical prices and integrate them into your applications.
API Description
The Metals-API is a robust platform that provides developers with the tools necessary to access real-time and historical data for various metals, including gold. This API is designed with innovation and technological advancement in mind, enabling users to build next-generation applications that can analyze market trends, track price fluctuations, and convert currencies with ease.
With the Metals-API, developers can harness the transformative potential of real-time metals data. The API's capabilities include fetching the latest rates, accessing historical data, and even tracking fluctuations over time. This empowers developers to create applications that can provide market insights, automate trading strategies, and enhance decision-making processes.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific needs in the realm of metals trading. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market conditions.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a date (YYYY-MM-DD) to the endpoint, users can query the Metals-API for historical rates, enabling them to analyze past trends and make informed decisions.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that can convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: This feature enables users to retrieve information about gold rates by carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access detailed OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your API Key is the unique key that is passed into the API base URL's access_key parameter, ensuring secure access to the API's features.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities tailored to meet the diverse needs of developers.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring that users have access to the latest market data.
List of Symbols
The 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 specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1784506354,
"base": "USD",
"date": "2026-07-20",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1784419954,
"base": "USD",
"date": "2026-07-19",
"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-07-13",
"end_date": "2026-07-20",
"base": "USD",
"rates": {
"2026-07-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-20": {
"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": 1784506354,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-13",
"end_date": "2026-07-20",
"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) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1784506354,
"base": "USD",
"date": "2026-07-20",
"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": 1784506354,
"base": "USD",
"date": "2026-07-20",
"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
In conclusion, the Metals-API provides a comprehensive suite of tools for developers looking to access historical data for Ahmedabad Gold (XAU-AHME) and other precious metals. With features like real-time rates, historical data access, and detailed fluctuation tracking, this API empowers users to make informed decisions based on accurate market data. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies and provide valuable insights into the precious metals market.
For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. The Metals-API Website is also a valuable resource for understanding the full potential of this powerful API.