Get Mangalore Gold 18k (MANG-18k) Historical Prices from 2020 to 2025 using this API
Get Mangalore Gold 18k (MANG-18k) Historical Prices from 2020 to 2025 using this API
In the ever-evolving landscape of precious metals trading, the demand for accurate and timely data has never been more critical. For developers and traders alike, accessing historical prices of gold, particularly Mangalore Gold 18k (MANG-18k), is essential for making informed decisions. This blog post will delve into how to retrieve historical prices using the Metals-API, a powerful tool that provides real-time and historical data for various metals, including gold.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. The digital transformation in precious metals trading has revolutionized how investors and traders interact with this timeless commodity. With the advent of data analytics and market insights, stakeholders can now leverage technology to gain deeper insights into price movements and market trends.
As technology integrates into trading, innovations in price discovery have emerged. The Metals-API stands at the forefront of this transformation, offering developers the tools to build next-generation applications that can analyze and visualize gold prices effectively. By utilizing digital asset solutions, traders can make data-driven decisions that enhance their trading strategies.
Metals-API Overview
The Metals-API is a comprehensive JSON API that provides access to real-time and historical prices for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). The API is designed to empower developers to create applications that require accurate and timely metals data.
With a focus on innovation and technological advancement, the Metals-API enables users to access a wide range of endpoints that cater to different needs. Whether you are looking for the latest rates, historical data, or conversion capabilities, the Metals-API has you covered.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or every 10 minutes. This is crucial for traders who need the most current information to make decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a specific date, allowing you to analyze trends over time.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices, which are essential for understanding market dynamics and making informed trading decisions.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is essential for jewelers and traders dealing with different purities of gold.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest prices for a specified date, helping you identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metals traded on the London Metal Exchange.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The API comes with 14 endpoints, each providing different functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated endpoint returning all available currencies, ensuring you have the latest information at your fingertips.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Here are some examples of how to use the Metals-API endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1763697657,
"base": "USD",
"date": "2025-11-21",
"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": 1763611257,
"base": "USD",
"date": "2025-11-20",
"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": "2025-11-14",
"end_date": "2025-11-21",
"base": "USD",
"rates": {
"2025-11-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-21": {
"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": 1763697657,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-14",
"end_date": "2025-11-21",
"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) Price Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1763697657,
"base": "USD",
"date": "2025-11-21",
"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": 1763697657,
"base": "USD",
"date": "2025-11-21",
"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 is an invaluable resource for developers looking to access historical prices of Mangalore Gold 18k (MANG-18k) and other precious metals. By leveraging the various endpoints offered by the API, users can gain insights into market trends, perform detailed analyses, and make informed trading decisions.
With features such as real-time rates, historical data, and conversion capabilities, the Metals-API empowers developers to create robust applications that meet the demands of modern trading. For more information, explore the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page.
As the world of precious metals continues to evolve, staying informed and equipped with the right tools is essential for success. The Metals-API is your gateway to unlocking the potential of real-time metals data.