Access Malappuram Gold 22k (MALA-22k) API Documentation for JSON Format
Access Malappuram Gold 22k (MALA-22k) API Documentation for JSON Format
In the rapidly evolving world of finance and trading, the ability to access real-time data is paramount. The Metals-API provides developers with a powerful tool to retrieve exchange rates for precious metals, including Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD). This blog post will delve into how to retrieve {Symbol} exchange rates in JSON format using the Metals-API, offering sample API responses and integration tips that will empower developers to create innovative applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its significance in the financial markets cannot be overstated. As digital transformation sweeps across industries, the precious metals market is no exception. The integration of data analytics and technology into trading practices is revolutionizing how investors approach gold trading. With the Metals-API, developers can harness real-time data to gain market insights, enhance price discovery, and innovate digital asset solutions.
By leveraging the capabilities of the Metals-API, developers can build applications that not only track gold prices but also analyze market trends, forecast future movements, and provide users with actionable insights. The API's robust features allow for seamless integration into existing systems, enabling businesses to stay ahead in a competitive landscape.
API Description
The Metals-API is designed to provide developers with a comprehensive suite of tools for accessing precious metals data. With its user-friendly interface and extensive documentation, the API empowers developers to create next-generation applications that can respond to market changes in real-time. The API supports a wide range of functionalities, including retrieving the latest rates, historical data, and bid/ask prices, making it an essential resource for anyone involved in the trading of precious metals.
For more information, visit the Metals-API Documentation and explore the Metals-API Supported Symbols to understand the full range of capabilities available.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, each with its unique functionalities:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for precious metals. Depending on your subscription plan, the API updates this data every 60 minutes or every 10 minutes, ensuring that you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. By appending a specific date to your query, you can retrieve past rates for analysis and reporting.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, which is crucial for traders looking to make informed decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This endpoint simplifies the process of currency conversion, making it easier for users to understand the value of their investments.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling you to analyze trends over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and consumers alike.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your unique API key is essential for accessing the API's features and must be included in your requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: With 14 different API endpoints, the Metals-API provides a diverse range of functionalities to meet various trading needs.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some sample API responses for various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1770008864,
"base": "USD",
"date": "2026-02-02",
"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": 1769922464,
"base": "USD",
"date": "2026-02-01",
"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-01-26",
"end_date": "2026-02-02",
"base": "USD",
"rates": {
"2026-01-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-02": {
"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": 1770008864,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-26",
"end_date": "2026-02-02",
"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": 1770008864,
"base": "USD",
"date": "2026-02-02",
"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": 1770008864,
"base": "USD",
"date": "2026-02-02",
"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 resource for developers looking to integrate precious metals data into their applications. By providing real-time exchange rates, historical data, and various endpoints for analysis, the API empowers users to make informed trading decisions. Whether you are developing a financial application, a trading platform, or simply seeking to analyze market trends, the Metals-API offers the tools necessary to succeed.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and check out the Metals-API Supported Symbols for a complete list of available metal symbols. The Metals-API Website is also a great resource for staying updated on new features and enhancements.
By leveraging the power of the Metals-API, developers can unlock new possibilities in the world of precious metals trading, driving innovation and enhancing the overall trading experience.