Programmatically Get LBMA Platinum Am (LBXPTAM) Historical Prices via this API
Programmatically Get LBMA Platinum Am (LBXPTAM) Historical Prices via this API
In the world of precious metals, Platinum (XPT) stands out not only for its rarity but also for its diverse applications in green technology, sustainable innovation, and clean energy solutions. As developers and businesses seek to harness the power of real-time data, the Metals-API emerges as a transformative tool that enables users to access historical prices, including the LBMA Platinum Am (LBXPTAM) rates. This blog post will delve into the capabilities of the Metals-API, exploring how it empowers developers to create next-generation applications while providing detailed insights into Platinum's significance in today's economy.
About Platinum (XPT)
Platinum is a precious metal that plays a crucial role in various industries, particularly in automotive catalytic converters, electronics, and jewelry. Its unique properties make it an essential component in green technologies, such as hydrogen fuel cells and electric vehicle batteries. As the world shifts towards sustainable practices, the demand for Platinum is expected to rise, making it imperative for businesses to stay informed about its market trends and historical pricing.
The Metals-API provides a comprehensive solution for accessing real-time and historical data on Platinum prices. By leveraging this API, developers can build applications that analyze market trends, forecast prices, and make informed investment decisions. The API's capabilities extend beyond mere data retrieval; it allows for the integration of advanced analytics and machine learning algorithms to predict future price movements based on historical data.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metals data. With its user-friendly interface and extensive documentation, the API simplifies the process of retrieving valuable information about various metals, including Platinum. The API supports multiple endpoints, each tailored to specific data retrieval needs, making it a versatile solution for developers looking to integrate metals data into their applications.
For more information, visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to various data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Platinum and other metals. Depending on your subscription plan, the API updates this data every 60 minutes, every 10 minutes, or even more frequently, allowing developers to access the most current market information.
- Historical Rates Endpoint: Users can access historical rates for Platinum dating back to 2019. By appending a specific date to the API request, developers can retrieve past pricing data, which is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for Platinum, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates. This endpoint is invaluable for analyzing price movements over time.
- Fluctuation Endpoint: Users can track how Platinum prices fluctuate over a specified period, gaining insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by Carat, which can be useful for jewelers and investors alike.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of Platinum over a specified period, providing a clear picture of market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access detailed OHLC data for Platinum, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate and authorize access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: With 14 different API endpoints, the Metals-API offers extensive functionality for developers to explore.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
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 responses is crucial for effective integration. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1782778395,
"base": "USD",
"date": "2026-06-30",
"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 response indicates a successful request, providing the latest exchange rates for various metals, including Platinum (XPT).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1782691995,
"base": "USD",
"date": "2026-06-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical exchange rates for a specific date, allowing developers to analyze past market behavior.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-06-23",
"end_date": "2026-06-30",
"base": "USD",
"rates": {
"2026-06-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how to retrieve exchange rates for a specific time period, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782778395,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert amounts between different metals and currencies, providing flexibility for financial operations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-23",
"end_date": "2026-06-30",
"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 rate fluctuations, providing insights into market volatility and helping developers make informed decisions.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1782778395,
"base": "USD",
"date": "2026-06-30",
"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 endpoint provides critical data for traders and analysts, enabling them to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1782778395,
"base": "USD",
"date": "2026-06-30",
"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 essential for understanding market dynamics and executing trades effectively.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers seeking to access real-time and historical data on Platinum and other precious metals. By leveraging its extensive features and endpoints, developers can create innovative applications that analyze market trends, forecast prices, and support informed investment decisions. The API's capabilities extend beyond simple data retrieval, enabling the integration of advanced analytics and machine learning techniques to predict future price movements.
As the demand for Platinum continues to grow in various industries, staying informed about its market trends and historical pricing becomes increasingly important. The Metals-API not only provides the necessary data but also empowers developers to build robust applications that can adapt to the ever-changing landscape of the metals market. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.