Get Madurai Gold 22k (MADU-22k) Price Trends over the Last Year using this API

Get Madurai Gold 22k (MADU-22k) Price Trends over the Last Year using this API
In the ever-evolving landscape of precious metals trading, understanding the price trends of gold, particularly Madurai Gold 22k (MADU-22k), is crucial for investors and traders alike. With the advent of digital transformation, the way we access and analyze historical prices has undergone a significant change. The Metals-API provides a powerful solution for developers looking to harness real-time data analytics and market insights to make informed decisions. In this blog post, we will explore how to obtain historical prices for gold using the Metals-API, focusing on its innovative features and capabilities.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and stability. Its value is influenced by various factors, including economic conditions, geopolitical events, and market sentiment. In recent years, the digital transformation in precious metals trading has opened new avenues for investors. The integration of technology in trading has led to enhanced price discovery mechanisms, allowing for more accurate and timely information.
Data analytics plays a pivotal role in understanding market trends. By leveraging advanced analytics, traders can gain insights into price movements, identify patterns, and make data-driven decisions. The Metals-API empowers developers to build applications that provide real-time insights into gold prices, enabling them to stay ahead in a competitive market.
API Description
The Metals-API is a comprehensive solution for accessing metals prices and currency conversion data. It offers a wide range of endpoints that allow developers to retrieve real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API is designed with innovation in mind, providing developers with the tools they need to create next-generation applications that can analyze and visualize metals data.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on how to implement the API in your projects.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality. Here are some of the most notable endpoints:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. It allows developers to access the most current prices for gold and other metals.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data, enabling them to analyze trends over time.
- 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 pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two specified dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is essential for jewelers and those dealing in gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest prices of metals over a specified period, helping traders identify key price levels.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data retrieval.
- Available Endpoints: The Metals-API features a constantly updated endpoint that returns all available currencies, making it easy for developers to stay informed.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Users can access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of JSON responses for various endpoints, which illustrate the structure and data provided by the API.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1750834816,
"base": "USD",
"date": "2025-06-25",
"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"
}
The response above indicates that the request was successful and provides the latest exchange rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1750748416,
"base": "USD",
"date": "2025-06-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for gold and other metals for a specific date, allowing users to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-18",
"end_date": "2025-06-25",
"base": "USD",
"rates": {
"2025-06-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily historical rates for the specified date range, enabling users to visualize trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1750834816,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert an amount from USD to gold (XAU), providing both the conversion rate and the result.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-18",
"end_date": "2025-06-25",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1750834816,
"base": "USD",
"date": "2025-06-25",
"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 response provides the open, high, low, and close prices for gold and other metals, which are critical for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1750834816,
"base": "USD",
"date": "2025-06-25",
"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"
}
The bid/ask endpoint provides essential information about market liquidity, allowing traders to make informed decisions based on current market conditions.
Conclusion
In conclusion, the Metals-API offers a robust and innovative solution for accessing historical prices and real-time data for gold and other precious metals. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends, enabling traders to make informed decisions. The ability to access historical rates, track fluctuations, and convert between currencies makes the Metals-API an essential tool for anyone involved in the precious metals market.
For further exploration of the API's capabilities, visit the Metals-API Documentation and check the Metals-API Supported Symbols for a comprehensive list of available metals. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data analytics with the Metals-API.