Get Swiss Franc (CHF) Historical Prices using this API
Get Swiss Franc (CHF) Historical Prices using this API
The Swiss Franc (CHF) is not just a currency; it represents a stable and robust financial system that has weathered numerous economic storms. In the digital age, the ability to access historical prices of the Swiss Franc, especially in relation to precious metals, has become increasingly important for traders, investors, and developers alike. With the Metals-API, you can seamlessly retrieve historical prices and integrate this data into your applications, providing insights that can drive informed decision-making.
Metals-API Information
About Swiss Franc (CHF)
The Swiss Franc is known for its stability and is often viewed as a safe haven currency. In the context of precious metals, the CHF plays a crucial role in the global market, especially for investors looking to hedge against inflation or economic uncertainty. The digital transformation in metal markets has led to innovative solutions that allow for real-time data analytics and insights, enabling users to make data-driven decisions. The integration of smart technology into financial systems has opened up new avenues for investment and trading, making it essential for developers to leverage APIs that provide accurate and timely data.
Technological advancements have revolutionized the way we interact with financial data. The Metals-API offers a comprehensive suite of tools that empower developers to build next-generation applications. By utilizing data analytics, users can gain insights into market trends, price fluctuations, and historical performance, all of which are critical for making informed investment decisions. The future of trading and investment lies in the ability to harness these technologies effectively.
API Description
The Metals-API is designed to provide developers with access to real-time and historical data on precious metals and their corresponding currencies. This API is particularly useful for those looking to track the performance of the Swiss Franc against various metals such as Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD). The API's capabilities extend beyond mere data retrieval; it empowers developers to create applications that can analyze trends, forecast prices, and provide valuable insights into the market.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This means that whether you are a developer building a trading platform or an investor looking to track market movements, you can rely on the accuracy and timeliness of the data provided by the API.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription. This is crucial 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 to the API call, developers can retrieve historical data that is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time Bid and Ask prices, providing insights into market liquidity and pricing strategies.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating transactions and financial analysis.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by Carat, which is particularly useful for jewelers and investors in the luxury market.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for traders looking to analyze market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is invaluable for those tracking industrial metal prices.
- API Key: Each user is assigned a unique API key that must be included in API requests, ensuring secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each offering unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market 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 into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following example response:
{
"success": true,
"timestamp": 1769127486,
"base": "USD",
"date": "2026-01-23",
"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 with the following example response:
{
"success": true,
"timestamp": 1769041086,
"base": "USD",
"date": "2026-01-22",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, you can use the following example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-16",
"end_date": "2026-01-23",
"base": "USD",
"rates": {
"2026-01-16": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-18": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-23": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the following example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1769127486,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the following example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-16",
"end_date": "2026-01-23",
"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) Price Endpoint
To get OHLC data for a specific time period, you can use the following example response:
{
"success": true,
"timestamp": 1769127486,
"base": "USD",
"date": "2026-01-23",
"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
To get current bid and ask prices for metals, you can use the following example response:
{
"success": true,
"timestamp": 1769127486,
"base": "USD",
"date": "2026-01-23",
"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 Swiss Franc (CHF) is a vital currency in the global financial landscape, particularly in relation to precious metals. The Metals-API provides a powerful tool for developers looking to access historical prices and real-time data, enabling them to create innovative applications that leverage this information. With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion and fluctuation tools, the API offers comprehensive capabilities that can enhance financial analysis and decision-making.
As the digital transformation continues to reshape the financial markets, the integration of advanced technologies and data analytics will play a crucial role in the future of trading and investment. By utilizing the Metals-API, developers can stay ahead of the curve, providing their users with the insights and tools necessary to navigate the complexities of the market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the right data for your applications. Embrace the future of financial data with the Metals-API and unlock the potential of real-time insights.