Access Historical Bangalore Gold 22k (BANG-22k) Prices in Multiple Currencies with this API
Access Historical Bangalore Gold 22k (BANG-22k) Prices in Multiple Currencies with this API
In today's rapidly evolving financial landscape, the ability to access accurate and real-time data is paramount for developers and businesses alike. The Metals-API provides a robust solution for accessing historical and current gold prices, specifically for 22k gold in Bangalore, represented by the symbol XAU. This API not only offers prices in various currencies but also empowers developers to create innovative applications that leverage precious metals data for market insights and trading strategies.
About Gold (XAU)
Gold has long been considered a safe haven asset, especially during times of economic uncertainty. With the digital transformation in precious metals trading, the demand for accurate and timely data has surged. The Metals-API plays a crucial role in this transformation by providing developers with the tools needed to integrate real-time gold pricing into their applications.
Data analytics and market insights derived from gold prices can significantly enhance trading strategies. For instance, businesses can utilize historical data to identify trends and make informed decisions. The integration of technology in trading platforms allows for more efficient price discovery and enhances the overall trading experience.
Moreover, as digital asset solutions gain traction, the importance of having access to reliable gold pricing data cannot be overstated. The Metals-API enables developers to build next-generation applications that cater to the evolving needs of investors and traders.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data, including gold, silver, platinum, and palladium. With its innovative capabilities, the API allows developers to retrieve real-time and historical data, empowering them to create applications that can analyze market trends, perform currency conversions, and track price fluctuations.
One of the standout features of the Metals-API is its ability to deliver accurate pricing data across multiple currencies. This is particularly beneficial for businesses operating in different regions or those dealing with international clients. The API supports a wide range of currencies, making it easy to convert gold prices into the desired currency for any market.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for applications that require up-to-date pricing information.
- Historical Rates Endpoint: Developers can access historical rates dating back to 2019 by appending a specific date to the API request. This feature is invaluable for businesses looking to analyze past trends and make predictions based on historical data.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint that enables users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, providing insights into market volatility and helping traders make informed decisions.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and businesses dealing in gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, assisting in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a wealth of data for analysis.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest data.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761609883,
"base": "USD",
"date": "2025-10-28",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response indicates that the latest rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1761523483,
"base": "USD",
"date": "2025-10-27",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for a specific date, allowing users to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-21",
"end_date": "2025-10-28",
"base": "USD",
"rates": {
"2025-10-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates, allowing users to visualize price changes over a specified period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761609883,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert an amount from one currency to another, providing the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-21",
"end_date": "2025-10-28",
"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 response provides insights into how prices have fluctuated over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1761609883,
"base": "USD",
"date": "2025-10-28",
"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"
}
This endpoint provides critical data for technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1761609883,
"base": "USD",
"date": "2025-10-28",
"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 metals, which is essential for traders looking to execute buy or sell orders efficiently.
Conclusion
The Metals-API is an invaluable resource for developers seeking to integrate real-time and historical gold pricing data into their applications. With its comprehensive range of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers businesses to make informed decisions based on accurate market insights.
As the demand for digital asset solutions continues to grow, leveraging the capabilities of the Metals-API can provide a competitive edge in the precious metals market. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
For a complete list of supported symbols, including various metals and currencies, check out the Metals-API Supported Symbols page. By utilizing the Metals-API, developers can unlock the potential of real-time metals data and drive innovation in their applications.