Query Platinum Ask (XPT-ASK) Historical Prices via this API
Query Platinum Ask (XPT-ASK) Historical Prices via this API
In the world of precious metals, Platinum (XPT) stands out not only for its rarity but also for its diverse applications in various industries. As a developer or a financial analyst, accessing historical prices for Platinum can provide invaluable insights into market trends, investment opportunities, and economic indicators. The Metals-API offers a robust solution for querying historical prices, enabling you to harness the power of real-time metals data for your applications.
About Platinum (XPT)
Platinum is a precious metal known for its unique properties, making it a critical component in various sectors, including automotive, electronics, and jewelry. Its applications in green technology, such as catalytic converters in vehicles, highlight its role in sustainable innovation and clean energy solutions. As industries pivot towards more sustainable practices, the demand for Platinum is expected to rise, making it essential for developers to access accurate and timely data regarding its pricing.
Moreover, the integration of smart technology and digital transformation in financial markets has made it easier for developers to create applications that can analyze and predict market movements. By leveraging the Metals-API, developers can build next-generation applications that provide real-time insights into Platinum prices, enhancing decision-making processes for investors and analysts alike.
API Description
The Metals-API is a powerful tool designed for developers seeking to access real-time and historical data on various metals, including Platinum. With its innovative capabilities, the API empowers users to build applications that can track price fluctuations, analyze trends, and convert currencies seamlessly. The API is structured to provide comprehensive data through various endpoints, each tailored to meet specific needs.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the capabilities and functionalities of the API in depth.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data requirements. 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 your subscription plan, the data is updated every 60 minutes or every 10 minutes, allowing you to stay informed about the latest market trends.
- Historical Rates Endpoint: Access historical rates for Platinum dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is crucial for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for Platinum. Understanding the spread between these prices can help you make informed trading decisions.
- Convert Endpoint: The API includes a currency conversion feature, enabling you to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is essential for analyzing price movements over specific periods.
- Fluctuation Endpoint: Track how Platinum prices fluctuate between two dates. This feature provides insights into market volatility and can help in risk assessment.
- Open/High/Low/Close (OHLC) Price Endpoint: Retrieve the open, high, low, and close prices for Platinum over a specified period. This data is vital for technical analysis and investment strategies.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the lowest and highest prices for Platinum over a given timeframe, helping you identify market extremes.
- Historical LME Endpoint: Access historical rates for LME symbols, including Platinum, dating back to 2008. This is particularly useful for those interested in the London Metal Exchange data.
- API Key: Your unique API key is essential for accessing the API. It must be included in the API base URL's access_key parameter to authenticate your requests.
- API Response: The Metals-API returns exchange rates relative to USD by default. Understanding the structure of the API response is crucial for effective data handling.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities. Familiarizing yourself with these endpoints will enhance your ability to utilize the API effectively.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals supported by the API. For a complete list, refer to the Metals-API Supported Symbols.
- News Endpoint: Stay updated with the latest news articles related to various metals, including Platinum, through the Metals-API news feature.
API Endpoint Examples and Responses
Understanding the API responses is crucial for developers. Below are examples of JSON responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1759849381,
"base": "USD",
"date": "2025-10-07",
"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 indicates the current exchange rates for various metals, including Platinum (XPT), which is priced at 0.000912 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1759762981,
"base": "USD",
"date": "2025-10-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for a specific date, allowing developers to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-30",
"end_date": "2025-10-07",
"base": "USD",
"rates": {
"2025-09-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-07": {
"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, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759849381,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to troy ounces of Gold (XAU), demonstrating the API's currency conversion capabilities.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-30",
"end_date": "2025-10-07",
"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 example illustrates how the fluctuation endpoint tracks changes in Platinum prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1759849381,
"base": "USD",
"date": "2025-10-07",
"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 response provides critical data for technical analysis, allowing developers to assess market trends based on opening, closing, highest, and lowest prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1759849381,
"base": "USD",
"date": "2025-10-07",
"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 response provides the current bid and ask prices for Platinum, essential for traders looking to make informed decisions based on market conditions.
Conclusion
Accessing historical prices for Platinum through the Metals-API is a powerful way to enhance your financial applications. The API's extensive features, including real-time rates, historical data, and conversion capabilities, empower developers to create innovative solutions that meet the demands of the modern market. By leveraging the API's capabilities, you can gain insights into market trends, optimize trading strategies, and contribute to the growing field of sustainable technology.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Supported Symbols for a comprehensive list of available metals. With the right tools and data, you can unlock the potential of Platinum and other precious metals in your applications.