Fetch Platinum Bid (XPT-BID) Historical Prices through this API

Fetch Platinum Bid (XPT-BID) Historical Prices through this API
In the ever-evolving landscape of financial technology, the demand for real-time data and historical insights has never been greater. For developers and businesses looking to integrate precious metals data into their applications, the Metals-API offers a robust solution. This blog post will delve into the specifics of fetching historical prices for Platinum (XPT) using the Metals-API, exploring its capabilities, features, and practical applications.
About Platinum (XPT)
Platinum, represented by the symbol XPT, is a precious metal that plays a crucial role in various industries, particularly in green technology applications and sustainable innovations. As the world shifts towards clean energy solutions, the demand for platinum is expected to rise, especially in catalytic converters for vehicles and in hydrogen fuel cells. This shift not only highlights the importance of platinum in the transition to a greener economy but also emphasizes the need for accurate and timely data regarding its market value.
Digital transformation is reshaping how industries operate, and the integration of smart technology into financial systems is at the forefront of this change. The Metals-API empowers developers to harness real-time metals data, enabling them to build next-generation applications that can respond to market fluctuations and provide users with valuable insights. By leveraging the API, developers can access historical prices, track trends, and make informed decisions based on accurate data.
API Description
The Metals-API is designed to provide developers with a comprehensive suite of tools for accessing metals data. With a focus on innovation and technological advancement, this API allows users to retrieve real-time and historical data for various metals, including platinum. The API's capabilities extend beyond simple data retrieval; it empowers developers to create applications that can analyze trends, forecast prices, and provide users with actionable insights.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints, their functionalities, and usage examples. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, including platinum.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data 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 the subscription plan, the API can return updates every 60 minutes or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Developers can access historical rates for platinum dating back to 2019. By appending a specific date to the API request, users can retrieve the price of platinum on that date, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for platinum. Understanding the bid-ask spread is crucial for traders and investors looking to make informed decisions in the market.
- Convert Endpoint: The API includes a currency conversion feature that allows users to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that deal with multiple currencies and need to provide users with accurate conversion rates.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two specified dates. This feature is invaluable for analyzing trends and fluctuations over time, enabling users to make data-driven decisions.
- Fluctuation Endpoint: Users can track how platinum prices fluctuate over a specified period. This endpoint provides insights into market volatility, helping traders and analysts understand price movements.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for platinum, allowing users to analyze price movements throughout a trading day. This information is critical for technical analysis and trading strategies.
- Historical LME Endpoint: For those interested in the London Metal Exchange (LME) prices, this endpoint provides historical rates dating back to 2008. This is particularly useful for institutional investors and analysts.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API. This ensures secure and controlled access to the data.
- API Response: The API returns exchange rates relative to USD by default, providing a consistent basis for comparison across different metals.
- News Endpoint: The API also includes a news endpoint that retrieves the latest articles related to various metals, keeping users informed about market trends and developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of API responses for various endpoints, showcasing the data structure and providing context for each field.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761022828,
"base": "USD",
"date": "2025-10-21",
"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 timestamp, base currency (USD), and the current rates for various metals, including platinum (XPT).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760936428,
"base": "USD",
"date": "2025-10-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for platinum on a specific date, allowing users to analyze past performance and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"base": "USD",
"rates": {
"2025-10-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for platinum over a specified period, enabling users to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761022828,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert a specified amount from USD to platinum, providing the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"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 fluctuations in platinum prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1761022828,
"base": "USD",
"date": "2025-10-21",
"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 response provides OHLC data for platinum, which is essential for traders looking to analyze market movements and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1761022828,
"base": "USD",
"date": "2025-10-21",
"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 for platinum, allowing traders to understand market conditions and make timely decisions.
Conclusion
The Metals-API offers a powerful suite of tools for developers looking to integrate precious metals data into their applications. With features like real-time rates, historical data access, and advanced endpoints for conversion and fluctuation tracking, the API is designed to meet the needs of modern financial applications. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that provide users with valuable insights into the precious metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Additionally, check out the Metals-API Supported Symbols page for a complete list of available metal symbols.