How to Retrieve Palladium Ask (XPD-ASK) Historical Prices using this API

How to Retrieve Palladium Ask (XPD-ASK) Historical Prices using this API
Palladium, represented by the symbol XPD, is a precious metal that has gained significant attention in recent years due to its critical role in automotive technology and environmental solutions. As the automotive industry shifts towards cleaner technologies, palladium's demand has surged, making it essential for developers and analysts to access accurate historical pricing data. In this blog post, we will explore how to retrieve Palladium Ask (XPD-ASK) historical prices using the Metals-API, a powerful tool that provides real-time and historical data on various metals, including palladium.
About Palladium (XPD)
Palladium is a rare, silvery-white metal that is primarily used in catalytic converters for automobiles, which help reduce harmful emissions. As the automotive industry embraces innovation, palladium has become increasingly important in the development of electric vehicles and hybrid technologies. Its unique properties also make it valuable in electronics, dentistry, and jewelry. The growing emphasis on environmental solutions has further propelled the demand for palladium, as it plays a crucial role in reducing the carbon footprint of vehicles.
Moreover, the integration of digital supply chains and smart manufacturing processes has transformed how palladium is sourced and utilized. The ability to track and analyze palladium prices in real-time can empower businesses to make informed decisions, optimize their supply chains, and enhance their manufacturing processes. This is where the Metals-API comes into play, offering developers the tools they need to access and utilize real-time metals data effectively.
API Description
The Metals-API is a comprehensive solution for accessing real-time and historical data on various metals, including palladium. It provides developers with the ability to build next-generation applications that require accurate and timely metals pricing information. With its user-friendly interface and extensive documentation, the Metals-API empowers developers to integrate metals data seamlessly into their applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, which is updated frequently based on the subscription plan. This ensures that users have access to the most current pricing information, which is crucial for making informed decisions in a fast-paced market.
Additionally, the API offers a range of endpoints that cater to various needs, including historical rates, bid and ask prices, currency conversion, and time-series data. This versatility makes it an invaluable resource for developers looking to leverage metals data for applications in finance, trading, and market analysis.
Key Features and Endpoints
The Metals-API provides several key features that enhance its usability and functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Historical rates are available for most metals dating back to 2019. You can query the Metals-API for historical rates by appending a date to the endpoint, allowing you to analyze price trends over time.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for palladium and other metals, providing insights into market conditions and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which allows you to convert any amount from one metal to another or to/from USD. This is particularly useful for traders and analysts who need to assess the value of metals in different currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Using this endpoint, you can retrieve information about how palladium prices fluctuate on a day-to-day basis, helping you understand market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, which can be useful for jewelers and investors in the gold market.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest price of palladium 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 palladium, which are critical for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your API Key is a unique identifier that is passed into the API base URL's access_key parameter, ensuring secure access to the API.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, ensuring that users can easily find the data they need.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is useful for investors in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market trends.
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 metals 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 and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1760490248,
"base": "USD",
"date": "2025-10-15",
"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": 1760403848,
"base": "USD",
"date": "2025-10-14",
"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": "2025-10-08",
"end_date": "2025-10-15",
"base": "USD",
"rates": {
"2025-10-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-15": {
"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": 1760490248,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-08",
"end_date": "2025-10-15",
"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": 1760490248,
"base": "USD",
"date": "2025-10-15",
"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": 1760490248,
"base": "USD",
"date": "2025-10-15",
"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, retrieving Palladium Ask (XPD-ASK) historical prices using the Metals-API is a straightforward process that can significantly enhance your ability to analyze market trends and make informed decisions. The API's extensive features, including real-time rates, historical data, and various endpoints, provide developers with the tools necessary to create robust applications that leverage metals data.
As the demand for palladium continues to rise, understanding its pricing dynamics will be crucial for businesses and investors alike. By utilizing the Metals-API, you can access accurate and timely data, enabling you to stay ahead in a competitive market. For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data that best suits your needs.