Get Mumbai Gold 18k (MUMB-18k) Historical Prices using this API
Introduction
In the dynamic 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, the ability to retrieve historical prices for 18k gold (MUMB-18k) can provide invaluable insights into market trends and price movements. This blog post will explore how to obtain historical prices using the Metals-API, a powerful tool designed for real-time metals data.
About Gold (XAU)
Gold has been a symbol of wealth and a standard for currency for centuries. In recent years, the digital transformation in precious metals trading has revolutionized how investors and traders access and analyze gold prices. With the advent of data analytics and market insights, traders can now leverage technology to make more informed decisions. The integration of advanced technologies in trading platforms has led to innovative price discovery methods, allowing users to track fluctuations in gold prices with unprecedented accuracy.
The rise of digital asset solutions has also made it easier for investors to diversify their portfolios. By utilizing APIs like Metals-API, developers can create applications that provide real-time data on gold prices, historical trends, and market analysis. This empowers users to make strategic decisions based on comprehensive data rather than relying solely on intuition or outdated information.
Metals-API Overview
The Metals-API is a robust platform that offers a wide range of features for accessing metals data. It provides developers with the tools necessary to build next-generation applications that require real-time and historical data on various metals, including gold, silver, platinum, and palladium. The API is designed to be user-friendly, with comprehensive documentation that guides developers through the integration process.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can return data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current market information, which is essential for making timely trading decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rates for all available metals. This endpoint is particularly useful for traders who need to monitor price changes throughout the day. The response includes the base currency, the date of the rates, and the current rates for various metals.
{
"success": true,
"timestamp": 1764561707,
"base": "USD",
"date": "2025-12-01",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This is particularly beneficial for analyzing trends over time and understanding how gold prices have fluctuated. By appending a specific date to the API request, developers can retrieve historical data that can be used for market analysis.
{
"success": true,
"timestamp": 1764475307,
"base": "USD",
"date": "2025-11-30",
"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 particularly useful for conducting in-depth analyses of price movements over specific periods, allowing traders to identify patterns and make predictions based on historical data.
{
"success": true,
"timeseries": true,
"start_date": "2025-11-24",
"end_date": "2025-12-01",
"base": "USD",
"rates": {
"2025-11-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-01": {
"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": 1764561707,
"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 feature is essential for traders who want to understand the volatility of gold prices and make informed decisions based on market trends.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-24",
"end_date": "2025-12-01",
"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 critical for traders who rely on candlestick charts and other technical analysis tools to make trading decisions.
{
"success": true,
"timestamp": 1764561707,
"base": "USD",
"date": "2025-12-01",
"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 essential for traders looking to execute trades at the best possible prices. Understanding the spread between the bid and ask prices can help traders make more informed decisions.
{
"success": true,
"timestamp": 1764561707,
"base": "USD",
"date": "2025-12-01",
"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"
}
Authentication and API Key
To access the Metals-API, users must obtain an API key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the data. It is important to keep this key secure and not expose it in public repositories or client-side code.
Performance Considerations
When working with the Metals-API, developers should consider performance optimization strategies, especially when dealing with large datasets or high-frequency requests. Implementing caching mechanisms can significantly reduce the number of API calls and improve application responsiveness. Additionally, understanding the rate limits associated with your subscription plan is crucial to avoid service interruptions.
Security Best Practices
Security is paramount when dealing with financial data. Developers should ensure that their applications are secure by following best practices such as using HTTPS for API requests, validating input data, and implementing proper error handling. Regularly rotating API keys and monitoring usage can also help mitigate potential security risks.
Conclusion
Accessing historical prices for 18k gold (MUMB-18k) using the Metals-API is a powerful way to gain insights into market trends and make informed trading decisions. With its comprehensive range of endpoints, including the Latest Rates, Historical Rates, and Time-Series endpoints, developers can build robust applications that leverage real-time and historical data. By integrating advanced features such as the Convert Endpoint and Fluctuation Endpoint, traders can enhance their strategies and optimize their trading performance.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. By harnessing the power of real-time metals data, developers can create innovative solutions that transform the way we trade precious metals.