Instructions to Query Malappuram Gold 24k (MALA-24k) Historical Prices using this API
Instructions to Query Malappuram Gold 24k (MALA-24k) Historical Prices using this API
Gold, often referred to by its chemical symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic conditions. For developers and financial analysts, accessing accurate and real-time data on gold prices is crucial for making informed decisions. The Metals-API provides a robust solution for querying historical prices of gold, including specific regional prices such as Malappuram Gold 24k (MALA-24k). In this blog post, we will explore how to effectively use the Metals-API to retrieve historical gold prices, delve into the API's capabilities, and discuss its innovative features that empower developers to create next-generation applications.
About Gold (XAU)
Gold has undergone a digital transformation in recent years, with technology playing a pivotal role in trading and price discovery. The integration of data analytics and market insights has enabled traders to make more informed decisions based on real-time data. The Metals-API stands at the forefront of this transformation, offering developers access to comprehensive data on precious metals, including gold. By leveraging this API, developers can build applications that provide innovative digital asset solutions, enhancing the trading experience for users.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including gold. It empowers developers to create applications that can track price fluctuations, convert currencies, and analyze market trends. The API is designed with innovation and technological advancement in mind, allowing users to access data that can transform their approach to trading and investment. For more detailed information, you can visit the Metals-API Website or refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes or even every 10 minutes, ensuring you have the latest information at your fingertips.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve the price of gold for that date, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This feature enables you to retrieve real-time bid and ask prices for gold, which is essential for traders looking to make quick decisions based on market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion feature, allowing you to convert any amount from one currency to another, which is particularly useful for international transactions.
- Time-Series Endpoint: This endpoint allows you to query daily historical rates between two dates of your choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis, giving you insights into market volatility and trends.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the lowest and highest prices for gold on a specific date, providing valuable insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for gold, which is essential for traders who rely on technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring you have the most current information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
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 interpret the API responses is crucial for effective data utilization. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1775261877,
"base": "USD",
"date": "2026-04-04",
"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 above response indicates a successful query for the latest rates, with the base currency being USD. The rates for various metals, including gold (XAU), are provided per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1775175477,
"base": "USD",
"date": "2026-04-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for gold on a specific date, allowing users to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-28",
"end_date": "2026-04-04",
"base": "USD",
"rates": {
"2026-03-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, allowing for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1775261877,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another. In this case, it shows the conversion of 1000 USD to gold in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-28",
"end_date": "2026-04-04",
"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 the fluctuations in gold prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1775261877,
"base": "USD",
"date": "2026-04-04",
"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"
}
The OHLC data provides a comprehensive view of the price movements for gold, which is essential for traders who rely on technical analysis to make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1775261877,
"base": "USD",
"date": "2026-04-04",
"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 the current bid and ask prices for gold, which is critical for traders looking to execute buy or sell orders based on market conditions.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of features that enable developers to access real-time and historical data on gold prices, including specific regional prices like Malappuram Gold 24k (MALA-24k). By utilizing the various endpoints, developers can create applications that provide valuable insights into market trends, price fluctuations, and conversion capabilities. The API's innovative design and robust functionality make it an essential tool for anyone involved in trading or analyzing precious metals. For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. Embrace the power of real-time metals data and transform your trading strategies today!