Get West African Cfa Franc (XOF) trading prices using this API
Get West African Cfa Franc (XOF) Trading Prices Using Metals-API
The West African Cfa Franc (XOF) plays a crucial role in the economies of several West African countries. As a developer, accessing real-time trading prices for the XOF can significantly enhance your applications, especially in the context of financial services, trading platforms, and economic analysis tools. By leveraging the Metals-API, you can obtain accurate and timely data on the XOF and other currencies, enabling you to create innovative solutions that meet the demands of today's digital economy.
About West African Cfa Franc (XOF)
The West African Cfa Franc (XOF) is the currency used by eight countries in West Africa, including Benin, Burkina Faso, CΓ΄te d'Ivoire, Guinea-Bissau, Mali, Niger, Senegal, and Togo. Understanding the dynamics of the XOF is essential for developers working in financial technology, as it is influenced by various factors such as trade balances, inflation rates, and geopolitical stability. The digital transformation in metal markets has opened up new avenues for accessing and analyzing currency data, particularly through APIs like Metals-API.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on metals and currencies, including the West African Cfa Franc. This API is designed to empower developers to build next-generation applications that require accurate and timely financial data. With its innovative features and capabilities, Metals-API enables seamless integration of real-time metals data into various applications, enhancing user experience and decision-making processes.
For developers looking to harness the potential of the Metals-API, the Metals-API Documentation provides comprehensive guidance on how to implement and utilize the API effectively. The documentation covers everything from authentication to endpoint usage, ensuring that developers have all the information they need to get started.
Key Features and Endpoints
The Metals-API offers a variety 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 the XOF and other currencies. Depending on your subscription plan, the API updates this data every 60 minutes or every 10 minutes, ensuring that you have access to the most current information.
- Historical Rates Endpoint: Access historical exchange rates for the XOF dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve past rates, which is invaluable for trend analysis and economic forecasting.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for the XOF. Understanding these prices is crucial for traders and financial analysts who need to make informed decisions based on market conditions.
- Convert Endpoint: The conversion endpoint enables you to convert any amount from one currency to another, including the XOF. This is particularly useful for applications that require currency conversion functionalities.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is essential for analyzing trends over time and making data-driven decisions.
- Fluctuation Endpoint: Track how the XOF fluctuates on a day-to-day basis. This endpoint provides insights into market volatility, which is critical for risk management and investment strategies.
- Carat Endpoint: Retrieve information about gold rates by carat. This feature is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest price of the XOF over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close prices for the XOF, which are essential for technical analysis in trading.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- API Key: Your API Key is essential for accessing the Metals-API. It is passed into the API base URL's access_key parameter to authenticate your requests.
- API Response: The exchange rates delivered by the Metals-API are relative to USD by default, ensuring consistency in data representation.
- Supported Symbols Endpoint: This endpoint returns all available currencies, including the XOF, allowing developers to stay updated on supported symbols.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, which is beneficial for high-frequency trading applications.
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 who need to ensure they are working with the correct symbols in their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals, including the XOF:
{
"success": true,
"timestamp": 1785543087,
"base": "USD",
"date": "2026-08-01",
"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": 1785456687,
"base": "USD",
"date": "2026-07-31",
"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-07-25",
"end_date": "2026-08-01",
"base": "USD",
"rates": {
"2026-07-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-01": {
"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": 1785543087,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-25",
"end_date": "2026-08-01",
"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": 1785543087,
"base": "USD",
"date": "2026-08-01",
"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": 1785543087,
"base": "USD",
"date": "2026-08-01",
"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 West African Cfa Franc (XOF) is a vital currency in the West African region, and accessing its trading prices through the Metals-API can significantly enhance your applications. The API's robust features, including real-time rates, historical data, and conversion capabilities, empower developers to create innovative financial solutions. By understanding the various endpoints and their functionalities, you can effectively integrate the Metals-API into your projects, ensuring that you provide users with accurate and timely financial data.
For more information on how to implement the Metals-API in your applications, refer to the Metals-API Documentation. Additionally, explore the Metals-API Supported Symbols page to stay updated on the available currencies and metals. By leveraging these resources, you can maximize the potential of your applications and stay ahead in the competitive financial technology landscape.