Get West African Cfa Franc (XOF) Historical Prices using this API

Metals-API 5 min read
Get West African Cfa Franc (XOF) Historical Prices using this API

Get West African Cfa Franc (XOF) Historical Prices using this API

The West African Cfa Franc (XOF) is a vital currency in the economic landscape of West Africa, serving as the primary medium of exchange for several countries in the region. As the demand for accurate and timely financial data grows, developers and businesses are increasingly turning to APIs to access historical price data for currencies like the XOF. One such powerful tool is the Metals-API, which provides comprehensive access to real-time and historical data for various metals and currencies, including the West African Cfa Franc.

About West African Cfa Franc (XOF)

The West African Cfa Franc is used by eight countries in West Africa, including Benin, Burkina Faso, Côte d'Ivoire, Guinea-Bissau, Mali, Niger, Senegal, and Togo. It is pegged to the Euro, which helps stabilize its value against major currencies. As the region continues to undergo digital transformation, the integration of technology in financial markets is becoming increasingly important. The use of data analytics and smart technology is revolutionizing how businesses and individuals interact with currency markets.

Technological innovations are paving the way for more efficient trading and investment strategies. For instance, the ability to access historical price data through APIs allows developers to create applications that can analyze trends, forecast future movements, and provide insights into market behavior. This is particularly relevant for the XOF, as understanding its historical performance can inform investment decisions and risk management strategies.

API Description

The Metals-API is designed to provide developers with real-time and historical data on metals and currencies. It empowers users to build next-generation applications that leverage this data for various purposes, including financial analysis, trading, and market research. The API's capabilities include:

  • Real-time Data Access: The API provides real-time exchange rates for metals and currencies, updated frequently based on the subscription plan.
  • Historical Data: Users can access historical rates dating back to 2019, allowing for in-depth analysis of price trends over time.
  • Comprehensive Endpoints: The API offers multiple endpoints, each designed to fulfill specific data retrieval needs, from conversion rates to fluctuation tracking.

With the Metals-API, developers can integrate financial data into their applications seamlessly, enabling them to create tools that enhance decision-making processes and improve user experiences.

Key Features and Endpoints

The Metals-API offers a variety of endpoints that cater to different data needs. Here’s a closer look at some of the most significant features:

  • Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals and currencies, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. For example, querying the latest rates for the XOF would return the current exchange rate against other currencies.
  • {
    "success": true,
    "timestamp": 1770164575,
    "base": "USD",
    "date": "2026-02-04",
    "rates": {
    "XOF": 600.00,
    "XAU": 0.000482,
    "XAG": 0.03815
    },
    "unit": "per troy ounce"
    }
  • Historical Rates Endpoint: Users can query historical rates for the XOF by appending a specific date to the API request. This feature is crucial for analyzing past performance and making informed predictions.
  • {
    "success": true,
    "timestamp": 1770078175,
    "base": "USD",
    "date": "2026-02-03",
    "rates": {
    "XOF": 605.00,
    "XAU": 0.000485,
    "XAG": 0.03825
    },
    "unit": "per troy ounce"
    }
  • Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
  • {
    "success": true,
    "timestamp": 1770164575,
    "base": "USD",
    "date": "2026-02-04",
    "rates": {
    "XOF": {
    "bid": 599.00,
    "ask": 601.00,
    "spread": 2.00
    },
    "XAU": {
    "bid": 0.000481,
    "ask": 0.000483,
    "spread": 2.0e-6
    }
    },
    "unit": "per troy ounce"
    }
  • Convert Endpoint: This endpoint allows users to convert any amount from one currency to another, making it easy to calculate values in different currencies, including the XOF.
  • {
    "success": true,
    "query": {
    "from": "USD",
    "to": "XOF",
    "amount": 1000
    },
    "info": {
    "timestamp": 1770164575,
    "rate": 600.00
    },
    "result": 600000,
    "unit": "XOF"
    }
  • Time-Series Endpoint: This feature allows users to query the API for daily historical rates between two dates of their choice, enabling comprehensive trend analysis.
  • {
    "success": true,
    "timeseries": true,
    "start_date": "2026-01-28",
    "end_date": "2026-02-04",
    "base": "USD",
    "rates": {
    "2026-01-28": {
    "XOF": 610.00,
    "XAU": 0.000485
    },
    "2026-02-04": {
    "XOF": 600.00,
    "XAU": 0.000482
    }
    },
    "unit": "per troy ounce"
    }
  • Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, which is essential for understanding market volatility.
  • {
    "success": true,
    "fluctuation": true,
    "start_date": "2026-01-28",
    "end_date": "2026-02-04",
    "base": "USD",
    "rates": {
    "XOF": {
    "start_rate": 610.00,
    "end_rate": 600.00,
    "change": -10.00,
    "change_pct": -1.64
    }
    },
    "unit": "XOF"
    }
  • Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to retrieve the open, high, low, and close prices for a specific time period, providing a comprehensive view of market performance.
  • {
    "success": true,
    "timestamp": 1770164575,
    "base": "USD",
    "date": "2026-02-04",
    "rates": {
    "XOF": {
    "open": 610.00,
    "high": 612.00,
    "low": 598.00,
    "close": 600.00
    }
    },
    "unit": "XOF"
    }
  • Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, which is useful for analyzing long-term trends.
  • API Key: The API Key is a unique identifier that must be included in API requests to authenticate and authorize access to the data.
  • API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
  • Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities, catering to various data retrieval needs.
  • Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, including the XOF, allowing users to stay informed about the symbols they can work with.
  • News Endpoint: The API also provides access to the latest news articles related to various metals, keeping users updated on market trends and 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 integrate specific metals and currencies into their applications.

Conclusion

In conclusion, the West African Cfa Franc (XOF) plays a crucial role in the economies of West Africa, and accessing its historical prices through the Metals-API can provide significant insights for developers and businesses alike. The API's robust features, including real-time data access, historical rates, and various endpoints, empower users to create innovative applications that leverage financial data effectively.

By utilizing the Metals-API, developers can enhance their applications with accurate and timely financial data, enabling better decision-making and strategic planning. Whether you are analyzing market trends, forecasting future movements, or developing trading strategies, the Metals-API offers the tools necessary to succeed in today's fast-paced financial landscape.