Access LBMA Gold Am (LBXAUAM) Historical Prices via Metals-API

Access LBMA Gold Am (LBXAUAM) Historical Prices via Metals-API
In the ever-evolving landscape of precious metals trading, the ability to access accurate and timely data is paramount. For developers and traders alike, the Metals-API offers a robust solution for retrieving historical prices of gold, specifically the LBMA Gold Am (LBXAUAM). This blog post delves into the intricacies of accessing historical prices through the Metals-API, exploring its capabilities, features, and the transformative potential of real-time metals data.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets and a safe haven for investors. As digital transformation sweeps across industries, the precious metals sector is no exception. The integration of technology in trading has revolutionized how market participants access and analyze data. With the advent of data analytics, traders can derive actionable insights from historical price movements, enabling them to make informed decisions.
Moreover, the innovation in price discovery mechanisms has been significantly enhanced by digital asset solutions. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that leverage real-time data for gold trading. By utilizing the Metals-API, developers can create applications that not only track price movements but also analyze trends, forecast future prices, and optimize trading strategies.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. It empowers developers to integrate metals pricing data into their applications seamlessly. The API's capabilities extend beyond mere price retrieval; it offers a suite of features designed to enhance the trading experience.
With the Metals-API, developers can access a plethora of endpoints, each serving a unique purpose. From retrieving the latest rates to historical data, the API is designed to cater to the diverse needs of traders and developers. The ability to access historical prices dating back to 2019 allows users to conduct thorough analyses and backtesting of trading strategies.
Key Features and Endpoints
The Metals-API boasts several key features that enhance its usability and functionality. Below are some of the most notable endpoints:
- 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 to stay updated with 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 data, 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 insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another, facilitating seamless transactions across different 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 specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature enables users to retrieve information about gold rates by carat, which is particularly useful for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is provided with a unique API key that must be included in API requests, ensuring secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold prices in India, catering to a specific market segment.
- News Endpoint: Users can access the latest news articles related to various metals, keeping them informed about 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 structure of API responses is crucial for effective integration. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745467290,
"base": "USD",
"date": "2025-04-24",
"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"
}
The above response indicates a successful request for the latest rates, with the base currency being USD. The rates for various metals are provided, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1745380890,
"base": "USD",
"date": "2025-04-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for a specific date, allowing users to analyze past price movements and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-17",
"end_date": "2025-04-24",
"base": "USD",
"rates": {
"2025-04-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates between two specified dates, enabling users to observe trends and fluctuations over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1745467290,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to gold (XAU), providing the user with the equivalent amount in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-17",
"end_date": "2025-04-24",
"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 rates between two dates, providing valuable insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1745467290,
"base": "USD",
"date": "2025-04-24",
"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"
}
The OHLC response provides critical data for technical analysis, allowing traders to assess market conditions and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1745467290,
"base": "USD",
"date": "2025-04-24",
"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 current bid and ask prices, essential for traders looking to execute orders at optimal prices.
Conclusion
Accessing historical prices for LBMA Gold Am (LBXAUAM) through the Metals-API is a powerful tool for developers and traders in the precious metals market. The API's extensive features, including real-time rates, historical data, and various endpoints, empower users to make informed trading decisions based on accurate data. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance the trading experience.
For more information on how to implement these features, refer to the Metals-API Documentation. To explore the full range of available symbols, visit the Metals-API Supported Symbols page. The Metals-API Website serves as a comprehensive resource for all your metals data needs.