Download Historical Price Data for LBMA Platinum Am (LBXPTAM) using this API
Download Historical Price Data for LBMA Platinum Am (LBXPTAM) using this API
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and analysts interested in Platinum, the LBMA Platinum Am (LBXPTAM) symbol represents a significant benchmark. This blog post will explore how to download historical price data for LBMA Platinum Am using the Metals-API, a powerful tool that provides real-time and historical data for various metals.
About Platinum (XPT)
Platinum is not just a precious metal; it plays a pivotal role in various industries, particularly in green technology applications. As the world shifts towards sustainable innovation and clean energy solutions, the demand for platinum is expected to rise. Its unique properties make it an essential component in catalytic converters, which help reduce harmful emissions from vehicles. Furthermore, platinum is increasingly being integrated into smart technology solutions, enhancing the efficiency of energy systems.
The digital transformation of industries has also led to a surge in the need for real-time data. Developers can leverage the capabilities of the Metals-API to create applications that provide insights into platinum prices, helping businesses and consumers make better financial decisions. By utilizing this API, developers can tap into the transformative potential of real-time metals data, enabling them to build next-generation applications that cater to the evolving market demands.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data. It offers a range of endpoints that allow users to retrieve real-time and historical price information for various metals, including platinum. The API is built with innovation in mind, enabling seamless integration into applications that require accurate and timely metals data.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can provide updates every 60 minutes, every 10 minutes, or even more frequently. This capability is essential for traders who need to stay informed about market fluctuations.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each serving a unique purpose. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for platinum and other metals. Users can access the latest rates based on their subscription plan, ensuring they have the most current information available.
- Historical Rates Endpoint: Users can query historical rates for platinum dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve historical price data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for platinum. Understanding the bid-ask spread is crucial for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This functionality is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Developers can use this endpoint to query daily historical rates between two specified dates. This feature is essential for analyzing price trends over time.
- Fluctuation Endpoint: This endpoint provides information about how platinum prices fluctuate on a day-to-day basis. Users can track changes in price, helping them make informed trading decisions.
- Carat Endpoint: For those interested in gold rates by carat, this endpoint allows users to retrieve relevant information by appending a base to the request.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for platinum over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for platinum, which are critical for traders looking to analyze market performance.
- Historical LME Endpoint: This endpoint offers 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 must be included in requests to authenticate access to the API.
- API Response: The Metals-API returns exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 endpoints, each designed to provide specific functionalities related to metals pricing.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metals and their specifications, allowing users to stay informed about the latest offerings.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market trends and developments.
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 specific metal data 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 API endpoints, showcasing their functionality and the structure of the responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1774484242,
"base": "USD",
"date": "2026-03-26",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1774397842,
"base": "USD",
"date": "2026-03-25",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-03-19",
"end_date": "2026-03-26",
"base": "USD",
"rates": {
"2026-03-19": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-21": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-26": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1774484242,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-19",
"end_date": "2026-03-26",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1774484242,
"base": "USD",
"date": "2026-03-26",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1774484242,
"base": "USD",
"date": "2026-03-26",
"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"
}
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers and analysts looking to access historical price data for LBMA Platinum Am (LBXPTAM) and other metals. With its comprehensive range of endpoints, the API empowers users to build applications that leverage real-time and historical data, facilitating informed decision-making in the precious metals market.
By understanding the various features and capabilities of the Metals-API, developers can create innovative solutions that address the evolving needs of the market. Whether it's tracking price fluctuations, analyzing historical trends, or integrating real-time data into applications, the Metals-API provides the tools necessary for success.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data you need. With the right tools and knowledge, you can harness the power of metals data to drive your projects forward.