Access Mumbai Gold (XAU-MUMB) - Per Ounce Historical Prices via this API

Access Mumbai Gold (XAU-MUMB) - Per Ounce Historical Prices via this API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for gold (XAU) is paramount for investors, traders, and developers alike. The Metals-API provides a robust solution for obtaining real-time and historical data on gold prices, including the specific rates for Mumbai (XAU-MUMB). This blog post delves into the intricacies of the Metals-API, exploring its capabilities, features, and how developers can leverage it to build innovative applications that harness the power of real-time metals data.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. As digital transformation sweeps across various sectors, the precious metals market is no exception. The integration of technology in trading has revolutionized how investors access and analyze gold prices. With the rise of data analytics, market insights derived from historical price trends can inform trading strategies and investment decisions.
Moreover, the innovation in price discovery mechanisms has allowed for more transparent and efficient trading environments. Digital asset solutions are emerging, enabling investors to trade gold in various forms, including digital tokens backed by physical gold. This transformation is supported by APIs like Metals-API, which provide seamless access to real-time and historical data, empowering developers to create next-generation applications.
API Description
The Metals-API is a powerful tool designed to provide developers with comprehensive access to metals pricing data. It offers a range of endpoints that facilitate the retrieval of real-time and historical prices, enabling users to build applications that can analyze market trends, perform currency conversions, and track fluctuations in metal prices.
One of the standout features of the Metals-API is its ability to deliver real-time data updates, allowing users to stay informed about market movements. This capability is crucial for traders who rely on timely information to make informed decisions. The API also supports a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019.
For developers looking to integrate this API into their applications, the Metals-API Documentation provides detailed guidance on how to utilize its features effectively. The documentation covers everything from authentication to endpoint usage, ensuring that developers have the resources they need to succeed.
Key Features and Endpoints
The Metals-API offers a plethora of endpoints, each designed to serve specific functionalities. Hereβs a closer look at some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for traders who need to monitor price changes closely.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. Understanding the spread between these prices is crucial for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This feature simplifies transactions and calculations for traders dealing in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice. This endpoint is particularly useful for analyzing price trends over specific periods.
- Fluctuation Endpoint: This endpoint provides insights into how metal prices fluctuate on a day-to-day basis, allowing users to track changes and make informed decisions based on market volatility.
- 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 to get the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, 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 market trends over time.
- API Key: The API requires a unique key passed into the base URL's access_key parameter for authentication, ensuring secure access to the data.
- API Response: All exchange rates delivered by the Metals-API are relative to USD by default, with data returned in a structured JSON format for easy integration.
- Available Endpoints: The API comes with a constantly updated endpoint that returns all available currencies, 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 and trends.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1749258081,
"base": "USD",
"date": "2025-06-07",
"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 latest gold price (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1749171681,
"base": "USD",
"date": "2025-06-06",
"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 performance and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-31",
"end_date": "2025-06-07",
"base": "USD",
"rates": {
"2025-05-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-07": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates over a specified period, enabling users to visualize trends and fluctuations in gold prices.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1749258081,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how the conversion endpoint works, allowing users to convert a specified amount of USD into gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-31",
"end_date": "2025-06-07",
"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 tracks fluctuations in metal prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1749258081,
"base": "USD",
"date": "2025-06-07",
"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 critical data for traders, allowing them to analyze price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1749258081,
"base": "USD",
"date": "2025-06-07",
"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 endpoint provides current bid and ask prices, which are essential for traders looking to execute buy and sell orders effectively.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to access comprehensive data on gold and other precious metals. With its extensive range of endpoints, the API empowers users to retrieve real-time and historical pricing data, analyze market trends, and make informed trading decisions. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance the trading experience and provide users with the insights they need to navigate the complexities of the metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation for detailed guidance on implementation and usage. Additionally, explore the Metals-API Supported Symbols page to familiarize yourself with the various metal symbols available for querying. Whether you are a seasoned trader or a developer looking to integrate metals data into your applications, the Metals-API offers the tools and resources necessary to succeed in the dynamic world of precious metals trading.