Get Mangalore Gold 24k (MANG-24k) prices for trading strategies using this API
Introduction
In the ever-evolving landscape of financial markets, gold (XAU) remains a cornerstone asset for traders and investors alike. Its intrinsic value, historical significance, and role as a hedge against inflation make it a focal point for trading strategies. To effectively navigate the gold market, traders require access to real-time data and analytics, which is where the Metals-API comes into play. This powerful API provides comprehensive access to gold prices, enabling developers to create innovative trading applications that leverage real-time and historical data.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during periods of economic uncertainty. As a result, its price is influenced by various factors, including geopolitical events, currency fluctuations, and market sentiment. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. By integrating advanced technology into trading strategies, developers can harness the power of data to make informed decisions.
The Metals-API empowers developers to access real-time gold prices and historical data, facilitating the creation of applications that can analyze market trends, optimize trading strategies, and enhance price discovery. With the rise of digital asset solutions, the ability to access accurate and timely data is crucial for traders looking to capitalize on market movements.
API Description
The Metals-API is a robust tool designed for developers seeking to integrate metals pricing data into their applications. It offers a suite of features that enable users to retrieve real-time exchange rates, historical data, and various analytical insights. The API's capabilities extend beyond mere price retrieval; it allows for comprehensive market analysis and the development of sophisticated trading algorithms.
With the Metals-API, developers can build next-generation applications that leverage real-time metals data to enhance trading strategies. The API provides a seamless experience, allowing users to access a wealth of information through a simple and intuitive interface. Whether you're looking to track gold prices, analyze historical trends, or convert currencies, the Metals-API has you covered.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs within the trading community. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for gold and other metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay informed about the latest market movements.
{
"success": true,
"timestamp": 1778804097,
"base": "USD",
"date": "2026-05-15",
"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
Accessing historical rates is crucial for traders looking to analyze past performance and identify trends. The Historical Rates Endpoint allows users to query historical exchange rates dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable insights into how gold prices have fluctuated over time.
{
"success": true,
"timestamp": 1778717697,
"base": "USD",
"date": "2026-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for gold and other metals. This information is vital for traders looking to execute orders at the best possible prices. The bid price represents the highest price a buyer is willing to pay, while the ask price is the lowest price a seller is willing to accept.
{
"success": true,
"timestamp": 1778804097,
"base": "USD",
"date": "2026-05-15",
"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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778804097,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for traders looking to analyze trends over specific time frames and make informed decisions based on historical performance.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-08",
"end_date": "2026-05-15",
"base": "USD",
"rates": {
"2026-05-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. This feature allows traders to track rate fluctuations between two dates, helping them understand market volatility and make strategic decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-08",
"end_date": "2026-05-15",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is essential for traders who rely on technical analysis to make informed trading decisions.
{
"success": true,
"timestamp": 1778804097,
"base": "USD",
"date": "2026-05-15",
"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"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is particularly useful for traders interested in analyzing the performance of metals traded on the London Metal Exchange.
{
"success": true,
"timestamp": 1778717697,
"base": "USD",
"date": "2026-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is the unique identifier that is passed into the API base URL's access_key parameter. This key is essential for authenticating your requests and ensuring secure access to the API's features. All exchange rates delivered by the Metals-API are relative to USD, and the data is returned in a structured JSON format, making it easy to integrate into your applications.
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 understand the various metals available for trading and analysis.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for developers looking to integrate gold pricing data into their applications. With features such as real-time rates, historical data, and various analytical endpoints, the API empowers traders to make informed decisions based on accurate and timely information. By leveraging the capabilities of the Metals-API, developers can create innovative trading strategies that capitalize on market trends and fluctuations.
For those interested in exploring the full potential of the Metals-API, I encourage you to visit the Metals-API Website and dive into the Metals-API Documentation for detailed guidance on implementation and usage. Understanding the intricacies of the API will enable you to harness the power of gold trading data effectively.