Query Madurai Gold 22k (MADU-22k) Historical Prices through this API

Query Madurai Gold 22k (MADU-22k) Historical Prices through this API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices is crucial for investors, traders, and developers alike. One of the most sought-after metals is gold, particularly in the form of 22k gold, which is widely used in jewelry and investment in regions like Madurai, India. To facilitate the retrieval of historical prices for Madurai Gold 22k (MADU-22k), the Metals-API offers a robust and innovative solution. This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage its features to access historical gold prices and gain insights into market trends.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe-haven asset and a hedge against inflation. Its digital transformation has been accelerated by advancements in technology, allowing for real-time data analytics and market insights. The integration of technology in trading has revolutionized how investors approach the gold market, making it essential to have access to accurate and timely data.
With the rise of digital asset solutions, the demand for innovative price discovery mechanisms has increased. The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to build next-generation applications that can analyze historical price data, track fluctuations, and make informed trading decisions.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere data retrieval; it empowers developers to create applications that can analyze market trends, perform currency conversions, and track price fluctuations over time.
One of the key 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 ensures that users have access to the most current information, which is critical for making timely trading decisions.
For those interested in historical data, the Metals-API offers a Historical Rates Endpoint that allows users to query historical prices dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable insights into how gold prices have fluctuated over time.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, allowing users to stay updated on the latest market conditions.
- Historical Rates Endpoint: Users can access historical exchange rates for any date since 2019, making it easy to analyze past trends and make informed decisions.
- Bid And Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices, which are essential for understanding market dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different metals and currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, gaining insights into market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, which is particularly useful for jewelers and consumers.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those involved in industrial metals.
- API Key: Each user is assigned a unique API key, which is necessary for accessing the API's features securely.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers a total of 14 endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring users can access the data they need.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly relevant for local investors.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their corresponding responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1757163633,
"base": "USD",
"date": "2025-09-06",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
The response indicates that the latest rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1757077233,
"base": "USD",
"date": "2025-09-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical rates, showing the price of gold on a specific date.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-30",
"end_date": "2025-09-06",
"base": "USD",
"rates": {
"2025-08-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of gold prices, allowing users to analyze trends over a specific period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1757163633,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert amounts from one currency to another, providing a result of 0.482 troy ounces for 1000 USD.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-30",
"end_date": "2025-09-06",
"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 prices, providing insights into market volatility and trends.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1757163633,
"base": "USD",
"date": "2025-09-06",
"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 open, high, low, and close prices, which are essential for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1757163633,
"base": "USD",
"date": "2025-09-06",
"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 crucial for traders looking to execute orders at the best possible prices.
Conclusion
Accessing historical prices for Madurai Gold 22k (MADU-22k) is made seamless through the Metals-API. With its comprehensive set of features, including real-time data, historical rates, and various endpoints tailored for different needs, developers can build powerful applications that provide valuable insights into the gold market.
By leveraging the capabilities of the Metals-API, users can not only track gold prices but also analyze trends, perform conversions, and stay informed about market fluctuations. The API's extensive documentation, available at the Metals-API Documentation, provides developers with the guidance needed to implement these features effectively.
For a complete list of supported symbols, including gold and other metals, visit the Metals-API Supported Symbols page. The transformative potential of real-time metals data is at your fingertips, enabling you to make informed decisions in the dynamic world of precious metals trading.