Access LBMA Gold Pm (LBXAUPM) prices using this API

Access LBMA Gold Pm (LBXAUPM) Prices Using This API
In the ever-evolving landscape of financial technology, the demand for real-time data has never been more critical, especially in the precious metals market. The LBMA Gold Pm (LBXAUPM) prices are essential for traders, investors, and analysts who seek to make informed decisions based on the latest market trends. This blog post will delve into the capabilities of the Metals-API, a powerful tool that provides access to real-time and historical gold prices, along with a suite of features designed to enhance trading strategies and market analysis.
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. In recent years, the digital transformation in precious metals trading has opened new avenues for investors. The integration of data analytics and market insights has allowed traders to harness technology for better decision-making. With the rise of digital asset solutions, gold trading is no longer confined to traditional methods; it now embraces innovative approaches that leverage real-time data.
The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to build next-generation applications. By offering real-time metals data, the API empowers users to create applications that can analyze market trends, optimize trading strategies, and enhance price discovery. The API's capabilities extend beyond mere data retrieval; it enables developers to integrate advanced analytics and machine learning algorithms into their applications, paving the way for a more sophisticated trading environment.
API Description
The Metals-API is designed to provide comprehensive access to metals prices and currency conversion. It offers a range of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data. The API is built with a focus on innovation and technological advancement, ensuring that users have access to the most accurate and timely information available.
With the Metals-API, developers can create applications that not only display current prices but also analyze historical trends, track fluctuations, and convert between different metals and currencies. This level of functionality is essential for traders who require precise data to make informed decisions in a fast-paced market.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide unique functionalities tailored to the needs of developers and traders alike. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that you always have the latest information at your fingertips.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. By appending a specific date to your query, you can retrieve past prices, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint allows you to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is invaluable for analyzing trends and making predictions based on historical data.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis. This endpoint allows you to track changes and assess market volatility.
- Carat Endpoint: Get information about gold rates by carat. This feature is essential for jewelers and investors interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for a given metal over a specified period, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, allowing for detailed market analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
- API Key: Your unique API key is essential for accessing the API. It must be included in the API base URL's access_key parameter to authenticate your requests.
- API Response: The API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The Metals-API offers numerous endpoints, each providing different functionalities. This extensive range allows developers to tailor their applications to specific needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, ensuring that developers have access to the latest information.
- 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 through the Metals-API news endpoint, which can provide context for 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 implement specific metals in their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints, showcasing the JSON responses you can expect:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748509216,
"base": "USD",
"date": "2025-05-29",
"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 request, providing the latest exchange rates for various metals, with XAU (Gold) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1748422816,
"base": "USD",
"date": "2025-05-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful response for historical rates, allowing users to analyze past prices for XAU and other metals.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-22",
"end_date": "2025-05-29",
"base": "USD",
"rates": {
"2025-05-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates for XAU over a specified period, enabling users to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748509216,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to see how much 1000 USD is worth in XAU, providing a straightforward conversion result.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-22",
"end_date": "2025-05-29",
"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 metal prices, providing insights into market volatility and trends over a specified period.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1748509216,
"base": "USD",
"date": "2025-05-29",
"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 XAU, XAG, and XPT, which are essential for traders analyzing market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748509216,
"base": "USD",
"date": "2025-05-29",
"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 metals, allowing traders to assess market conditions and make informed decisions.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access real-time and historical gold prices, along with a comprehensive suite of features designed to enhance trading strategies. By leveraging the API's capabilities, users can build applications that analyze market trends, optimize trading strategies, and improve price discovery.
With endpoints that provide everything from the latest rates to historical data and conversion capabilities, the Metals-API empowers users to make informed decisions in a fast-paced market. Whether you are a seasoned trader or a developer looking to integrate precious metals data into your applications, the Metals-API offers the tools you need to succeed.
For more information on how to get started, visit the Metals-API Documentation, explore the Metals-API Supported Symbols, and check out the Metals-API Website for additional resources and support.