Fetch Madurai Gold 18k (MADU-18k) Historical Prices with this API
Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders alike, the ability to fetch historical prices of Madurai Gold 18k (MADU-18k) can provide valuable insights into market trends and price movements. This blog post will explore how to retrieve historical prices using the Metals-API, a powerful tool that offers real-time and historical data on various metals, including gold.
Metals-API Information
About Gold (XAU)
Gold has been a symbol of wealth and prosperity for centuries. Its value is not only derived from its physical properties but also from its role as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in precious metals trading has revolutionized how investors access and analyze market data. With the integration of data analytics and technology, traders can now gain deeper insights into market trends and make more informed decisions.
The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to build next-generation applications that leverage real-time metals data. By utilizing this API, developers can create innovative solutions that enhance price discovery and offer digital asset solutions tailored to the needs of modern investors.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data. It empowers developers to integrate real-time and historical data into their applications seamlessly. The API supports various endpoints that cater to different data needs, including the latest rates, historical rates, and conversion functionalities.
With the Metals-API, developers can access a wealth of information that can be utilized for market analysis, trading strategies, and investment decisions. The API's capabilities extend beyond simple data retrieval; it allows for advanced data analytics and insights that can drive better trading outcomes.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This endpoint is essential for traders who need to stay updated on the current market conditions.
{
"success": true,
"timestamp": 1763863429,
"base": "USD",
"date": "2025-11-23",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This feature is particularly useful for analyzing past market trends and making predictions based on historical data. By appending a specific date to the API request, developers can retrieve the historical rates for gold and other metals.
{
"success": true,
"timestamp": 1763777029,
"base": "USD",
"date": "2025-11-22",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute buy or sell orders at the best possible prices.
{
"success": true,
"timestamp": 1763863429,
"base": "USD",
"date": "2025-11-23",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1763863429,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth market analysis and understanding price movements over time.
{
"success": true,
"timeseries": true,
"start_date": "2025-11-16",
"end_date": "2025-11-23",
"base": "USD",
"rates": {
"2025-11-16": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-11-18": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-11-23": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is essential for traders looking to understand market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-16",
"end_date": "2025-11-23",
"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) Price Endpoint
The OHLC Price Endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and helps traders identify potential entry and exit points.
{
"success": true,
"timestamp": 1763863429,
"base": "USD",
"date": "2025-11-23",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This feature is useful for traders looking to identify price extremes and make strategic decisions based on historical data.
{
"success": true,
"timestamp": 1763863429,
"base": "USD",
"date": "2025-11-23",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is particularly beneficial for traders focused on industrial metals and their historical performance.
{
"success": true,
"timestamp": 1763777029,
"base": "USD",
"date": "2025-11-22",
"rates": {
"XCU": 0.294118,
"XAL": 0.434783
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is the unique key that is passed into the API base URL's access_key parameter to authenticate your requests. All exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency across the data provided.
Available Endpoints
The Metals-API offers a total of 14 API endpoints, each providing different functionalities tailored to the needs of developers and traders. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
Conclusion
In conclusion, the Metals-API provides a comprehensive suite of tools for developers and traders looking to access real-time and historical data on precious metals, including gold. By leveraging the various endpoints available, users can gain valuable insights into market trends, make informed trading decisions, and enhance their overall trading strategies. Whether you are interested in the latest rates, historical data, or advanced analytics, the Metals-API is an invaluable resource for anyone involved in the precious metals market.
For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.