Retrieve Tanzanian Shilling (TZS) Historical Prices for analytics using this API
The Tanzanian Shilling (TZS) is a vital currency in East Africa, and understanding its historical prices is essential for various analytics, especially in the context of metals trading. In this blog post, we will explore how to retrieve historical prices for the Tanzanian Shilling using the Metals-API, focusing on the innovative capabilities of this API and its transformative potential in the realm of data analytics.
Metals-API Information
Metals-API is a powerful tool designed for developers who need real-time and historical data on metal prices and currency exchange rates. With its robust features, the API provides a seamless way to access valuable market insights, enabling users to make informed decisions based on accurate data. The API supports a wide range of metal symbols, including Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD), among others. For a complete list of supported symbols, you can visit the Metals-API Supported Symbols page.
About Nickel (NI)
Nickel, represented by the symbol NI, is a key metal in various industries, particularly in the production of stainless steel and batteries. The digital transformation in metal markets has led to significant advancements in how data is collected, analyzed, and utilized. The integration of smart technologies and data analytics has revolutionized the way traders and investors approach the market.
Technological innovation has enabled real-time tracking of metal prices, allowing stakeholders to respond swiftly to market fluctuations. The Metals-API exemplifies this transformation by providing developers with the tools necessary to build next-generation applications that leverage real-time data. By utilizing the API, developers can create applications that offer insights into market trends, price predictions, and historical analysis.
As we look to the future, the possibilities for integrating advanced data analytics into metal trading are vast. The Metals-API empowers developers to harness the power of data, enabling them to create solutions that enhance decision-making processes and improve market efficiency.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical metal prices, as well as currency conversion capabilities. The API's innovative features allow for seamless integration into various applications, making it an essential tool for anyone involved in the metals market.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API's latest rates endpoint can return updated data every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current market information, which is crucial for making timely trading decisions.
The historical rates endpoint is another powerful feature, allowing users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data, which is invaluable for conducting thorough market analyses and identifying trends over time.
Additionally, the API offers a bid and ask endpoint, which provides real-time bid and ask prices for various metals. This feature is particularly useful for traders looking to execute transactions at optimal prices. The convert endpoint allows users to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
The time-series endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is essential for analyzing price movements over specific periods, allowing traders to identify patterns and make informed predictions.
Moreover, the fluctuation endpoint provides insights into how currencies fluctuate on a day-to-day basis, offering valuable information for risk management and trading strategies. The carat endpoint allows users to retrieve information about Gold rates by carat, catering to those involved in the jewelry industry.
For those interested in the lowest and highest prices, the Metals-API offers endpoints that allow users to query the API for the lowest and highest prices within a specified timeframe. The open/high/low/close (OHLC) price endpoint provides detailed information about the opening, high, low, and closing prices for a specific date, which is crucial for technical analysis.
The historical LME endpoint grants access to historical rates for LME symbols dating back to 2008, providing a wealth of data for those interested in the London Metal Exchange. The API key is essential for accessing the API, as it is passed into the API base URL's access_key parameter for authentication.
All exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data interpretation. The API's response structure is designed to be user-friendly, with clear indications of success, timestamps, base currencies, and rates for various metals.
Key Features and Endpoints
The Metals-API boasts a wide array of features that cater to the needs of developers and traders alike. Here are some of the key features and their potential applications:
- Latest Rates Endpoint: Retrieve real-time exchange rates for all available metals, ensuring you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical exchange rates for any date since 1999, allowing for in-depth analysis of market trends.
- Bid and Ask Endpoint: Get current bid and ask prices for metals, enabling you to make informed trading decisions.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for exchange rates over a specific time period, helping you analyze price movements.
- Fluctuation Endpoint: Track rate fluctuations between two dates, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by carat, catering to the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices within a specified timeframe.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing valuable data for traders.
- API Key: Use your unique API key for authentication and access to the API's features.
- API Response: Understand the structure of the API response, including success indicators, timestamps, and rate data.
- Available Endpoints: Explore the 14 API endpoints, each providing different functionalities for your trading needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, let's explore some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772842471,
"base": "USD",
"date": "2026-03-07",
"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 indicates a successful retrieval of the latest rates for various metals, with the base currency being USD. The rates are provided per troy ounce, making it easy for traders to interpret the data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772756071,
"base": "USD",
"date": "2026-03-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example demonstrates how to access historical rates for a specific date. The response includes the base currency, the date of the rates, and the corresponding values for each metal.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-28",
"end_date": "2026-03-07",
"base": "USD",
"rates": {
"2026-02-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-07": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides a detailed view of exchange rates over a specified period, allowing users to analyze trends and fluctuations in metal prices.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772842471,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to Gold (XAU). The result indicates how much Gold can be obtained for a specified amount of USD, providing valuable information for traders.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-28",
"end_date": "2026-03-07",
"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"
}
The fluctuation endpoint response provides insights into how metal prices have changed over a specified period, highlighting both the absolute change and the percentage change. This information is crucial for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1772842471,
"base": "USD",
"date": "2026-03-07",
"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 response provides detailed OHLC data for specific metals on a given date, which is essential for traders conducting technical analysis and making informed trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772842471,
"base": "USD",
"date": "2026-03-07",
"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"
}
The bid/ask response provides crucial information for traders, indicating the current bid and ask prices for various metals, along with the spread. This data is essential for executing trades at optimal prices.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers and traders seeking to access real-time and historical data on metal prices and currency exchange rates. By leveraging the API's innovative features, users can gain insights into market trends, make informed trading decisions, and enhance their overall trading strategies.
Whether you are interested in retrieving the latest rates, analyzing historical data, or converting currencies, the Metals-API provides the tools necessary to succeed in the dynamic world of metal trading. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
As the market continues to evolve, the integration of advanced data analytics and smart technology will play a crucial role in shaping the future of metal trading. Embrace the power of the Metals-API and unlock the potential of real-time data to drive your trading success.