How to get Malappuram Gold 24k (MALA-24k) prices through API calls
Introduction
In the rapidly evolving landscape of precious metals trading, obtaining accurate and timely data is crucial for investors and developers alike. One of the most sought-after metals is gold, represented by the symbol XAU. For those looking to access real-time gold prices, including the Malappuram Gold 24k (MALA-24k) rates, leveraging an API can significantly enhance the trading experience. In this blog post, we will delve into the capabilities of the Metals-API, exploring how it provides developers with the tools necessary to access gold prices and other metal data efficiently.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a critical asset in financial markets. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology, traders can now access real-time data, allowing for innovation in price discovery and trading strategies. The Metals-API stands at the forefront of this transformation, providing developers with the ability to build next-generation applications that can analyze and respond to market changes in real-time.
API Description
The Metals-API is designed to deliver comprehensive and real-time data on various metals, including gold, silver, platinum, and palladium. This API empowers developers to create applications that can track market trends, analyze historical data, and convert between different metal values. The transformative potential of real-time metals data cannot be overstated, as it allows for informed decision-making and strategic trading.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each tailored to meet specific needs in the realm of metal trading. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that traders have access to 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 date to the API call, users can retrieve past prices, allowing for in-depth market analysis.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, enabling trend analysis over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and consumers alike.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, useful for long-term market studies.
- API Key: Each user is assigned a unique API key, which must be included in API requests to authenticate access.
- API Response: The exchange rates delivered by the Metals-API are relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them 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 interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1771978371,
"base": "USD",
"date": "2026-02-25",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1771891971,
"base": "USD",
"date": "2026-02-24",
"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-02-18",
"end_date": "2026-02-25",
"base": "USD",
"rates": {
"2026-02-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-25": {
"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": 1771978371,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-18",
"end_date": "2026-02-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1771978371,
"base": "USD",
"date": "2026-02-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1771978371,
"base": "USD",
"date": "2026-02-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"
}
Conclusion
In conclusion, the Metals-API provides a robust and comprehensive solution for accessing real-time and historical data on precious metals, including gold. By leveraging its various endpoints, developers can create innovative applications that enhance trading strategies and market analysis. The ability to access features such as the latest rates, historical data, and bid/ask prices empowers users to make informed decisions in a dynamic market environment. For more information on how to integrate this powerful API into your applications, visit the Metals-API Documentation and explore the extensive capabilities it offers. Whether you are a seasoned trader or a developer looking to build cutting-edge financial applications, the Metals-API is an invaluable resource in the world of precious metals trading.