Query Mumbai Gold (XAU-MUMB) Historical Prices utilizing this API

Query Mumbai Gold (XAU-MUMB) Historical Prices Utilizing Metals-API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices is crucial for investors, analysts, and developers alike. This blog post delves into the intricacies of querying historical prices for Gold (XAU) in Mumbai using the Metals-API. We will explore the transformative potential of this API, its innovative features, and how it empowers developers to create next-generation applications that leverage real-time metals data.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment strategy. As digital transformation sweeps across financial markets, the precious metals sector is not left behind. The integration of data analytics and technology into trading practices has revolutionized how investors approach gold trading. With the rise of digital asset solutions, traders can now access a wealth of market insights that were previously unavailable.
Data analytics plays a pivotal role in understanding market trends and making informed decisions. By utilizing advanced algorithms and machine learning techniques, traders can analyze historical price movements, identify patterns, and predict future price fluctuations. This capability is particularly important in the volatile world of gold trading, where prices can change rapidly due to various factors, including geopolitical events, economic indicators, and market sentiment.
Moreover, the integration of technology in trading platforms has enhanced the price discovery process. Real-time data feeds, powered by APIs like Metals-API, allow traders to access the latest market information and execute trades with precision. This innovation not only improves efficiency but also provides a competitive edge in the market.
Metals-API Overview
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data for various metals, including gold. This API is built with a focus on innovation and technological advancement, enabling users to harness the full potential of metals data. With a comprehensive set of endpoints, Metals-API allows developers to create applications that can track prices, analyze trends, and convert currencies seamlessly.
One of the standout features of Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can provide updates every 60 minutes or even every 10 minutes, ensuring that users have access to the most current information. This capability is essential for traders who need to make quick decisions based on market movements.
Key Features and Endpoints
Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals. Users can retrieve the latest rates for XAU and other metals, allowing them to stay informed about market conditions.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for XAU, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The API includes a currency conversion feature that allows users to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint enables users to query daily historical rates between two specified dates. It is ideal for analyzing price movements over a defined period.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis. This feature provides insights into market volatility and helps traders make informed decisions.
- Carat Endpoint: This endpoint allows users to retrieve gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, helping them identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This feature provides open, high, low, and close prices for a specific date, offering a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of Metals-API, let's explore some example responses for key endpoints.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1753585263,
"base": "USD",
"date": "2025-07-27",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response provides the latest exchange rates for various metals, including gold (XAU). The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1753498863,
"base": "USD",
"date": "2025-07-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example illustrates how to access historical rates for a specific date. Developers can use this data to analyze past performance and make informed predictions about future price movements.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-20",
"end_date": "2025-07-27",
"base": "USD",
"rates": {
"2025-07-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve exchange rates for a specific period, providing valuable insights into price trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1753585263,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates the conversion of an amount from USD to gold (XAU). The result indicates how many troy ounces of gold can be purchased with the specified amount.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-20",
"end_date": "2025-07-27",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, helping traders understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1753585263,
"base": "USD",
"date": "2025-07-27",
"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"
}
This endpoint provides a comprehensive view of the market's performance for a specific date, including the opening, highest, lowest, and closing prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1753585263,
"base": "USD",
"date": "2025-07-27",
"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"
}
The bid/ask endpoint provides crucial information for traders, allowing them to understand the current market conditions and make informed trading decisions.
Conclusion
In conclusion, querying historical prices for Gold (XAU) in Mumbai using the Metals-API opens up a world of possibilities for traders and developers. The API's innovative features, including real-time data access, historical rates, and advanced analytics capabilities, empower users to make informed decisions in a dynamic market environment. By leveraging the power of data analytics and technology integration, traders can enhance their strategies and optimize their trading practices.
For developers looking to implement these features, the Metals-API Documentation provides comprehensive guidance on how to utilize the various endpoints effectively. Additionally, the Metals-API Supported Symbols page offers a complete list of available metal symbols, ensuring that users have access to the latest information.
As the precious metals market continues to evolve, staying informed and leveraging advanced tools like Metals-API will be essential for success. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data to enhance your trading strategies.