Collect Bangalore Gold 22k (BANG-22k) Price Data Historical Series through this API
Introduction
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment strategies across the globe. As a precious metal, its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. For developers and financial analysts, accessing accurate and timely gold price data is crucial for making informed decisions. The Metals-API provides a robust solution for retrieving historical price data, enabling users to harness the power of real-time metals data for their applications.
Understanding Gold (XAU)
Gold is not just a commodity; it is a digital asset that has undergone a transformation in how it is traded and analyzed. The integration of technology in precious metals trading has opened new avenues for data analytics and market insights. With the rise of digital asset solutions, developers can leverage APIs to access historical price data, analyze trends, and make predictions based on comprehensive datasets.
Digital Transformation in Precious Metals
The digital transformation in the precious metals market has led to a significant shift in how traders and investors approach gold. The availability of real-time data through APIs like Metals-API allows for instantaneous decision-making, which is essential in a market that can be volatile. By utilizing advanced data analytics, users can uncover insights that were previously difficult to obtain, enabling them to stay ahead of market trends.
Data Analytics and Market Insights
Data analytics plays a pivotal role in understanding the dynamics of gold prices. By accessing historical data through the Metals-API, developers can create applications that analyze price movements, identify patterns, and forecast future trends. This capability is particularly beneficial for traders looking to optimize their strategies based on historical performance.
Technology Integration in Trading
Integrating technology into trading platforms enhances the user experience and provides traders with the tools they need to succeed. The Metals-API offers various endpoints that allow developers to access real-time and historical data, including the latest rates, historical rates, and fluctuation data. This integration not only streamlines the trading process but also empowers users to make data-driven decisions.
Innovation in Price Discovery
Price discovery is a critical aspect of trading, and the Metals-API facilitates this process by providing accurate and timely data. With endpoints dedicated to bid and ask prices, as well as open, high, low, and close (OHLC) data, developers can build applications that offer comprehensive insights into market conditions. This innovation in price discovery enables traders to react swiftly to market changes.
Digital Asset Solutions
The rise of digital asset solutions has transformed how investors view gold. With the ability to convert currencies and track fluctuations, the Metals-API provides a comprehensive toolkit for developers. The API's convert endpoint allows users to convert amounts between different metals or currencies, making it easier to manage investments in a global market.
API Description
The Metals-API is designed to empower developers with the tools needed to build next-generation applications that leverage real-time metals data. With a focus on innovation and technological advancement, this API provides a wide range of functionalities that cater to various use cases. From accessing the latest rates to retrieving historical data, the Metals-API is a comprehensive solution for anyone looking to integrate precious metals data into their applications.
Key Features of Metals-API
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 or more frequently. This feature is essential for traders who require up-to-the-minute information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API request. This functionality is crucial for analyzing past performance and trends.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This feature simplifies the management of investments across various currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two chosen dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest price of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain OHLC data for specific time periods, which is essential 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 is required for authentication when making requests to the API.
- API Response: Exchange rates are delivered relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- Intraday Endpoint: Users can query intraday exchange rate data for a single symbol, which is vital for high-frequency trading strategies.
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
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals. This endpoint is crucial for traders who need to make quick decisions based on current market conditions.
{
"success": true,
"timestamp": 1786579961,
"base": "USD",
"date": "2026-08-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"
}
In this response, the "rates" object contains the current exchange rates for various metals, with values represented in troy ounces. The "base" indicates the currency against which the rates are measured, which is USD in this case.
Historical Rates Endpoint
The Historical Rates Endpoint provides access to historical exchange rates for any date since 1999. This feature is essential for analyzing past performance and trends.
{
"success": true,
"timestamp": 1786493561,
"base": "USD",
"date": "2026-08-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to track how prices have changed over time. The "date" field indicates the specific day for which the rates are provided.
Time-Series Endpoint
The Time-Series Endpoint allows users to get exchange rates for a specific time period. This is particularly useful for analyzing trends over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-06",
"end_date": "2026-08-13",
"base": "USD",
"rates": {
"2026-08-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for the specified period, allowing users to visualize trends and fluctuations in gold prices over time.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders managing investments across different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786579961,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this example, the API converts 1000 USD to its equivalent in gold (XAU), providing the user with the result in troy ounces. The "rate" field indicates the conversion rate used for the calculation.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates, providing insights into market volatility.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-06",
"end_date": "2026-08-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 response provides detailed information about how the rates for different metals have changed over the specified period, including both absolute and percentage changes.
OHLC (Open/High/Low/Close) Endpoint
The OHLC Endpoint provides open, high, low, and close data for a specific time period, which is essential for technical analysis.
{
"success": true,
"timestamp": 1786579961,
"base": "USD",
"date": "2026-08-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 critical data for traders looking to analyze price movements and make informed decisions based on historical performance.
Bid/Ask Endpoint
The Bid/Ask Endpoint allows users to get current bid and ask prices for metals, providing insights into market liquidity.
{
"success": true,
"timestamp": 1786579961,
"base": "USD",
"date": "2026-08-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 response provides the current bid and ask prices for different metals, along with the spread, which is essential for traders looking to execute orders efficiently.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers and traders looking to access historical gold price data and other precious metals information. By leveraging the various endpoints available, users can gain valuable insights into market trends, analyze price movements, and make informed investment decisions. The integration of technology in trading has transformed the way precious metals are approached, and the Metals-API stands at the forefront of this digital revolution.
For further exploration of the API's capabilities, refer to the Metals-API Documentation, which provides detailed information on each endpoint and its functionalities. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of available metals and currencies, ensuring users have access to the latest data.
As the market continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be essential for success in the precious metals trading landscape.