Get LBMA Gold Pm (LBXAUPM) Historical Prices with Metals-API

Get LBMA Gold Pm (LBXAUPM) Historical Prices with Metals-API
In the ever-evolving landscape of precious metals trading, obtaining accurate and timely data is paramount for investors and developers alike. The LBMA Gold PM (LBXAUPM) is a critical benchmark for gold prices, and accessing its historical prices can provide invaluable insights into market trends. One of the most effective ways to retrieve this data is through the Metals-API, a powerful tool designed for developers seeking to integrate real-time and historical metals data into their applications.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe haven asset and a hedge against inflation. As digital transformation sweeps across the financial sector, the precious metals market is also experiencing significant changes. The integration of data analytics and market insights is revolutionizing how traders and investors approach gold trading. With the advent of technology, the process of price discovery has become more innovative, allowing for more accurate valuations and trading strategies.
Moreover, digital asset solutions are emerging, enabling investors to hold gold in various forms, including digital tokens backed by physical gold. This transformation is not just about convenience; itβs about leveraging technology to enhance transparency and efficiency in trading. The Metals-API plays a crucial role in this ecosystem, providing developers with the tools they need to build next-generation applications that can access real-time and historical gold prices.
API Description
The Metals-API is designed to empower developers with comprehensive access to metals data. It offers a range of capabilities that facilitate the integration of real-time and historical pricing information into applications. By leveraging this API, developers can create innovative solutions that enhance user experience and provide valuable market insights.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the subscription plan. This ensures that users have access to the most current pricing information, which is crucial for making informed trading decisions. Additionally, the API provides historical rates dating back to 2019, allowing users to analyze trends and patterns over time.
Furthermore, the Metals-API includes endpoints for bid and ask prices, currency conversion, and time-series data, among others. This extensive functionality enables developers to build applications that cater to a variety of use cases, from simple price tracking to complex trading algorithms.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to serve specific needs within the metals trading ecosystem. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes or more frequently. This is essential for traders who need the latest market information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a date to the API call, developers can retrieve past pricing data, which is invaluable for trend analysis.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and trading opportunities.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts from one currency to another seamlessly.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates, making it easier to analyze price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices within a specified timeframe.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols dating back to 2008, which is crucial for those trading industrial metals.
- API Key: Each user is provided with a unique API key, which must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API provides 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 price 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.
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 responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1744264818,
"base": "USD",
"date": "2025-04-10",
"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 a successful API call, providing the latest exchange rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1744178418,
"base": "USD",
"date": "2025-04-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-03",
"end_date": "2025-04-10",
"base": "USD",
"rates": {
"2025-04-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for a specified time period, enabling users to track price movements over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1744264818,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between different currencies, providing a straightforward way to understand value in terms of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-03",
"end_date": "2025-04-10",
"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 prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1744264818,
"base": "USD",
"date": "2025-04-10",
"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 open, high, low, and close prices for a specific date, which is essential for traders looking to analyze market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1744264818,
"base": "USD",
"date": "2025-04-10",
"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, which are crucial for traders looking to execute orders at optimal prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access real-time and historical gold prices, including the LBMA Gold PM (LBXAUPM). By leveraging the various endpoints offered by the API, users can gain insights into market trends, perform detailed analyses, and make informed trading decisions.
With features such as the latest rates, historical rates, bid/ask prices, and fluctuation tracking, the Metals-API empowers developers to create sophisticated applications that meet the needs of modern traders. Whether you are building a simple price tracker or a complex trading platform, the Metals-API provides the tools necessary to succeed in the dynamic world of precious metals trading.
For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols to understand the full range of capabilities at your disposal. Embrace the future of precious metals trading with the power of real-time data at your fingertips.