Obtain Madurai Gold 22k (MADU-22k) prices via this API
Introduction
In the world of precious metals trading, obtaining accurate and real-time 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 looking to access the latest gold prices, the Metals-API offers a powerful solution. This blog post will delve into the capabilities of the Metals-API, focusing on how it can be utilized to obtain Madurai Gold 22k (MADU-22k) prices and other essential market insights.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals has revolutionized how traders and investors access market data. The integration of data analytics and technology in trading has enabled more precise price discovery and innovative digital asset solutions. With the rise of cryptocurrencies and blockchain technology, gold is now being viewed not just as a physical asset but also as a digital one, further enhancing its appeal in the financial markets.
The Metals-API plays a pivotal role in this transformation by providing real-time access to gold prices and other metal data. By leveraging advanced technology, developers can create applications that offer market insights, track price fluctuations, and analyze historical data, all of which are essential for making informed trading decisions.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. With its robust infrastructure, the API provides access to a wide range of endpoints that deliver various functionalities, including the latest rates, historical data, and conversion capabilities.
One of the key features of the Metals-API is its ability to provide real-time exchange rate data updated at different intervals based on the user's subscription plan. This flexibility allows developers to tailor their applications to meet specific needs, whether they require minute-by-minute updates or daily summaries.
Key Features and Endpoints
The Metals-API offers a comprehensive suite of endpoints that cater to various trading and analytical needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals. Depending on your subscription plan, the API can return updates every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This feature is invaluable for traders looking to analyze past performance and trends.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: Easily 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, providing insights into price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, helping traders understand volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range.
- Open/High/Low/Close (OHLC) Price Endpoint: Access 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 traders focused on industrial metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: With 14 different endpoints, the Metals-API provides a wide range of functionalities to meet diverse user needs.
- 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 trends.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
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 JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1774570215,
"base": "USD",
"date": "2026-03-27",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1774483815,
"base": "USD",
"date": "2026-03-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"base": "USD",
"rates": {
"2026-03-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1774570215,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1774570215,
"base": "USD",
"date": "2026-03-27",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1774570215,
"base": "USD",
"date": "2026-03-27",
"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"
}
Conclusion
The Metals-API is an invaluable tool for developers and traders looking to access real-time data on precious metals, including gold. By utilizing its various endpoints, users can obtain the latest rates, historical data, and even track fluctuations over time. The API's capabilities empower developers to create innovative applications that enhance trading strategies and market analysis.
For more information on how to integrate the Metals-API into your applications, refer to the Metals-API Documentation. To explore the full range of supported symbols, visit the Metals-API Supported Symbols page. With the right tools and data, you can navigate the precious metals market with confidence and precision.