Analyze Mumbai Gold (XAU-MUMB) Historical Prices with this API

Introduction
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 (XAU). Analyzing historical prices of Gold in Mumbai (XAU-MUMB) can provide valuable insights for traders, investors, and analysts alike. With the advent of APIs such as Metals-API, accessing this data has become more streamlined and efficient. This blog post will delve into the capabilities of Metals-API, exploring how it can be utilized to retrieve historical prices and other essential data related to Gold.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in precious metals trading has revolutionized how investors approach this asset class. With the integration of data analytics and market insights, traders can now leverage technology to make informed decisions based on real-time data.
Metals-API stands at the forefront of this transformation, offering developers the tools necessary to build next-generation applications that harness the power of real-time metals data. By utilizing this API, users can access a wealth of information, including historical prices, current market rates, and even fluctuations over time, all of which are crucial for effective price discovery and trading strategies.
API Description
The Metals-API Documentation provides comprehensive details on how to interact with the API, including authentication, available endpoints, and response formats. The API is designed to empower developers by providing them with the ability to access real-time and historical data for various metals, including Gold, Silver, Platinum, and Palladium.
One of the key features of Metals-API is its ability to deliver data in a structured JSON format, making it easy for developers to integrate this information into their applications. The API supports a wide range of functionalities, from retrieving the latest rates to accessing historical data dating back to 2019. This flexibility allows for a multitude of use cases, from simple price checks to complex data analysis.
Key Features and Endpoints
Metals-API offers a variety of endpoints, each designed to serve specific needs. Here are some of the most notable features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, updated according to your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently. This endpoint is crucial for traders who need to make quick decisions based on the most current market conditions.
{
"success": true,
"timestamp": 1761112837,
"base": "USD",
"date": "2025-10-22",
"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 trends over time, the Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve past rates, which is invaluable for conducting market analysis and understanding price movements.
{
"success": true,
"timestamp": 1761026437,
"base": "USD",
"date": "2025-10-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is particularly useful for analysts looking to identify trends and patterns in the price movements of Gold over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-10-15",
"end_date": "2025-10-22",
"base": "USD",
"rates": {
"2025-10-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint is a powerful feature that 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": 1761112837,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. By tracking rate changes between two dates, users can gain a better understanding of market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-15",
"end_date": "2025-10-22",
"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 retrieve the open, high, low, and close prices for a specific time period. This data is essential for traders who rely on candlestick patterns and other technical analysis tools to make trading decisions.
{
"success": true,
"timestamp": 1761112837,
"base": "USD",
"date": "2025-10-22",
"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, which is crucial for traders looking to execute buy or sell orders at the best possible prices.
{
"success": true,
"timestamp": 1761112837,
"base": "USD",
"date": "2025-10-22",
"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 specific 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 Gold and other precious metals. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends, price fluctuations, and trading opportunities. The ability to analyze historical data, track fluctuations, and convert between different metals empowers users to make informed decisions in a fast-paced market.
As the digital transformation in precious metals continues, APIs like Metals-API will play a crucial role in shaping the future of trading and investment strategies. For those looking to delve deeper into the world of metals trading, the Metals-API Documentation is an excellent starting point for understanding how to effectively utilize this powerful tool.