Get Tunisian Dinar (TND) prices using this API
Get Tunisian Dinar (TND) Prices Using Metals-API
The Tunisian Dinar (TND) is a crucial currency in North Africa, influencing trade and economic activities in Tunisia and beyond. Understanding its value in relation to other currencies is essential for businesses, investors, and developers alike. With the advent of APIs like Metals-API, accessing real-time and historical exchange rates has never been easier. This blog post delves into the capabilities of the Metals-API, focusing on how it can be utilized to retrieve TND prices and other valuable metal data.
About Neodymium (ND)
Neodymium is a rare earth metal that plays a significant role in various technological advancements. As industries evolve, the demand for neodymium has surged, particularly in the production of high-strength magnets used in electric vehicles, wind turbines, and consumer electronics. The digital transformation in metal markets has been driven by data analytics and smart technology integration, allowing for real-time insights into pricing and availability.
Technological innovation has enabled the development of sophisticated tools that can analyze market trends and predict future movements. The integration of smart technology into metal trading platforms has transformed how businesses operate, providing them with the agility to respond to market changes swiftly. As we look to the future, the possibilities for neodymium and other metals are vast, with advancements in data analytics paving the way for more informed decision-making.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data on metal prices and currency exchange rates. This API empowers users to build next-generation applications that can analyze market trends, perform currency conversions, and retrieve detailed metal pricing information. The transformative potential of real-time metals data cannot be overstated, as it allows businesses to make informed decisions based on accurate and timely information.
For more information on how to utilize this API, refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for various currencies, including the Tunisian Dinar. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for businesses that require up-to-the-minute pricing information to make timely decisions.
Historical Rates Endpoint
Access to historical rates is crucial for analyzing trends over time. The Metals-API allows users to query historical rates dating back to 2019 by appending a specific date in the format YYYY-MM-DD. This feature is particularly useful for financial analysts and traders who need to assess past performance to inform future strategies.
Bid and Ask Endpoint
The Bid and Ask endpoint provides real-time bid and ask prices for metals, enabling users to understand market dynamics better. This feature is invaluable for traders looking to execute transactions at optimal prices.
Convert Endpoint
The Convert endpoint allows users to convert any amount from one currency to another, including conversions involving the Tunisian Dinar. This feature simplifies the process of currency exchange, making it easier for businesses to operate internationally.
Time-Series Endpoint
The Time-Series endpoint enables users to query daily historical rates between two specified dates. This functionality is essential for trend analysis and forecasting, allowing businesses to visualize price movements over time.
Fluctuation Endpoint
With the Fluctuation endpoint, users can track how currencies fluctuate on a day-to-day basis. This feature provides insights into market volatility, helping traders and investors make informed decisions based on real-time data.
Carat Endpoint
The Carat endpoint allows users to retrieve information about gold rates by carat. This is particularly useful for jewelers and investors in precious metals who need precise pricing information based on quality.
Lowest/Highest Price Endpoint
This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period. This information is crucial for identifying market trends and making strategic investment decisions.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price endpoint provides users with open, high, low, and close prices for a specific time period. This data is essential for traders who rely on candlestick patterns and other technical analysis tools.
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is particularly useful for businesses involved in trading metals on the London Metal Exchange.
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. The API delivers exchange rates relative to USD, and all data is returned in a structured JSON format, making it easy to integrate into applications.
Available Endpoints
The Metals-API includes 14 different endpoints, each offering unique functionalities. Users can explore these endpoints to find the specific data they need for their applications.
Supported Symbols Endpoint
The Supported Symbols endpoint provides a constantly updated list of all available currencies and metals. For a complete list of supported symbols, refer to the Metals-API Supported Symbols.
Intraday Endpoint
The Intraday endpoint allows users to query intraday exchange rate data for a single symbol, providing insights into short-term market movements.
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 Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1788394101,
"base": "USD",
"date": "2026-09-03",
"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:
{
"success": true,
"timestamp": 1788307701,
"base": "USD",
"date": "2026-09-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"base": "USD",
"rates": {
"2026-08-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788394101,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"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
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1788394101,
"base": "USD",
"date": "2026-09-03",
"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
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1788394101,
"base": "USD",
"date": "2026-09-03",
"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
The Metals-API is an invaluable resource for developers and businesses looking to access real-time and historical data on metal prices and currency exchange rates, including the Tunisian Dinar. By leveraging the various endpoints offered by the API, users can gain insights into market trends, perform currency conversions, and make informed decisions based on accurate data. The integration of such APIs into applications not only enhances functionality but also empowers users to navigate the complexities of the financial markets with ease.
For further exploration of the API's capabilities, visit the Metals-API Website and check out the Metals-API Documentation for detailed guidance on implementation and usage.