Get Mumbai Gold 24k (MUMB-24k) Historical Prices and integrate them into your financial models using this API

Get Mumbai Gold 24k (MUMB-24k) Historical Prices and Integrate Them into Your Financial Models Using This API
In the ever-evolving landscape of financial markets, the demand for accurate and real-time data has never been more critical. For investors and developers alike, having access to historical prices of precious metals like gold is essential for making informed decisions. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold (XAU) and integrate them into your financial models. We will explore the innovative features of the Metals-API, the technological advancements it offers, and how it can transform your approach to trading and investment.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially in times of economic uncertainty. Its value is influenced by various factors, including market demand, geopolitical events, and currency fluctuations. As digital transformation sweeps across the financial sector, the integration of data analytics and market insights into trading strategies has become paramount. The Metals-API provides a robust solution for accessing real-time and historical data on gold prices, enabling developers to create applications that leverage this information for better decision-making.
With the rise of technology integration in trading, the ability to access accurate and timely data is crucial. The Metals-API empowers developers to build next-generation applications that can analyze market trends, predict price movements, and optimize trading strategies. By utilizing the API, you can harness the power of innovation in price discovery and digital asset solutions, ensuring that you remain competitive in the fast-paced world of precious metals trading.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API offers a range of endpoints that allow users to retrieve the latest rates, historical prices, and other valuable information. By leveraging the capabilities of the Metals-API, developers can create applications that provide insights into market trends and facilitate informed trading decisions.
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 level of granularity ensures that you have access to the most current information, allowing you to react swiftly to market changes.
Additionally, the API provides access to historical rates dating back to 2019, enabling you to analyze price trends over time. By appending a specific date to your API request, you can retrieve historical data for gold prices, which can be invaluable for backtesting trading strategies and conducting market analysis.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. You can easily access the latest gold prices and other metal rates, allowing you to stay updated on market conditions.
- Historical Rates Endpoint: Access historical exchange rates for any date since 2019. This feature is particularly useful for analyzing past performance and identifying trends in gold prices.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert amounts between different metals or to/from USD. This feature simplifies the process of calculating values in various currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is ideal for conducting detailed analyses over specific time frames.
- Fluctuation Endpoint: Track how metal prices fluctuate between two dates. This feature provides insights into market volatility and can help inform trading strategies.
- Carat Endpoint: Retrieve information about gold rates by carat. This endpoint is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date range. This information can help you identify market extremes and potential trading opportunities.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period. This endpoint is essential for traders looking to analyze price movements and make informed decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This feature is beneficial for those interested in the London Metal Exchange.
- API Key: Your unique API key is required to access the Metals-API. This key is passed into the API base URL's access_key parameter, ensuring secure access to the data.
- API Response: The exchange rates delivered by the Metals-API are by default relative to USD. All data is returned in a structured JSON format, making it easy to integrate into your applications.
- Available Endpoints: The Metals-API comes with a comprehensive list of endpoints, each providing different functionalities. You can explore the full range of available endpoints in the Metals-API Documentation.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, ensuring you have access to the latest information on supported assets.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint. This feature is particularly useful for investors in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals. This endpoint provides valuable context for market movements and trends.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, let's explore some example responses for key endpoints.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751976027,
"base": "USD",
"date": "2025-07-08",
"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"
}
The response above indicates a successful request for the latest rates, with gold priced at 0.000482 per troy ounce. This information can be used to inform trading decisions and market analysis.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751889627,
"base": "USD",
"date": "2025-07-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example demonstrates how to access historical rates for a specific date. The ability to retrieve past prices is invaluable for backtesting trading strategies and analyzing market trends.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-01",
"end_date": "2025-07-08",
"base": "USD",
"rates": {
"2025-07-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows you to analyze price movements over a specified period. This data can be crucial for identifying trends and making informed trading decisions.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751976027,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint simplifies the process of converting amounts between different metals or currencies. In this example, 1000 USD is converted to 0.482 troy ounces of gold, providing a clear understanding of value in different contexts.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-01",
"end_date": "2025-07-08",
"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"
}
This endpoint provides insights into how prices fluctuate over time, allowing traders to gauge market volatility and make informed decisions based on historical data.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1751976027,
"base": "USD",
"date": "2025-07-08",
"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"
}
The OHLC endpoint provides a comprehensive view of price movements within a specific time frame, allowing traders to analyze market behavior and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751976027,
"base": "USD",
"date": "2025-07-08",
"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 essential information for traders looking to execute orders at the best possible prices. Understanding the spread between bid and ask prices is crucial for optimizing trading strategies.
Conclusion
The Metals-API is a powerful tool for developers seeking to integrate historical prices of gold and other precious metals into their financial models. By leveraging the API's extensive features, including real-time rates, historical data, and various endpoints, developers can create applications that provide valuable insights into market trends and facilitate informed trading decisions.
As the financial landscape continues to evolve, the importance of accurate and timely data cannot be overstated. The Metals-API empowers developers to harness the power of data analytics and technology integration, ensuring they remain competitive in the fast-paced world of precious metals trading. For more information on how to get started, refer to the Metals-API Documentation and explore the full range of available features.
To access the complete list of supported symbols, visit the Metals-API Supported Symbols page. Whether you are a seasoned trader or a developer looking to build innovative applications, the Metals-API offers the tools you need to succeed in the dynamic world of precious metals.