Get Cfp Franc (XPF) prices using this API
Get Cfp Franc (XPF) Prices Using This API
The Cfp Franc (XPF) is a unique currency that plays a significant role in the Pacific region's economy. As developers and businesses increasingly seek real-time data to drive their applications, accessing accurate and timely exchange rates for currencies like the Cfp Franc becomes essential. In this blog post, we will explore the capabilities of the Metals-API, which provides comprehensive data on metals and currencies, including the Cfp Franc. We will delve into the API's features, how it works, and the transformative potential it holds for developers looking to integrate real-time financial data into their applications.
About Cfp Franc (XPF)
The Cfp Franc (XPF) is the currency used in French Polynesia, New Caledonia, and the French Southern and Antarctic Lands. As a currency tied to the Euro, it is crucial for businesses operating in these regions to have access to accurate exchange rates. The digital transformation in metal markets has opened new avenues for technological innovation and advancement, allowing for better data analytics and insights. By integrating smart technology, developers can create applications that not only track currency fluctuations but also predict future trends based on historical data.
As we explore the capabilities of the Metals-API, we will see how it empowers developers to build next-generation applications that leverage real-time metals data. The API provides a wealth of information that can be utilized for various applications, from financial analysis to market forecasting.
API Description
The Metals-API is a powerful tool that allows developers to access real-time and historical data on metals and currencies. With its innovative design, the API offers a range of endpoints that cater to different data needs. Whether you are looking for the latest exchange rates, historical data, or specific metrics like bid and ask prices, the Metals-API has you covered.
One of the standout features of the Metals-API is its ability to deliver real-time data updates. Depending on your subscription plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently. This level of granularity ensures that you have the most current information at your fingertips, allowing for informed decision-making.
For developers looking to integrate this API into their applications, the Metals-API Documentation provides comprehensive guidance on how to get started. The documentation covers everything from authentication to endpoint usage, ensuring that developers have all the information they need to implement the API effectively.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to provide specific functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals and currencies, including the Cfp Franc. Depending on your subscription plan, you can receive updates at different intervals.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. This feature is invaluable for analyzing trends and making informed predictions about future market movements.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing for precise trading decisions.
- Convert Endpoint: Easily convert amounts from one currency to another, facilitating transactions and financial calculations.
- Time-Series Endpoint: Query daily historical rates between two dates, enabling in-depth analysis of market trends over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is essential for jewelers and investors alike.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for metals over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Access comprehensive OHLC data for specific time periods, crucial for traders looking to analyze market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency across data points.
- Available Endpoints: The Metals-API features 14 endpoints, each designed to meet different data needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market 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 understand the various currencies and metals available through the API.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, let's explore some example responses for key endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1774051705,
"base": "USD",
"date": "2026-03-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1773965305,
"base": "USD",
"date": "2026-03-20",
"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-14",
"end_date": "2026-03-21",
"base": "USD",
"rates": {
"2026-03-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-21": {
"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": 1774051705,
"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-14",
"end_date": "2026-03-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1774051705,
"base": "USD",
"date": "2026-03-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1774051705,
"base": "USD",
"date": "2026-03-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"
}
Conclusion
In conclusion, the Metals-API offers a robust solution for developers seeking to integrate real-time and historical data on metals and currencies, including the Cfp Franc (XPF). With its wide range of endpoints and features, the API empowers developers to create applications that can analyze market trends, track fluctuations, and make informed financial decisions. By leveraging the capabilities of the Metals-API, businesses can stay ahead in a rapidly evolving digital landscape.
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 to familiarize yourself with the various currencies and metals available through the API.