Get Mumbai Gold (XAU-MUMB) prices using this API

Get Mumbai Gold (XAU-MUMB) Prices Using This API
In the ever-evolving landscape of financial technology, the demand for real-time data has never been more critical, especially in the precious metals market. The ability to access accurate and timely information about gold prices, such as the Mumbai Gold (XAU-MUMB) rates, is essential for traders, investors, and developers alike. This blog post explores the capabilities of the Metals-API, which provides comprehensive data on gold and other metals, and how it can be leveraged to enhance trading strategies and market insights.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As a digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is reshaping how investors interact with the market. The rise of data analytics and market insights has empowered traders to make informed decisions based on real-time data, rather than relying solely on historical trends.
With the advent of digital asset solutions, gold is no longer just a physical commodity; it has become a digital asset that can be traded and analyzed through advanced technological platforms. The innovation in price discovery mechanisms allows traders to access gold prices instantly, enabling them to capitalize on market fluctuations effectively.
Understanding the Metals-API
The Metals-API is a powerful tool designed to provide developers with real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API is particularly beneficial for those looking to build next-generation applications that require accurate metals pricing data. By utilizing the Metals-API, developers can create applications that offer users insights into market trends, price fluctuations, and historical data analysis.
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 the latest rates updated every 60 minutes, every 10 minutes, or even more frequently. This flexibility allows developers to tailor their applications to meet the specific needs of their users.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals. For instance, a request to this endpoint might return the current price of gold in USD, allowing traders to make quick decisions based on the latest market data.
- Historical Rates Endpoint: Access to historical rates dating back to 2019 enables users to analyze trends over time. This feature is crucial for traders who rely on historical data to forecast future price movements.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and helping traders make informed decisions.
- Convert Endpoint: The ability to convert any amount from one metal to another or to/from USD is invaluable for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates, facilitating in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: Users can track rate fluctuations between two dates, which is essential for understanding market volatility and making strategic trading decisions.
- Carat Endpoint: This feature provides information about gold rates by carat, catering to jewelers and consumers interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price of gold over a specified period, aiding in price analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific time period, which is critical for technical analysis.
- Historical LME Endpoint: Access to historical rates for LME symbols dating back to 2008 provides additional context for traders interested in market trends.
- API Key: Each user receives 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 currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold price in India, catering specifically to the Indian market.
- News Endpoint: Users can 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 the Metals-API, let's explore some example responses from key endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1746684016,
"base": "USD",
"date": "2025-05-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"
}
This response indicates that the current price of gold (XAU) is 0.000482 per troy ounce, providing traders with immediate access to market data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746597616,
"base": "USD",
"date": "2025-05-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for gold and other metals, allowing users to analyze past price movements and trends.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-01",
"end_date": "2025-05-08",
"base": "USD",
"rates": {
"2025-05-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, enabling users to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746684016,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates the conversion of USD to gold, showing that $1000 is equivalent to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-01",
"end_date": "2025-05-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 response provides insights into how gold and other metals fluctuated over a specified period, which is crucial for traders looking to understand market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1746684016,
"base": "USD",
"date": "2025-05-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"
}
This endpoint provides critical data for traders, showing the opening, highest, lowest, and closing prices for gold and other metals, which is essential for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1746684016,
"base": "USD",
"date": "2025-05-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"
}
This response provides the current bid and ask prices for gold, silver, and platinum, which are crucial for traders looking to execute trades at optimal prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to harness the power of real-time metals data. With its extensive range of endpoints and capabilities, the API empowers users to build sophisticated applications that provide insights into market trends, price fluctuations, and historical data analysis. By leveraging the features of the Metals-API, developers can create tools that enhance trading strategies and improve decision-making processes.
For those interested in exploring the full capabilities of the Metals-API, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page for a comprehensive list of available metals and their specifications. As the financial landscape continues to evolve, staying informed and equipped with the right tools will be essential for success in the precious metals market.