Retrieve Malappuram Gold 24k (MALA-24k) pricing data using this API
Retrieve Malappuram Gold 24k (MALA-24k) Pricing Data Using Metals-API
In the ever-evolving landscape of precious metals trading, the demand for accurate and real-time data has never been more critical. Gold (XAU), a timeless asset, continues to be a focal point for investors and traders alike. With the advent of digital transformation in the financial sector, leveraging APIs like the Metals-API has become essential for obtaining up-to-date pricing information and market insights. This blog post delves into the capabilities of the Metals-API, focusing on how developers can harness its features to retrieve Gold pricing data, specifically for Malappuram Gold 24k (MALA-24k).
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its intrinsic value and historical significance make it a preferred choice for investors. The digital transformation in precious metals trading has introduced innovative solutions that enhance price discovery and market analytics. By integrating technology into trading practices, stakeholders can access real-time data, enabling informed decision-making.
The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. With a focus on data analytics and market insights, the API empowers users to stay ahead in a competitive environment.
API Description
The Metals-API is a powerful JSON API designed to deliver real-time and historical pricing data for various metals, including Gold (XAU). It offers a comprehensive suite of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019. The API's capabilities extend beyond mere data retrieval; it enables developers to create applications that can analyze trends, perform conversions, and track fluctuations over time.
For detailed documentation on how to implement the API, visit the Metals-API Documentation. Here, you will find comprehensive guides on each endpoint, including examples and best practices for integration.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to fulfill specific requirements. Below are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Gold and other metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for traders who need to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Access historical rates for Gold and other metals dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve past pricing data, which is essential for trend analysis and forecasting.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for Gold and other metals. Understanding the bid-ask spread is vital for traders looking to optimize their entry and exit points.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for investors dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is beneficial for analyzing price movements over time.
- Fluctuation Endpoint: Track how Gold prices fluctuate between two dates. This endpoint provides insights into market volatility, helping traders make informed decisions.
- Carat Endpoint: Retrieve information about Gold rates by carat. This feature is essential for jewelers and consumers looking to understand the value of Gold in different purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for Gold over a specified period. This data is crucial for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for Gold prices over a specific time period, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Your unique API key is essential for accessing the API. It must be included in the API base URL's access_key parameter.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API provides a total of 14 endpoints, each designed to deliver specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, ensuring users have access to the latest information.
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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1779667688,
"base": "USD",
"date": "2026-05-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"
}
This response indicates that the current price of Gold (XAU) is 0.000482 per troy ounce, with additional rates for other metals included.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1779581288,
"base": "USD",
"date": "2026-05-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of Gold on a specified date, allowing for trend analysis.
Time-Series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-05-18",
"end_date": "2026-05-25",
"base": "USD",
"rates": {
"2026-05-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of Gold prices, enabling users to analyze trends over a specified period.
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": 1779667688,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD converts to 0.482 troy ounces of Gold, showcasing the utility of the conversion feature.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-18",
"end_date": "2026-05-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"
}
This response provides insights into how Gold prices have changed over a specific period, highlighting both absolute and percentage changes.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1779667688,
"base": "USD",
"date": "2026-05-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 a comprehensive view of Gold's price performance over a specified period, including opening, closing, highest, and lowest prices.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1779667688,
"base": "USD",
"date": "2026-05-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"
}
This response provides the current bid and ask prices for Gold, which is essential for traders looking to execute orders efficiently.
Conclusion
The Metals-API offers a robust solution for developers seeking to integrate real-time and historical pricing data for Gold and other metals into their applications. With features like the Latest Rates, Historical Rates, and Conversion endpoints, users can access a wealth of information that enhances their trading strategies and market analysis capabilities. By leveraging the API's capabilities, developers can create innovative applications that empower users to make informed decisions in the precious metals market.
For further exploration of the API's features and to start building your application, visit the Metals-API Website and check out the Metals-API Documentation for detailed guidance. Don't forget to explore the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols.