Access Pricing History of Mumbai Gold 18k (MUMB-18k) through this API
Access Pricing History of Mumbai Gold 18k (MUMB-18k) through this API
In the ever-evolving landscape of precious metals trading, the demand for accurate and real-time data has never been more critical. Gold, particularly 18k gold, is a significant player in the market, and understanding its pricing history is essential for investors, traders, and developers alike. The Metals-API provides a robust solution for accessing historical prices and real-time data for gold and other metals, enabling developers to create innovative applications that leverage this information. In this blog post, we will explore the capabilities of the Metals-API, focusing on how to access the historical prices of Mumbai Gold 18k (MUMB-18k) and the transformative potential of real-time metals data.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. With the rise of digital transformation in the precious metals market, the integration of technology and data analytics has opened new avenues for market insights and trading strategies. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to access and analyze gold prices in real-time.
As the market for digital assets continues to grow, the need for accurate price discovery becomes paramount. The Metals-API empowers developers to build next-generation applications that can analyze historical data, track price fluctuations, and provide insights into market trends. By leveraging the API's capabilities, developers can create solutions that enhance trading strategies, optimize investment decisions, and improve overall market efficiency.
API Description
The Metals-API is a powerful JSON API that provides access to real-time and historical metals data. It allows developers to retrieve exchange rates, historical prices, and other relevant information for various metals, including gold (XAU). The API is designed with innovation and technological advancement in mind, making it an essential tool for anyone looking to integrate metals data into their applications.
For more information on the API's capabilities, visit the Metals-API Website or check out the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to access the data they require efficiently. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: 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, making it easy to analyze past performance.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This feature enables users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price trends over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, allowing for better understanding of market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, providing a comprehensive view of market activity.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate access.
- API Response: Exchange rates are delivered relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers looking to leverage its capabilities. Below are examples of various endpoints, including their purpose, expected responses, and explanations of each field.
Latest Rates Endpoint
This endpoint provides real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1778285627,
"base": "USD",
"date": "2026-05-09",
"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:
- success: Indicates whether the request was successful.
- timestamp: The time at which the data was retrieved.
- base: The base currency for the exchange rates (USD in this case).
- date: The date for which the rates are applicable.
- rates: An object containing the exchange rates for various metals.
- unit: The unit of measurement for the rates (per troy ounce).
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1778199227,
"base": "USD",
"date": "2026-05-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
In this response:
- date: The specific date for which historical rates are provided.
- rates: Contains the exchange rates for the specified date.
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-02",
"end_date": "2026-05-09",
"base": "USD",
"rates": {
"2026-05-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
In this response:
- start_date and end_date: Define the range for the time series data.
- rates: An object containing the exchange rates for each date within the specified range.
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778285627,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this response:
- query: Contains the parameters used for the conversion request.
- result: The converted amount based on the specified rate.
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-02",
"end_date": "2026-05-09",
"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"
}
In this response:
- change: The absolute change in rate over the specified period.
- change_pct: The percentage change in rate over the specified period.
- start_rate and end_rate: The rates at the beginning and end of the specified period.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1778285627,
"base": "USD",
"date": "2026-05-09",
"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"
}
In this response:
- open, high, low, and close: Provide a comprehensive view of market activity for the specified date.
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1778285627,
"base": "USD",
"date": "2026-05-09",
"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"
}
In this response:
- bid: The current bid price for the metal.
- ask: The current ask price for the metal.
- spread: The difference between the bid and ask prices, indicating market liquidity.
Conclusion
Accessing the historical pricing data of Mumbai Gold 18k (MUMB-18k) through the Metals-API is a powerful way to enhance trading strategies and investment decisions. With its extensive range of endpoints, the Metals-API provides developers with the tools necessary to build applications that can analyze market trends, track price fluctuations, and convert between different metals and currencies.
By leveraging the capabilities of the Metals-API, developers can create innovative solutions that not only improve market efficiency but also empower users with the insights they need to make informed decisions. Whether you are looking to access real-time data, historical prices, or market news, the Metals-API is an invaluable resource for anyone involved in the precious metals market.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols. With the right tools and data at your fingertips, the potential for innovation in the precious metals market is limitless.