Obtain Bangalore Gold (XAU-BANG) - Per Ounce Historical Prices via this API

Obtain Bangalore Gold (XAU-BANG) - Per Ounce Historical Prices via this API
In the rapidly evolving world of finance, the demand for accurate and real-time data has never been higher, especially in the precious metals market. One of the most sought-after metals is gold, represented by the symbol XAU. With the rise of digital transformation in trading and investment, developers and traders alike are looking for reliable sources to obtain historical prices and market insights. This is where the Metals-API comes into play, offering a comprehensive solution for accessing gold prices, including historical data for Bangalore Gold (XAU-BANG).
Metals-API Information
The Metals-API is a powerful tool designed for developers who need to integrate real-time and historical metals data into their applications. By leveraging this API, users can access a wide range of functionalities, including the latest rates, historical prices, and various conversion options. The API is built with innovation in mind, allowing for seamless integration into trading platforms, financial applications, and data analytics tools.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its value is influenced by various factors, including market demand, geopolitical events, and currency fluctuations. In recent years, the digital transformation of precious metals trading has led to the emergence of advanced data analytics and market insights, enabling traders to make informed decisions based on real-time information.
With the integration of technology in trading, the process of price discovery has evolved significantly. The Metals-API provides developers with the tools necessary to access gold prices in a timely manner, ensuring that they can respond to market changes effectively. This API empowers users to build next-generation applications that can analyze trends, forecast prices, and optimize trading strategies.
API Description
The Metals-API is designed to provide developers with a robust set of features that facilitate the retrieval of metals data. With a focus on technological advancement, this API allows users to access real-time and historical data, enabling them to create applications that can adapt to the dynamic nature of the metals market.
One of the standout features of the Metals-API is its ability to deliver data in a structured format, making it easy for developers to parse and utilize the information in their applications. The API supports a variety of endpoints, each tailored to specific use cases, ensuring that users can access the data they need efficiently.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
- 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.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical gold prices, which is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for gold and other metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another, which is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how gold prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides users with open, high, low, and close prices for gold, which are critical for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API provides a constantly updated endpoint returning all available currencies, making it easy for developers to stay informed about supported symbols.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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 integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for developers. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1749773501,
"base": "USD",
"date": "2025-06-13",
"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, with additional rates for other metals included.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1749687101,
"base": "USD",
"date": "2025-06-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical rate for gold on June 12, 2025, allowing developers to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-06",
"end_date": "2025-06-13",
"base": "USD",
"rates": {
"2025-06-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1749773501,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another. In this case, 1000 USD converts to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-06",
"end_date": "2025-06-13",
"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 endpoint tracks fluctuations in gold prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1749773501,
"base": "USD",
"date": "2025-06-13",
"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 response provides the open, high, low, and close prices for gold, which are essential for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1749773501,
"base": "USD",
"date": "2025-06-13",
"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 endpoint provides the current bid and ask prices for gold, which are crucial for understanding market liquidity.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate gold price data into their applications. With its comprehensive set of features, including real-time rates, historical data, and various conversion options, the API empowers users to build innovative solutions that can adapt to the dynamic nature of the metals market.
By leveraging the capabilities of the Metals-API, developers can create applications that provide market insights, facilitate trading, and enhance decision-making processes. Whether you are a trader, a financial analyst, or a developer, the Metals-API offers the tools you need to stay ahead in the precious metals market.
For more information on how to get started, visit the Metals-API Documentation for detailed guidance on implementation and usage. Explore the Metals-API Supported Symbols page to familiarize yourself with the various metals available through the API, and don't forget to check out the Metals-API Website for additional resources and updates.