Retrieve Tunisian Dinar (TND) Historical Prices with this API
Retrieve Tunisian Dinar (TND) Historical Prices with this API
In the ever-evolving landscape of financial markets, the ability to access historical prices for currencies and metals is paramount for developers and analysts alike. One such powerful tool is the Metals-API, which provides comprehensive access to real-time and historical data for various metals, including the Tunisian Dinar (TND). This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and explore the transformative potential of this technology in the realm of digital finance.
Metals-API Information
The Metals-API is a robust platform designed to deliver real-time and historical data on metal prices and currency conversions. It empowers developers to create applications that can analyze market trends, perform currency conversions, and track fluctuations in metal prices. With its user-friendly interface and extensive documentation, the Metals-API is an invaluable resource for anyone looking to integrate metal pricing data into their applications.
About Neodymium (ND)
Neodymium, a rare earth metal, has gained prominence in various industries due to its unique properties. As we explore the digital transformation in metal markets, it's essential to understand how technological innovation and advancement are reshaping the landscape. The integration of data analytics and smart technology has revolutionized how businesses operate, allowing for real-time insights and informed decision-making.
In the context of Neodymium, the future trends indicate a growing demand for this metal, particularly in the manufacturing of high-strength magnets used in electric vehicles and renewable energy technologies. The Metals-API plays a crucial role in providing the necessary data to track the historical prices of Neodymium, enabling businesses to make strategic decisions based on market trends.
API Description
The Metals-API is designed to facilitate seamless access to metal pricing data through a variety of endpoints. Each endpoint serves a specific purpose, allowing developers to retrieve the information they need efficiently. The API's capabilities include:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API request. This feature is essential for analyzing trends over time.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts between different currencies effortlessly.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for traders and analysts.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
For more detailed information, you can visit the Metals-API Documentation and explore the Metals-API Supported Symbols.
Key Features and Endpoints
The Metals-API is equipped with various endpoints that cater to different needs. Below, we will explore some of the most significant features and how they can be utilized effectively.
Latest Rates Endpoint
The Latest Rates Endpoint is designed to provide real-time exchange rates for all available metals. This feature is particularly useful for developers who need up-to-the-minute data for their applications. The response includes a timestamp, base currency, and the latest rates for various metals.
{
"success": true,
"timestamp": 1769473456,
"base": "USD",
"date": "2026-01-27",
"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 example, the API returns the latest rates for metals relative to USD, allowing developers to integrate this data into their applications seamlessly.
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This feature is crucial for analyzing trends and making informed decisions based on past performance.
{
"success": true,
"timestamp": 1769387056,
"base": "USD",
"date": "2026-01-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for specified metals, enabling users to conduct thorough analyses of market trends over time.
Time-Series Endpoint
The Time-Series Endpoint is particularly useful for users who need to analyze exchange rates over a specific period. By querying the API with a start and end date, users can retrieve daily historical rates.
{
"success": true,
"timeseries": true,
"start_date": "2026-01-20",
"end_date": "2026-01-27",
"base": "USD",
"rates": {
"2026-01-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint's response allows users to visualize trends over time, making it easier to identify patterns and anomalies in metal prices.
Convert Endpoint
The Convert Endpoint is a valuable feature that allows users to convert any amount from one metal to another or to/from USD. This functionality is essential for applications that require currency conversion capabilities.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1769473456,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response provides the conversion result, allowing developers to integrate currency conversion features into their applications seamlessly.
Fluctuation Endpoint
The Fluctuation Endpoint enables users to track rate fluctuations between two dates. This feature is particularly useful for analyzing market volatility and understanding how prices change over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-20",
"end_date": "2026-01-27",
"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 response provides insights into how prices have fluctuated over the specified period, allowing for better market analysis.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. This data is essential for traders and analysts who need to understand market movements.
{
"success": true,
"timestamp": 1769473456,
"base": "USD",
"date": "2026-01-27",
"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 endpoint's response allows users to analyze market trends effectively, providing critical data for trading strategies.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals, offering insights into market dynamics and helping traders make informed decisions.
{
"success": true,
"timestamp": 1769473456,
"base": "USD",
"date": "2026-01-27",
"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 response provides essential data for traders, allowing them to understand the current market conditions and make informed decisions.
Conclusion
The Metals-API is a powerful tool for developers and analysts looking to access real-time and historical data on metal prices and currency conversions. With its extensive range of endpoints, the API provides the necessary data to analyze market trends, perform currency conversions, and track fluctuations in metal prices. By leveraging the capabilities of the Metals-API, developers can create applications that empower users with valuable insights into the financial markets.
For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.