Get Tanzanian Shilling (TZS) Historical Prices using this API
Get Tanzanian Shilling (TZS) Historical Prices using this API
The Tanzanian Shilling (TZS) is an essential currency in East Africa, and understanding its historical prices can provide valuable insights for traders, investors, and businesses. In this blog post, we will explore how to retrieve historical prices for TZS using the Metals-API. This powerful API offers a range of features that allow developers to access real-time and historical data for various metals and currencies, including TZS.
Metals-API Information
The Metals-API is a comprehensive solution for accessing metals prices and currency conversion data. It is designed to empower developers to build next-generation applications that require real-time and historical data. With a focus on innovation and technological advancement, the Metals-API integrates smart technology and data analytics to provide insights that can transform the way we interact with metal markets.
About Nickel (NI)
Nickel (NI) is a vital metal used 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 nickel prices are tracked and analyzed. The Metals-API plays a crucial role in this transformation by providing developers with the tools necessary to access real-time data and historical prices.
Technological innovation has enabled the integration of data analytics and insights into the trading of nickel. Developers can leverage the Metals-API to create applications that analyze price trends, forecast future prices, and optimize trading strategies. The future of nickel trading is likely to be shaped by advancements in smart technology, allowing for more efficient and informed decision-making.
API Description
The Metals-API offers a robust set of features that allow developers to access a wide range of data related to metals and currencies. With a focus on real-time data and historical analysis, the API provides the following capabilities:
- 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.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the API for historical rates by appending a specific date.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing for precise trading decisions.
- Convert Endpoint: Convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing a comprehensive view of price trends.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, essential for understanding market volatility.
- Carat Endpoint: Get information about gold rates by carat, useful for jewelers and investors.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of metal prices.
- API Key: Your unique key is passed into the API base URL's access_key parameter for authentication.
- API Response: Exchange rates are delivered relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The API comes with 14 endpoints, each providing different functionalities.
- Supported Symbols Endpoint: Get a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market trends.
Key Features and Endpoints
The Metals-API is equipped with numerous endpoints that cater to various needs. Here are some of the key features:
Latest Rates Endpoint
This endpoint provides real-time exchange rates for all available metals. For example, a typical response might look like this:
{
"success": true,
"timestamp": 1772583546,
"base": "USD",
"date": "2026-03-04",
"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. A typical response might look like this:
{
"success": true,
"timestamp": 1772497146,
"base": "USD",
"date": "2026-03-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
This endpoint allows you to get exchange rates for a specific time period. For example:
{
"success": true,
"timeseries": true,
"start_date": "2026-02-25",
"end_date": "2026-03-04",
"base": "USD",
"rates": {
"2026-02-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
This endpoint allows you to convert any amount from one metal to another or to/from USD. A response might look like this:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772583546,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates. A typical response might look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-25",
"end_date": "2026-03-04",
"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
This endpoint provides OHLC data for a specific time period. A typical response might look like this:
{
"success": true,
"timestamp": 1772583546,
"base": "USD",
"date": "2026-03-04",
"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
This endpoint provides current bid and ask prices for metals. A typical response might look like this:
{
"success": true,
"timestamp": 1772583546,
"base": "USD",
"date": "2026-03-04",
"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"
}
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.
Conclusion
In conclusion, the Metals-API is a powerful tool for developers seeking to access historical prices for the Tanzanian Shilling (TZS) and other metals. With its extensive features, including real-time rates, historical data, and various endpoints, the API empowers users to build sophisticated applications that can analyze market trends and make informed decisions.
By leveraging the capabilities of the Metals-API, developers can create innovative solutions that integrate real-time data analytics, enhancing their applications' functionality and user experience. For more information on how to get started, check out the Metals-API Documentation, which provides detailed guidance on using the API effectively.
As the metal markets continue to evolve, staying informed and utilizing advanced tools like the Metals-API will be crucial for success in trading and investment strategies. Embrace the future of metal trading with the power of real-time data at your fingertips.