Get LBMA Platinum Pm (LBXPTPM) Historical Prices in Different Currencies using this API

Get LBMA Platinum Pm (LBXPTPM) Historical Prices in Different Currencies using this API
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. The LBMA Platinum PM (LBXPTPM) is a key indicator for platinum prices, and developers can leverage the Metals-API to retrieve historical prices in various currencies. This blog post will delve into the intricacies of the Metals-API, focusing on how to obtain historical prices for platinum and explore its applications in green technology, sustainable innovation, and digital transformation.
About Platinum (XPT)
Platinum, represented by the symbol XPT, is a precious metal that plays a significant role in various industries, particularly in green technology applications. Its unique properties make it an essential component in catalytic converters, which help reduce harmful emissions from vehicles. As the world shifts towards sustainable innovation and clean energy solutions, the demand for platinum is expected to rise. Moreover, the integration of smart technology in industries is paving the way for more efficient use of platinum, further enhancing its value.
In addition to its industrial applications, platinum is also a popular investment choice. Investors often seek historical price data to analyze trends and make informed decisions. The Metals-API provides a robust platform for accessing this data, empowering developers to create applications that can track platinum prices in real-time and across different currencies.
API Description
The Metals-API is a powerful tool that offers real-time and historical data for various metals, including platinum. With its advanced capabilities, developers can build next-generation applications that utilize real-time metals data for trading, investment analysis, and market research. The API's innovative design allows for seamless integration into existing systems, making it an invaluable resource for developers in the financial and commodities sectors.
One of the standout features of the Metals-API is its ability to provide data in multiple currencies. This is particularly useful for international investors who want to track platinum prices in their local currency. The API supports a wide range of currencies, ensuring that users can access the information they need, regardless of their location.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality. Here are some of the most important endpoints and their potential applications:
- 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 or every 10 minutes, allowing users to stay informed about market fluctuations.
- 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 historical price data, which is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for platinum. Understanding the bid-ask spread is crucial for traders looking to make informed decisions in the market.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one currency to another. This is particularly useful for investors who want to analyze platinum prices in different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price movements over time.
- Fluctuation Endpoint: Users can track how platinum prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility and helps traders make informed decisions.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which can be useful for those interested in the jewelry market.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for platinum over a specified period, helping them identify market trends and price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for platinum, which are essential for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols, dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's features. This ensures secure and authorized access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy for developers to parse and utilize.
- Available Endpoints: The API offers a variety of endpoints, each providing different functionalities. Developers can explore these options to find the best fit for their applications.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, ensuring users have access to the latest information.
- Gold Price India Endpoint: For those interested in the Indian market, this endpoint provides the latest gold prices in India, which can be useful for investors in that region.
- News Endpoint: The Metals-API also includes a news endpoint, allowing users to retrieve the latest articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for developers looking to integrate the Metals-API into their applications. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1749344764,
"base": "USD",
"date": "2025-06-08",
"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 includes a success flag, a timestamp, the base currency (USD), the date of the rates, and the rates for various metals, including platinum (XPT).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1749258364,
"base": "USD",
"date": "2025-06-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint provides historical rates for a specified date, allowing users to analyze past price movements.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-01",
"end_date": "2025-06-08",
"base": "USD",
"rates": {
"2025-06-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-08": {
"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": 1749344764,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert amounts between different metals or currencies, providing valuable insights for investment decisions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-01",
"end_date": "2025-06-08",
"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 provides insights into how prices fluctuate over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1749344764,
"base": "USD",
"date": "2025-06-08",
"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 is crucial for traders who rely on technical analysis to make informed decisions based on price movements.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1749344764,
"base": "USD",
"date": "2025-06-08",
"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 traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API offers a comprehensive solution for developers looking to access historical prices for platinum and other metals. With its wide range of endpoints and capabilities, the API empowers users to build innovative applications that can analyze market trends, track price fluctuations, and make informed investment decisions. By leveraging the power of real-time metals data, developers can create solutions that enhance trading strategies and provide valuable insights into the precious metals market.
For more information on how to get started with the Metals-API, be sure to check out the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available currencies and metals. Whether you're a seasoned trader or a developer looking to integrate metals data into your applications, the Metals-API is your go-to resource for accurate and timely information.