Retrieve Central African Cfa Franc (XAF) Historical Prices through this API
Retrieve Central African Cfa Franc (XAF) Historical Prices through this API
The Central African Cfa Franc (XAF) is a crucial currency in the Central African region, serving as a medium of exchange for several countries. As the demand for accurate and real-time financial data grows, developers and businesses are increasingly looking for reliable APIs to retrieve historical prices and exchange rates. One such powerful tool is the Metals-API, which provides comprehensive access to metals pricing and currency conversion, including the historical data for the Central African Cfa Franc.
About Central African Cfa Franc (XAF)
The Central African Cfa Franc is used by six countries in Central Africa, namely Cameroon, Central African Republic, Chad, Republic of the Congo, Equatorial Guinea, and Gabon. As a currency tied to the Euro, its value is influenced by various economic factors, including commodity prices, trade balances, and geopolitical stability. In today's digital age, the integration of technology in financial markets has transformed how traders and businesses access and analyze currency data.
With the rise of digital transformation, the metal markets have also seen significant advancements. The integration of smart technologies and data analytics has enabled stakeholders to gain insights into market trends and make informed decisions. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is designed to provide developers with a robust platform for accessing real-time and historical metals pricing data. This API empowers users to build applications that can analyze trends, convert currencies, and retrieve historical prices with ease. With its innovative features, the Metals-API is a game-changer for anyone looking to integrate financial data into their applications.
For more detailed information on how to utilize the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on the various endpoints available, including the latest rates, historical rates, and more.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Hereβs a closer look at some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated at intervals of 60 minutes, 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the Metals-API for historical rates, making it a valuable tool for trend analysis and financial forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for various metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a dedicated currency conversion endpoint, enabling users to convert amounts from one currency to another seamlessly. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is ideal for analyzing price movements over time and understanding market trends.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into volatility and market behavior.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices within a specified date range, offering insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access detailed OHLC data for specific time periods, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, making it a valuable resource for historical analysis.
- API Key: Each user is assigned a unique API key, which must be included in the API base URL's access_key parameter to authenticate requests.
- API Response: The Metals-API delivers 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 tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest offerings.
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 full scope of available data.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1779927256,
"base": "USD",
"date": "2026-05-28",
"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": 1779840856,
"base": "USD",
"date": "2026-05-27",
"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-05-21",
"end_date": "2026-05-28",
"base": "USD",
"rates": {
"2026-05-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-28": {
"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": 1779927256,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-21",
"end_date": "2026-05-28",
"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": 1779927256,
"base": "USD",
"date": "2026-05-28",
"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": 1779927256,
"base": "USD",
"date": "2026-05-28",
"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 looking to retrieve historical prices and real-time data for the Central African Cfa Franc (XAF) and other metals. With its comprehensive set of features, including the latest rates, historical data, and various endpoints tailored for specific needs, the API empowers users to build sophisticated applications that can analyze market trends and make informed decisions.
By leveraging the capabilities of the Metals-API, developers can integrate advanced data analytics, enhance their applications with real-time pricing, and stay ahead of market fluctuations. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
As the financial landscape continues to evolve, embracing innovative technologies like the Metals-API will be essential for staying competitive in the market. Whether you are a developer, trader, or business owner, the ability to access accurate and timely financial data will undoubtedly enhance your decision-making processes and drive success.