Query Bangalore Gold (XAU-BANG) prices via this API
Introduction
In the ever-evolving landscape of financial technology, the demand for real-time data and analytics has never been more critical. This is particularly true in the precious metals market, where fluctuations can significantly impact investment strategies. One of the most sought-after metals is Gold, represented by the symbol XAU. To effectively query Bangalore Gold (XAU-BANG) prices, developers can leverage the powerful Metals-API. This API provides a comprehensive suite of tools for accessing real-time and historical data on various metals, including Gold, Silver, Platinum, and Palladium.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a vital asset in any investment portfolio. The digital transformation in precious metals trading has enabled investors to access real-time data and analytics, allowing for informed decision-making. With the integration of advanced data analytics and technology, traders can gain insights into market trends, price movements, and investment opportunities.
The innovation in price discovery mechanisms has also been enhanced by digital asset solutions, which allow for seamless transactions and transparent pricing. As a result, the market for Gold is not only more accessible but also more efficient, enabling traders to capitalize on opportunities as they arise.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. With its robust capabilities, the API facilitates the integration of precious metals data into various applications, from trading platforms to financial analysis tools.
One of the key advantages of the Metals-API is its ability to provide real-time exchange rates, historical data, and various endpoints tailored to specific needs. This allows developers to create applications that can track market trends, analyze price fluctuations, and convert currencies with ease.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different functionalities, making it a versatile tool for developers. Here are some of the notable features:
- 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 feature is crucial for traders who need up-to-the-minute information to make informed decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, users can retrieve past rates, which is essential for trend analysis and forecasting.
- 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 any amount from one currency to another. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This feature is invaluable for analyzing trends over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, allowing traders to gauge market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat. This feature is particularly useful for jewelers and those in the luxury goods market.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest price for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to get the open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user is assigned a unique API key that must be included in the API requests, ensuring secure access to the data.
- API Response: The exchange rates delivered by the Metals-API are relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API comes with 14 endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest offerings.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users updated on market developments.
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.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1774570115,
"base": "USD",
"date": "2026-03-27",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1774483715,
"base": "USD",
"date": "2026-03-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"base": "USD",
"rates": {
"2026-03-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1774570115,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1774570115,
"base": "USD",
"date": "2026-03-27",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1774570115,
"base": "USD",
"date": "2026-03-27",
"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"
}
Conclusion
The Metals-API is a transformative tool for developers looking to integrate real-time and historical data on precious metals into their applications. By leveraging its extensive features, such as the latest rates, historical data, and various conversion options, developers can create powerful applications that cater to the needs of traders and investors alike. The API's ability to provide detailed insights into market trends and price fluctuations makes it an invaluable resource in the fast-paced world of precious metals trading.
For further exploration of the API's capabilities, developers are encouraged to review the Metals-API Documentation and familiarize themselves with the Metals-API Supported Symbols. By understanding the full range of features and endpoints, developers can unlock the potential of real-time metals data and enhance their trading strategies.