Get real-time Cuban Convertible Peso (CUC) prices using this API
Get Real-Time Cuban Convertible Peso (CUC) Prices Using Metals-API
The Cuban Convertible Peso (CUC) has been a significant currency in the Cuban economy, especially in the context of international trade and tourism. With the rise of digital transformation in financial markets, accessing real-time data on currencies like the CUC has become essential for developers and businesses alike. The Metals-API provides a robust solution for obtaining real-time CUC prices and other metal-related data, empowering developers to create innovative applications that leverage this information.
About Cuban Convertible Peso (CUC)
The Cuban Convertible Peso (CUC) was introduced in 1994 as a response to the economic crisis in Cuba. It was designed to facilitate transactions with foreign tourists and investors, effectively acting as a parallel currency to the Cuban Peso (CUP). As Cuba continues to evolve economically, the CUC remains a critical component of its financial landscape. Understanding the dynamics of the CUC is vital for developers looking to integrate currency data into their applications.
Digital Transformation in Metal Markets
The integration of technology in financial markets has led to significant advancements in how data is collected, analyzed, and utilized. The Metals-API exemplifies this transformation by providing real-time access to metal prices and currency exchange rates, including the CUC. This API enables developers to build applications that can respond to market changes instantly, offering users up-to-date information that can influence trading decisions.
API Description
The Metals-API is a powerful tool that allows developers to access real-time and historical data on metal prices and currency exchange rates. With a focus on innovation and technological advancement, this API empowers users to create next-generation applications that can analyze market trends, perform currency conversions, and track fluctuations in metal prices. The API is designed to be user-friendly, with comprehensive documentation available at the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various currencies, including the CUC. Depending on your subscription plan, updates can occur every 60 minutes or even more frequently.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. This feature is particularly useful for developers looking to analyze trends over time.
- 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, including conversions involving the CUC.
- Time-Series Endpoint: Query daily historical rates between two dates, providing insights into price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Get information about gold rates by carat, useful for jewelers and investors alike.
- Lowest/Highest Price Endpoint: Determine the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for specific time periods, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of metal prices.
- API Key: Each user receives a unique API key, which is essential for accessing the API securely.
- API Response: The API returns exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: With 14 different endpoints, the Metals-API offers a wide range of functionalities to meet diverse needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies, including the CUC, through the Metals-API Supported Symbols page.
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 Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1785110921,
"base": "USD",
"date": "2026-07-27",
"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": 1785024521,
"base": "USD",
"date": "2026-07-26",
"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-20",
"end_date": "2026-07-27",
"base": "USD",
"rates": {
"2026-07-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-27": {
"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": 1785110921,
"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-20",
"end_date": "2026-07-27",
"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": 1785110921,
"base": "USD",
"date": "2026-07-27",
"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": 1785110921,
"base": "USD",
"date": "2026-07-27",
"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
The Metals-API stands out as a powerful resource for developers seeking to access real-time and historical data on the Cuban Convertible Peso (CUC) and other metals. By leveraging this API, developers can create applications that not only provide users with up-to-date information but also analyze trends and fluctuations in the market. With features like the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion capabilities, the Metals-API offers a comprehensive suite of tools for financial analysis and decision-making.
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 and usage. Understanding the capabilities of this API can significantly enhance your ability to work with currency data, including the CUC, and drive innovation in your applications.