How to Get Real-Time Mumbai Gold 24k (MUMB-24k) Prices and Historical Data with Metals-API

How to Get Real-Time Mumbai Gold 24k (MUMB-24k) Prices and Historical Data with Metals-API
In today's fast-paced financial landscape, accessing real-time market data is crucial for informed decision-making, especially in the precious metals sector. For developers and traders interested in gold, the Metals-API provides a powerful solution for obtaining real-time Mumbai Gold 24k (MUMB-24k) prices and historical data. This blog post will guide you through the process of accessing these valuable insights using the Metals-API, including step-by-step instructions and example API calls.
Understanding Metals-API
The Metals-API is a comprehensive JSON API that offers real-time and historical data for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). With its robust infrastructure, the API empowers developers to create innovative applications that leverage real-time market data, enabling better trading strategies and financial analysis.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its digital transformation is reshaping how traders and investors interact with this precious metal. The integration of data analytics and technology in trading has opened new avenues for market insights and price discovery. By utilizing the Metals-API, developers can harness the power of real-time data to build applications that provide users with up-to-date information on gold prices, trends, and fluctuations.
Accessing Real-Time Gold Prices
To access real-time gold prices, you will primarily use the Latest Rates Endpoint of the Metals-API. Depending on your subscription plan, this endpoint can return exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. The API response includes the current price of gold in various currencies, allowing you to tailor your application to specific user needs.
Example API Call for Latest Rates
To retrieve the latest gold prices, you would make a GET request to the following endpoint:
https://metals-api.com/api/latest?access_key=YOUR_API_KEY&base=USD&symbols=XAU
In this example, replace YOUR_API_KEY
with your actual API key. The response will look something like this:
{
"success": true,
"timestamp": 1760573137,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XAU": 0.000482
},
"unit": "per troy ounce"
}
This response indicates that the current price of gold (XAU) is 0.000482 troy ounces per USD.
Historical Gold Prices
For those interested in analyzing trends over time, the Historical Rates Endpoint allows you to access historical gold prices dating back to 2019. This feature is particularly useful for conducting market analysis and understanding price movements.
Example API Call for Historical Rates
To access historical rates, you would use the following endpoint:
https://metals-api.com/api/historical?access_key=YOUR_API_KEY&base=USD&symbols=XAU&date=YYYY-MM-DD
Replace YYYY-MM-DD
with the specific date you wish to query. The response will provide you with the historical price for that date:
{
"success": true,
"timestamp": 1760486737,
"base": "USD",
"date": "2025-10-15",
"rates": {
"XAU": 0.000485
},
"unit": "per troy ounce"
}
Time-Series Data
The Time-Series Endpoint is another powerful feature that allows you to query the API for daily historical rates between two dates of your choice. This is particularly useful for analyzing trends over specific periods.
Example API Call for Time-Series Data
To retrieve time-series data, you would use the following endpoint:
https://metals-api.com/api/timeseries?access_key=YOUR_API_KEY&base=USD&symbols=XAU&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
The response will include daily rates for the specified period:
{
"success": true,
"timeseries": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"2025-10-09": {
"XAU": 0.000485
},
"2025-10-10": {
"XAU": 0.000483
},
"2025-10-16": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Bid and Ask Prices
The Bid and Ask Endpoint is a powerful feature that enables you to retrieve real-time bid and ask prices for gold. This is essential for traders who need to make quick decisions based on the current market conditions.
Example API Call for Bid and Ask Prices
To access bid and ask prices, you would use the following endpoint:
https://metals-api.com/api/bid-ask?access_key=YOUR_API_KEY&base=USD&symbols=XAU
The response will provide you with the current bid and ask prices:
{
"success": true,
"timestamp": 1760573137,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Currency Conversion
The Convert Endpoint allows you to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who operate in multiple currencies.
Example API Call for Currency Conversion
To convert an amount, you would use the following endpoint:
https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=USD&to=XAU&amount=1000
The response will indicate the converted amount:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760573137,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Tracking
The Fluctuation Endpoint allows you to track rate fluctuations between two dates. This is essential for understanding market volatility and making informed trading decisions.
Example API Call for Fluctuation Tracking
To track fluctuations, you would use the following endpoint:
https://metals-api.com/api/fluctuation?access_key=YOUR_API_KEY&base=USD&symbols=XAU&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
The response will provide you with fluctuation data:
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Data
The Open/High/Low/Close (OHLC) Price Endpoint allows you to get OHLC data for a specific time period. This is particularly useful for traders who rely on candlestick charts for technical analysis.
Example API Call for OHLC Data
To access OHLC data, you would use the following endpoint:
https://metals-api.com/api/open-high-low-close?access_key=YOUR_API_KEY&base=USD&symbols=XAU&date=YYYY-MM-DD
The response will provide you with OHLC data:
{
"success": true,
"timestamp": 1760573137,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Security and Best Practices
When using the Metals-API, it is essential to follow best practices for security and performance. Always keep your API key confidential and avoid exposing it in client-side code. Implement rate limiting to prevent abuse and ensure that your application can handle the volume of requests without performance degradation.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time and historical gold prices, including Mumbai Gold 24k (MUMB-24k). By leveraging its various endpoints, you can create applications that provide users with valuable insights into the precious metals market. From real-time pricing to historical data analysis, the Metals-API offers a comprehensive solution for all your gold trading needs.
For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. Start building your application today and take advantage of the transformative potential of real-time metals data.