Access Cuban Convertible Peso (CUC) prices using this API
Access Cuban Convertible Peso (CUC) Prices Using This API
The Cuban Convertible Peso (CUC) is a unique currency that plays a significant role in Cuba's economy, particularly in the context of international trade and tourism. With the rise of digital transformation in financial markets, accessing real-time data on CUC prices has become essential for developers and businesses alike. This is where the Metals-API comes into play, offering a robust solution for retrieving up-to-date information on various currencies, including the CUC. In this blog post, we will explore the capabilities of the Metals-API, its key features, and how it can empower developers to create innovative applications that leverage real-time metals data.
About Cuban Convertible Peso (CUC)
The Cuban Convertible Peso (CUC) is a currency that was introduced in Cuba in 1994, primarily to facilitate tourism and foreign investment. Unlike the Cuban Peso (CUP), which is used by locals, the CUC is pegged to the US dollar, making it a crucial element in the country's economy. As Cuba continues to evolve, the integration of technology into financial markets has become increasingly important. The digital transformation in metal markets, driven by technological innovation and advancement, has opened new avenues for data analytics and insights.
With the rise of smart technology integration, businesses can now access real-time data on currency fluctuations, enabling them to make informed decisions. The future trends in currency markets suggest that the demand for accurate and timely data will only increase, making APIs like Metals-API indispensable for developers looking to stay ahead of the curve.
API Description
The Metals-API is a powerful tool designed to provide developers with real-time and historical data on various metals and currencies, including the CUC. This API is built on a foundation of innovation and technological advancement, allowing users to access a wealth of information that can be utilized in various applications. Whether you are building a financial application, a trading platform, or a market analysis tool, the Metals-API offers the flexibility and functionality you need.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data updated at intervals depending on your subscription plan. This means that developers can access the latest rates for the CUC and other currencies every 60 minutes, every 10 minutes, or even more frequently, depending on their needs. This capability is crucial for applications that require up-to-the-minute data to function effectively.
Key Features and Endpoints
The Metals-API comes equipped with a variety of endpoints, each designed to serve specific purposes. Here are some of the key features and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for the CUC and other currencies. Depending on your subscription plan, you can receive updates every 60 minutes, every 10 minutes, or more frequently. This feature is essential for applications that require the latest market data to make informed decisions.
- Historical Rates Endpoint: Access historical rates for the CUC dating back to 2019. By appending a specific date to your query, you can retrieve past exchange rates, allowing for comprehensive analysis and trend identification.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for the CUC. Understanding the bid-ask spread is crucial for traders and investors looking to optimize their transactions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows you to convert any amount from the CUC to other currencies or vice versa. This feature is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing trends over time and making data-driven decisions.
- Fluctuation Endpoint: Retrieve information about how the CUC fluctuates on a day-to-day basis. This feature allows developers to track currency volatility and assess market conditions.
- Carat Endpoint: For those interested in gold rates, the carat endpoint provides information about gold rates by carat. This feature can be integrated into applications focused on precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for the CUC over a specified period. This information is crucial for traders looking to identify optimal entry and exit points.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for the CUC, providing a comprehensive view of market performance over time.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for those involved in trading metals.
- API Key: Your unique API key is required to access the Metals-API. This key is passed into the API base URL's access_key parameter, ensuring secure access to the data.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default. All data is returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The Metals-API features 14 different endpoints, each providing unique functionality to meet various developer needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing developers to stay informed about the latest symbols supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market trends and developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including XAU (Gold), XAG (Silver), XPT (Platinum), and XPD (Palladium). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1773447003,
"base": "USD",
"date": "2026-03-14",
"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"
}
This response shows the latest exchange rates for various metals, including the CUC (XCU), which is crucial for developers looking to integrate real-time data into their applications.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1773360603,
"base": "USD",
"date": "2026-03-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Accessing historical rates allows developers to analyze trends and make informed decisions based on past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-07",
"end_date": "2026-03-14",
"base": "USD",
"rates": {
"2026-03-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint allows developers to track exchange rates over a specific time period, providing valuable insights into market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773447003,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint is particularly useful for applications that require currency conversion, allowing users to easily switch between different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-07",
"end_date": "2026-03-14",
"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"
}
This endpoint provides insights into how the CUC fluctuates over time, allowing developers to assess market volatility and make strategic decisions.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1773447003,
"base": "USD",
"date": "2026-03-14",
"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"
}
Accessing OHLC data is crucial for traders looking to analyze market performance and make informed trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1773447003,
"base": "USD",
"date": "2026-03-14",
"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"
}
This endpoint provides current bid and ask prices, which are essential for traders looking to optimize their transactions in the market.
Conclusion
The Cuban Convertible Peso (CUC) is a vital currency in the context of Cuba's economy, and accessing real-time data on its prices is crucial for developers and businesses. The Metals-API offers a comprehensive solution for retrieving up-to-date information on the CUC and other currencies, empowering developers to create innovative applications that leverage real-time metals data.
With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and Bid/Ask Endpoint, the Metals-API provides the tools necessary for developers to build next-generation applications. By integrating this API into their projects, developers can access valuable insights, track market trends, and make informed decisions based on real-time data.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available currencies. Embrace the future of financial technology and unlock the potential of real-time data with the Metals-API.