How to Use API to Get Mumbai Gold 24k (MUMB-24k) Historical Prices
Introduction
In the world of finance and investment, gold has always held a significant place, particularly in the form of 24-karat gold, known as MUMB-24k in the Indian market. With the rise of digital transformation, accessing historical prices for gold has become easier than ever, thanks to the Metals-API. This powerful tool provides developers with the ability to retrieve real-time and historical data on gold prices, enabling them to create innovative applications and insights into market trends. In this blog post, we will explore how to effectively use the Metals-API to obtain historical prices for Mumbai Gold 24k (MUMB-24k) and delve into the various features and capabilities of the API.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is a precious metal that has been a store of value for centuries. In recent years, the digital transformation in precious metals trading has opened new avenues for investors and developers alike. The integration of data analytics and market insights into trading platforms has revolutionized how gold is traded and valued. With the advent of technology, price discovery has become more efficient, allowing for real-time updates and historical data analysis.
The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to harness the power of real-time metals data. By leveraging this API, developers can build next-generation applications that offer innovative solutions for tracking gold prices, analyzing market trends, and making informed investment decisions.
API Description
The Metals-API is a robust JSON API that provides access to a wide range of functionalities related to metals prices and currency conversion. With its focus on innovation and technological advancement, the API empowers developers to create applications that can access real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API's capabilities include retrieving the latest rates, historical prices, bid and ask prices, and much more.
For more detailed information, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on how to implement the API effectively.
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: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that users have access to the most current market data.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the Metals-API for historical rates, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint that allows users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders who need to assess the value of their holdings in different currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, facilitating the analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, allowing users to track volatility and make informed trading decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold in different purities.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain OHLC data for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of industrial metals.
- 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 interpretation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities for users.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Intraday Endpoint: Users can query intraday exchange rate data for a single symbol, which is particularly useful for day traders.
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.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for developers. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
This endpoint retrieves real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1788221524,
"base": "USD",
"date": "2026-09-01",
"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"
}
In this response, the success field indicates whether the request was successful. The timestamp provides the time of the request, while the base indicates the currency used for the rates. The rates object contains the exchange rates for various metals, with XAU representing gold.
Historical Rates Endpoint
This endpoint allows access to historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1788135124,
"base": "USD",
"date": "2026-08-31",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
The historical rates response includes similar fields as the latest rates, with the date field indicating the specific date for which the rates are provided.
Time-series Endpoint
This endpoint retrieves exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-25",
"end_date": "2026-09-01",
"base": "USD",
"rates": {
"2026-08-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-01": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between two specified dates, allowing for detailed analysis of price movements over time.
Convert Endpoint
This endpoint allows for the conversion of any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788221524,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The conversion response includes the original query parameters, the conversion rate, and the final result, which indicates how much of the target metal can be obtained for the specified amount.
Fluctuation Endpoint
This endpoint tracks rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-25",
"end_date": "2026-09-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"
}
This response provides detailed information about the fluctuations in rates over the specified period, including the percentage change, which is crucial for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Endpoint
This endpoint retrieves OHLC data for a specific time period.
{
"success": true,
"timestamp": 1788221524,
"base": "USD",
"date": "2026-09-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"
}
The OHLC response provides a comprehensive view of the price action for each metal over the specified period, essential for technical analysis.
Bid/Ask Endpoint
This endpoint retrieves current bid and ask prices for metals.
{
"success": true,
"timestamp": 1788221524,
"base": "USD",
"date": "2026-09-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"
}
This response provides the bid and ask prices, along with the spread, which is critical for traders looking to make informed decisions based on market liquidity.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of features that empower developers to access real-time and historical data for gold and other metals. By utilizing the various endpoints, developers can create applications that provide valuable insights into market trends, price fluctuations, and investment opportunities. The ability to retrieve historical prices for Mumbai Gold 24k (MUMB-24k) is particularly beneficial for traders and investors looking to analyze past performance and make informed decisions.
For those interested in exploring the capabilities of the Metals-API further, resources such as the Metals-API Documentation and the Metals-API Supported Symbols page provide essential information for implementation. Additionally, the Metals-API Website serves as a hub for accessing the API and understanding its functionalities.
As the digital landscape continues to evolve, the Metals-API stands as a vital tool for developers seeking to innovate in the realm of precious metals trading and analysis.