How to Get Mangalore Gold 24k (MANG-24k) prices using this API in Python
Introduction
In the ever-evolving world of finance, the demand for real-time data on precious metals such as gold has surged. For developers and traders alike, understanding how to access and utilize this data efficiently is crucial. This blog post will delve into how to get Mangalore Gold 24k (MANG-24k) prices using the Metals-API. We will explore the capabilities of this powerful API, its various endpoints, and how it can be leveraged to gain insights into the gold market.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals has become more pronounced. The use of data analytics allows traders to gain market insights that were previously unattainable. With the rise of digital asset solutions, the landscape of gold trading is shifting, making real-time data more critical than ever.
Through the Metals-API, developers can access a wealth of information about gold prices, including historical data, real-time rates, and market fluctuations. This API empowers users to build next-generation applications that can analyze trends, predict price movements, and optimize trading strategies.
API Description
The Metals-API is a comprehensive solution for accessing real-time and historical data on various metals, including gold, silver, platinum, and palladium. It provides developers with the tools needed to create applications that can monitor market conditions, perform currency conversions, and analyze price trends.
With its innovative approach to data delivery, the Metals-API allows for seamless integration into existing systems, enabling developers to harness the power of real-time metals data. Whether you are building a trading platform, a financial analysis tool, or a market research application, the Metals-API offers the flexibility and functionality required to meet your needs.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Here’s a closer look at some of the key features:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for metals, updated according to your subscription plan—every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1764036050,
"base": "USD",
"date": "2025-11-25",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analyzing trends over time. The Historical Rates endpoint allows users to retrieve data dating back to 2019. By appending a specific date to the API call, developers can gain insights into past market performance.
{
"success": true,
"timestamp": 1763949650,
"base": "USD",
"date": "2025-11-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask endpoint is a powerful feature that provides real-time bid and ask prices for metals. This information is vital for traders looking to execute orders at the best possible prices.
{
"success": true,
"timestamp": 1764036050,
"base": "USD",
"date": "2025-11-25",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"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.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1764036050,
"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 conducting in-depth analyses of price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-11-18",
"end_date": "2025-11-25",
"base": "USD",
"rates": {
"2025-11-18": {
"XAU": 0.000485
},
"2025-11-25": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides insights into how currencies fluctuate on a day-to-day basis. This feature is essential for traders looking to understand market volatility and make informed decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-18",
"end_date": "2025-11-25",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price endpoint provides detailed price information, including the open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis to make trading decisions.
{
"success": true,
"timestamp": 1764036050,
"base": "USD",
"date": "2025-11-25",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME endpoint allows access to historical rates for LME symbols dating back to 2008. This feature is particularly useful for those interested in the London Metal Exchange prices.
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. The API responses are delivered in JSON format, with exchange rates typically relative to USD. This standardization simplifies data handling and integration into 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.
Conclusion
In conclusion, the Metals-API offers a robust solution for accessing real-time and historical data on precious metals like gold. By leveraging its various endpoints, developers can create powerful applications that provide valuable insights into market trends and price movements. Whether you are a trader looking to optimize your strategies or a developer building a financial application, the Metals-API is an invaluable resource.
For more information on how to get started, visit the Metals-API Documentation to explore the full capabilities of this API and learn how to integrate it into your projects.