Get Mangalore Gold 22k (MANG-22k) Daily Closing Prices using this API

Get Mangalore Gold 22k (MANG-22k) Daily Closing Prices using this API
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and traders alike, the Metals-API offers a powerful solution to retrieve historical prices, including the daily closing prices for Mangalore Gold 22k (MANG-22k). This blog post will delve into the capabilities of the Metals-API, focusing on how to obtain historical prices for gold and other metals, while exploring the digital transformation in precious metals trading.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As a precious metal, it plays a significant role in global finance, serving as a hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has revolutionized how investors access and analyze gold prices. With the integration of data analytics and technology, traders can now leverage real-time data to gain market insights and make informed decisions.
The Metals-API provides developers with the tools to harness this data effectively. By utilizing the API, developers can create applications that integrate real-time gold prices, historical data, and analytics to enhance trading strategies. This innovation in price discovery allows for more accurate forecasting and investment planning.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. It empowers developers to build next-generation applications that require precise and timely metals data. The API is designed with a focus on innovation and technological advancement, making it an essential tool for anyone involved in the trading of precious metals.
With the Metals-API, you can access a range of features that cater to different trading needs. Whether you are looking for the latest rates, historical prices, or specific market insights, the API has you covered. The Metals-API Documentation provides detailed information on how to implement these features effectively.
Key Features and Endpoints
One of the standout features of the Metals-API is its Latest Rates Endpoint. Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market movements and make timely decisions.
The Historical Rates Endpoint is another critical feature, providing access to historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve historical prices for gold and other metals, enabling you to analyze trends and make data-driven decisions.
For those interested in understanding market dynamics, the Bid and Ask Endpoint offers real-time bid and ask prices for various metals. This feature is particularly useful for traders looking to execute orders at the best possible prices.
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This is essential for traders who operate in multiple currencies and need to assess their positions accurately.
Additionally, the Time-Series Endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price movements over time.
Another useful feature is the Fluctuation Endpoint, which provides information about how currencies fluctuate on a day-to-day basis. This can help traders identify patterns and make predictions about future price movements.
The Carat Endpoint allows users to retrieve information about gold rates by carat, which is particularly relevant for jewelers and consumers looking to understand the value of gold jewelry.
For those interested in the extremes of market pricing, the Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This can be useful for identifying market volatility and making strategic trading decisions.
The Open/High/Low/Close (OHLC) Price Endpoint provides detailed information about the open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and helps traders understand market trends.
Furthermore, the Historical LME Endpoint offers access to historical rates for LME symbols dating back to 2008, which is beneficial for those interested in the London Metal Exchange pricing.
To access the API, you will need an API Key, which is a unique identifier passed into the API base URL's access_key parameter. This key ensures secure access to the API and protects against unauthorized use.
The API response delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format, making it easy to integrate into various applications. For a complete list of all supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some examples of API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748080815,
"base": "USD",
"date": "2025-05-24",
"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 latest gold price (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747994415,
"base": "USD",
"date": "2025-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical price of gold on May 23, 2025, allowing traders to analyze past performance and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"base": "USD",
"rates": {
"2025-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides a historical view of gold prices over a specified period, enabling traders to identify trends and make predictions based on past data.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748080815,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to gold (XAU), providing the equivalent amount in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"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 example illustrates how the gold price fluctuated over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1748080815,
"base": "USD",
"date": "2025-05-24",
"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 response provides detailed pricing information for gold and other metals, essential for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748080815,
"base": "USD",
"date": "2025-05-24",
"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, silver, and platinum, allowing traders to make informed decisions based on market conditions.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to access real-time and historical data for precious metals like gold. By leveraging the various endpoints available, users can gain insights into market trends, conduct thorough analyses, and make informed trading decisions. The API's capabilities, including the Latest Rates, Historical Rates, and OHLC data, provide a comprehensive view of the metals market.
As the digital transformation in precious metals continues, the Metals-API stands out as a leader in providing accurate and timely data. For more information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals.
By integrating the Metals-API into your trading applications, you can harness the power of real-time data to enhance your trading strategies and stay ahead in the competitive world of precious metals trading.