Retrieve Swazi Lilangeni (SZL) prices with this API
Introduction
The Swazi Lilangeni (SZL) is the official currency of Eswatini (formerly Swaziland), a small landlocked country in Southern Africa. Understanding the dynamics of the SZL and its exchange rates is crucial for businesses, investors, and developers operating in or with interests in the region. One of the most effective ways to retrieve real-time and historical data on the SZL is through the Metals-API. This powerful API provides comprehensive access to metals prices and currency conversion, enabling developers to build applications that can track and analyze the fluctuations of the Lilangeni against various metals and currencies.
Metals-API Information
About Nickel (NI)
Nickel is a critical metal in various industries, particularly in the production of stainless steel and batteries. As the world moves towards digital transformation, the metal markets are also evolving. Technological innovations and advancements in data analytics are reshaping how traders and investors interact with these markets. The integration of smart technology allows for real-time insights, enabling stakeholders to make informed decisions based on accurate data.
With the rise of electric vehicles and renewable energy technologies, the demand for nickel is expected to surge. This creates a need for reliable data sources that can provide up-to-date information on nickel prices and trends. The Metals-API stands out as a transformative tool that empowers developers to harness real-time metals data, facilitating the creation of next-generation applications that can adapt to the fast-paced changes in the market.
API Description
The Metals-API is a robust platform designed to provide real-time and historical data on metal prices, including the Swazi Lilangeni. It offers a suite of endpoints that allow developers to access various functionalities, such as retrieving the latest rates, historical data, and conversion rates between different currencies. The API is built with innovation in mind, enabling seamless integration into applications that require accurate and timely metals data.
By leveraging the capabilities of the Metals-API, developers can create applications that not only track the SZL but also analyze its performance against other currencies and metals. This is particularly useful for financial analysts, traders, and businesses that need to make strategic decisions based on market trends.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for the SZL and other currencies. Depending on your subscription plan, the API can return updates every 60 minutes or even more frequently. This is essential for businesses that require up-to-the-minute data for trading or financial analysis.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. This feature allows users to analyze trends over time, which is crucial for forecasting and strategic planning. By appending a specific date to the API request, developers can retrieve historical data for the SZL.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, including those priced in SZL. Understanding the bid-ask spread is vital for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one currency to another. This is particularly useful for businesses operating in multiple currencies, as it simplifies the process of financial transactions.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice. This feature is beneficial for analyzing trends and fluctuations in the SZL over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis. By tracking fluctuations, businesses can make informed decisions based on 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 users to query the API to get the lowest and highest prices for a specific date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is provided with a unique API key that must be included in API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, including the SZL, ensuring users have access to the latest data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including those relevant to the Swazi Lilangeni. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals, including the SZL. Here’s an example response:
{
"success": true,
"timestamp": 1775434366,
"base": "USD",
"date": "2026-04-06",
"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"
}
In this response, the "rates" field provides the current exchange rates for various metals, which can be used to analyze the performance of the SZL against these metals.
Historical Rates Endpoint
Accessing historical exchange rates is essential for trend analysis. Here’s an example response from the Historical Rates Endpoint:
{
"success": true,
"timestamp": 1775347966,
"base": "USD",
"date": "2026-04-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for specific metals, allowing users to analyze how the SZL has performed over time.
Time-series Endpoint
The Time-series Endpoint enables users to retrieve exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-03-30",
"end_date": "2026-04-06",
"base": "USD",
"rates": {
"2026-03-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for analyzing trends over time, allowing developers to visualize how the SZL's value has changed.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1775434366,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates the conversion of 1000 USD to gold (XAU), providing a clear understanding of how much gold can be purchased with that amount.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-30",
"end_date": "2026-04-06",
"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 is crucial for understanding market volatility and making informed trading decisions based on historical fluctuations.
OHLC (Open/High/Low/Close) Endpoint
The OHLC Endpoint provides open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1775434366,
"base": "USD",
"date": "2026-04-06",
"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"
}
This data is essential for traders who rely on technical analysis to make informed decisions.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1775434366,
"base": "USD",
"date": "2026-04-06",
"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 is vital for traders looking to understand the current market conditions and make timely decisions.
Conclusion
The Metals-API is an invaluable resource for developers and businesses looking to retrieve Swazi Lilangeni (SZL) prices and gain insights into the metals market. With its comprehensive suite of endpoints, the API empowers users to access real-time data, historical trends, and conversion capabilities, making it easier to navigate the complexities of currency and metal trading.
By leveraging the capabilities of the Metals-API, developers can build applications that provide users with the tools they need to make informed decisions based on accurate and timely data. Whether you are analyzing the performance of the SZL against other currencies or tracking the latest trends in the metals market, the Metals-API offers the functionality and reliability required for success.
For more information on how to implement this API in your projects, refer to the Metals-API Documentation. To explore the full range of supported symbols, visit the Metals-API Supported Symbols page. Start harnessing the power of real-time metals data today with the Metals-API Website.