Access Tunisian Dinar (TND) Historical Prices via this API
Access Tunisian Dinar (TND) Historical Prices via this API
In today's fast-paced financial landscape, having access to real-time and historical data is crucial for making informed decisions. The Tunisian Dinar (TND) is no exception, and developers can leverage the power of the Metals-API to access historical prices and exchange rates. This blog post will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for TND and other metals, while also delving into the broader implications of digital transformation in the metal markets.
Metals-API Information
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals and currencies, including the Tunisian Dinar. By utilizing this API, developers can create applications that require accurate and timely data, enabling them to make better financial decisions. The API is designed with innovation and technological advancement in mind, allowing for seamless integration into existing systems.
About Neodymium (ND)
Neodymium, a rare earth metal, is a prime example of how digital transformation is reshaping metal markets. As industries increasingly rely on neodymium for applications such as magnets, lasers, and glass, the demand for accurate pricing and availability data has surged. The integration of smart technology and data analytics into the metal markets has enabled stakeholders to gain insights that were previously unattainable.
Technological innovation in the metal industry is paving the way for future trends, such as the use of artificial intelligence to predict price fluctuations and the development of blockchain technology for transparent transactions. The Metals-API plays a crucial role in this transformation by providing developers with the tools they need to harness real-time data and analytics.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. With a focus on innovation, the API offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019. This flexibility allows developers to create applications that can adapt to changing market conditions and user requirements.
For more detailed information, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide various functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Developers can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve historical data for TND and other metals, allowing for in-depth analysis of price 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 API includes a separate currency conversion endpoint, allowing users to convert any amount from one currency to another, including TND to other metals or currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating detailed analysis of price movements over specific periods.
- Fluctuation Endpoint: Developers can track how currencies fluctuate on a day-to-day basis, providing valuable 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 precious metals.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is essential 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 over a longer time frame.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: The Metals-API offers a total of 14 endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring that developers have access to the latest information on supported symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
List of Symbols
The 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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for developers looking to implement the Metals-API effectively. Below are examples of various endpoints and their corresponding responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770855798,
"base": "USD",
"date": "2026-02-12",
"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 request, providing the latest exchange rates for various metals relative to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1770769398,
"base": "USD",
"date": "2026-02-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date, allowing developers to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-05",
"end_date": "2026-02-12",
"base": "USD",
"rates": {
"2026-02-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how to obtain exchange rates for a specific time period, enabling developers to track price movements over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770855798,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert amounts between different metals and currencies, showcasing the API's versatility.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-05",
"end_date": "2026-02-12",
"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 provides insights into how prices fluctuate over time, which is essential for market analysis.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1770855798,
"base": "USD",
"date": "2026-02-12",
"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, which is crucial for traders and analysts looking to understand market dynamics.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1770855798,
"base": "USD",
"date": "2026-02-12",
"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 provides current bid and ask prices, which are essential for understanding market liquidity and making trading decisions.
Conclusion
In conclusion, the Metals-API offers a robust solution for developers seeking to access historical prices and real-time data for the Tunisian Dinar and other metals. By leveraging the various endpoints available, developers can create applications that provide valuable insights into market trends and pricing dynamics. The API's focus on innovation and technological advancement positions it as a vital tool in the evolving landscape of metal markets.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Metals-API Supported Symbols page for a comprehensive list of available symbols.