Get Swazi Lilangeni (SZL) Historical Prices using this API
In the ever-evolving landscape of financial markets, the ability to access and analyze historical prices of currencies and metals is crucial for developers and analysts alike. One such currency that has gained attention is the Swazi Lilangeni (SZL). By utilizing the Metals-API, developers can seamlessly retrieve historical prices and gain insights into market trends. This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices, particularly for the Swazi Lilangeni, and explore the broader implications of digital transformation in the metal markets.
Understanding the Metals-API
The Metals-API is a powerful tool designed to provide real-time and historical data on various metals and currencies. It empowers developers to create applications that require accurate and timely financial data. With a focus on innovation and technological advancement, the API facilitates the integration of smart technologies into financial applications, allowing for enhanced data analytics and insights.
About Nickel (NI)
Nickel, represented by the symbol NI, is a key metal in various industrial applications, including batteries, stainless steel production, and electronics. As the world moves towards digital transformation, the metal markets are witnessing significant changes driven by technological innovations. The integration of data analytics and smart technology is reshaping how traders and developers interact with metal prices.
One of the most exciting aspects of the Metals-API is its ability to provide real-time data, which is essential for making informed decisions in fast-paced markets. The API's capabilities extend beyond mere price retrieval; it offers insights into market trends, allowing developers to build applications that can predict future price movements based on historical data.
Accessing Historical Prices with Metals-API
To access historical prices for the Swazi Lilangeni (SZL) using the Metals-API, developers can utilize the Historical Rates Endpoint. This endpoint allows users to query historical exchange rates for various currencies, including the SZL, dating back to 2019. By appending a specific date to the API request, developers can retrieve the historical price data they need.
Key Features of the Metals-API
The Metals-API offers a range of endpoints that provide different functionalities, each designed to cater to the diverse needs of developers:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: This endpoint allows users to access historical exchange rates for most currencies, including the SZL. By specifying a date, developers can retrieve the price data for that specific day, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping developers understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This feature allows developers to query the API for the lowest and highest prices within a specified date range, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metal prices over time.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate and authorize access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring developers have access to the latest symbols and their specifications.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
Example API Responses
Understanding the structure of API responses is crucial for developers. Below are examples of JSON responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772209116,
"base": "USD",
"date": "2026-02-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
{
"success": true,
"timestamp": 1772122716,
"base": "USD",
"date": "2026-02-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-20",
"end_date": "2026-02-27",
"base": "USD",
"rates": {
"2026-02-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772209116,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-20",
"end_date": "2026-02-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
{
"success": true,
"timestamp": 1772209116,
"base": "USD",
"date": "2026-02-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
{
"success": true,
"timestamp": 1772209116,
"base": "USD",
"date": "2026-02-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
In conclusion, the Metals-API offers a robust solution for developers seeking to access historical prices and real-time data for various metals and currencies, including the Swazi Lilangeni (SZL). By leveraging the API's extensive features, developers can create applications that provide valuable insights into market trends and fluctuations. The integration of smart technology and data analytics into the financial sector is transforming how we interact with metals and currencies, paving the way for innovative applications and solutions.
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 for a comprehensive list of available currencies. The future of metal markets is bright, and with the right tools, developers can harness this potential to create impactful applications.