Fetch LBMA Platinum Pm (LBXPTPM) Historical Prices effortlessly using this API

Fetch LBMA Platinum Pm (LBXPTPM) Historical Prices Effortlessly Using This API
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is platinum, represented by the symbol XPT. This blog post will explore how to fetch historical prices for LBMA Platinum PM (LBXPTPM) effortlessly using the Metals-API. We will delve into the capabilities of this powerful API, its endpoints, and how developers can leverage it to build innovative applications that utilize real-time and historical metals data.
About Platinum (XPT)
Platinum is a precious metal that has gained significant attention due to its unique properties and applications in various industries. It is not only a symbol of wealth but also plays a vital role in green technology applications, sustainable innovation, and clean energy solutions. As the world shifts towards digital transformation, the integration of smart technology in platinum mining and trading is becoming increasingly important.
In the automotive industry, platinum is used in catalytic converters to reduce harmful emissions, making it essential for meeting environmental regulations. Furthermore, its applications in electronics and jewelry continue to drive demand. As developers and businesses look to harness the potential of platinum, having access to accurate historical pricing data becomes paramount. This is where the Metals-API comes into play.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including platinum. It empowers developers to create next-generation applications that require precise metals data. With its innovative approach, the API allows users to access a wealth of information, including current rates, historical prices, and even fluctuations over time.
One of the standout features of the Metals-API is its ability to deliver data in a structured JSON format, making it easy for developers to integrate into their applications. The API supports various endpoints that cater to different needs, from fetching the latest rates to retrieving historical data dating back to 2019. This flexibility allows businesses to tailor their applications to meet specific requirements.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide different functionalities. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for platinum and other metals. The data is updated every 60 minutes, every 10 minutes, or even more frequently, depending on your plan.
- Historical Rates Endpoint: Access historical rates for platinum dating back to 2019. By appending a specific date to your request, you can retrieve the historical price of platinum for that day.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for platinum, providing insight into the current market conditions.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, making it ideal for trend analysis.
- Fluctuation Endpoint: Retrieve information about how platinum prices fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for platinum over a specified time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols, dating back to 2008, allowing for extensive market analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized use of the service.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured format for easy integration.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, including platinum.
- News Endpoint: Stay updated with the latest news articles related to various metals, including platinum, to keep abreast of market trends.
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 integrate multiple metals into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1756620039,
"base": "USD",
"date": "2025-08-31",
"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 provides the latest exchange rates for platinum (XPT) and other metals, allowing developers to display current market conditions in their applications.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1756533639,
"base": "USD",
"date": "2025-08-30",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical exchange rates for platinum, which is essential for analyzing price trends over time.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-24",
"end_date": "2025-08-31",
"base": "USD",
"rates": {
"2025-08-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-31": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint is particularly useful for developers looking to analyze how platinum prices have changed over a specific period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1756620039,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint allows users to convert amounts between different metals or to/from USD, providing flexibility in financial calculations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-24",
"end_date": "2025-08-31",
"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"
}
The fluctuation endpoint provides insights into how platinum prices have changed over time, which is crucial for traders and analysts.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1756620039,
"base": "USD",
"date": "2025-08-31",
"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 endpoint is essential for traders who rely on technical analysis, as it provides the open, high, low, and close prices for platinum over a specified period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1756620039,
"base": "USD",
"date": "2025-08-31",
"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"
}
The bid/ask endpoint provides real-time market data, which is crucial for traders looking to make quick decisions based on current market conditions.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers looking to access real-time and historical data for platinum and other metals. With its comprehensive range of endpoints, the API allows for seamless integration into applications, enabling users to make informed decisions based on accurate data. Whether you are analyzing historical trends, tracking fluctuations, or converting between metals, the Metals-API provides the tools necessary to succeed in the precious metals market.
For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available metals. Start leveraging the power of real-time metals data today!