Connect to the API to get LBMA Platinum Pm (LBXPTPM) prices
Introduction
In today's fast-paced financial landscape, the ability to access real-time data is crucial for developers and businesses alike. One of the most valuable resources in this regard is the Metals-API, which provides comprehensive data on precious metals, including the LBMA Platinum PM (LBXPTPM) prices. This blog post will delve into the intricacies of Platinum (XPT), its markets, and how the Metals-API can empower developers to create innovative applications that leverage real-time metals data.
About Platinum (XPT)
Platinum, often regarded as a precious metal of great value, plays a significant role in various industries, particularly in green technology applications and sustainable innovation. Its unique properties make it an essential component in catalytic converters, which are crucial for reducing harmful emissions in vehicles. As the world shifts towards clean energy solutions, the demand for Platinum is expected to rise, driven by its integration into smart technology and digital transformation initiatives.
In addition to its industrial applications, Platinum is also a popular investment vehicle. Investors often turn to Platinum as a hedge against inflation and economic uncertainty. Understanding the dynamics of the Platinum market is essential for developers looking to create applications that provide insights into price movements and market trends.
API Description
The Metals-API is a powerful tool designed to provide developers with real-time and historical data on various metals, including Platinum. This API enables users to access a wealth of information, including current prices, historical trends, and conversion rates between different metals and currencies. By leveraging the Metals-API, developers can build next-generation applications that offer users valuable insights into the metals market.
One of the standout features of the Metals-API is its ability to deliver data in real-time, allowing applications to provide up-to-date information on metal prices. This capability is particularly beneficial for financial applications, trading platforms, and market analysis tools. The API's robust documentation, available at Metals-API Documentation, provides developers with the necessary guidance to implement its features effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to the needs of developers and businesses. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint is a crucial feature that allows users to retrieve real-time exchange rate data for various metals, including Platinum. Depending on the subscription plan, this endpoint can return data updated every 60 minutes or even every 10 minutes. This feature is essential for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1780100065,
"base": "USD",
"date": "2026-05-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"
}
Historical Rates Endpoint
This endpoint provides access to historical rates for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a specific date in the format YYYY-MM-DD. This feature is particularly useful for applications that analyze trends over time or require historical data for reporting purposes.
{
"success": true,
"timestamp": 1780013665,
"base": "USD",
"date": "2026-05-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders and investors who need to make informed decisions based on current market conditions. The bid price represents the maximum price that a buyer is willing to pay for a metal, while the ask price is the minimum price that a seller is willing to accept.
{
"success": true,
"timestamp": 1780100065,
"base": "USD",
"date": "2026-05-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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion for pricing or trading purposes. Developers can specify the amount and the currencies involved in the conversion.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780100065,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for applications that analyze price trends over specific periods, enabling users to visualize and interpret data effectively.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-23",
"end_date": "2026-05-30",
"base": "USD",
"rates": {
"2026-05-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
Using the Fluctuation Endpoint, developers can retrieve information about how metal prices fluctuate on a day-to-day basis. This feature is essential for applications that track market volatility and provide insights into price changes over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-23",
"end_date": "2026-05-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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides users with the open, high, low, and close prices for a specific time period. This data is essential for traders who analyze price movements and make decisions based on historical performance.
{
"success": true,
"timestamp": 1780100065,
"base": "USD",
"date": "2026-05-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"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for applications that require long-term historical data for analysis and reporting.
API Key and Authentication
To access the Metals-API, developers must obtain an API key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the API's features.
API Response and Data Structure
The exchange rates delivered by the Metals-API are, by default, relative to USD. All data is returned in a structured JSON format, making it easy for developers to parse and utilize the information in their applications. Understanding the structure of the API response is crucial for effective data handling and integration.
Performance Optimization and Best Practices
When integrating the Metals-API into applications, developers should consider performance optimization strategies, such as caching frequently accessed data and minimizing the number of API calls. Implementing error handling and recovery strategies is also essential to ensure a seamless user experience.
Conclusion
The Metals-API is a powerful resource for developers looking to access real-time and historical data on precious metals, including Platinum. With its extensive range of features and endpoints, the API empowers developers to create innovative applications that provide valuable insights into the metals market. By leveraging the capabilities of the Metals-API, businesses can stay ahead of market trends and make informed decisions based on accurate data.
For more information on the Metals-API and to explore its capabilities, visit the Metals-API Website and check out the Metals-API Documentation for detailed guidance on implementation. Additionally, for a complete list of supported symbols, refer to the Metals-API Supported Symbols page.