Access Historical Turkish Lira (TRY) Prices in Multiple Currencies with this API
Access Historical Turkish Lira (TRY) Prices in Multiple Currencies with this API
The Turkish Lira (TRY) has undergone significant fluctuations over the years, making it essential for businesses and developers to access accurate historical pricing data. With the Metals-API, users can retrieve historical Turkish Lira prices in various currencies, empowering them to make informed financial decisions. This blog post delves into the capabilities of the Metals-API, exploring its innovative features, potential applications, and how it can transform the way developers interact with metal market data.
About Turkish Lira (TRY)
The Turkish Lira has been at the center of Turkey's economic landscape, reflecting the country's financial health and market dynamics. As the currency has evolved, so has the technology surrounding it. The digital transformation in metal markets has paved the way for innovative solutions that leverage data analytics and insights. By integrating smart technology, businesses can harness the power of real-time data to anticipate market trends and make strategic decisions.
Technological advancements have enabled developers to create applications that utilize historical data, allowing for comprehensive analysis and forecasting. The Metals-API stands out as a powerful tool for accessing such data, providing developers with the resources needed to build next-generation applications that can adapt to the ever-changing financial landscape.
API Description
The Metals-API is designed to provide accurate and real-time data on metals and currencies, including the Turkish Lira. This API empowers developers to build applications that require precise financial data, facilitating a range of use cases from trading platforms to financial analysis tools. With its robust architecture, the Metals-API offers a suite of features that cater to the needs of developers seeking to integrate historical and real-time data into their applications.
For more detailed information, developers can refer to the Metals-API Documentation, which outlines the various endpoints and functionalities available.
Key Features and Endpoints
The Metals-API provides a variety of endpoints that allow users to access different types of data. Each endpoint serves a unique purpose, enabling developers to tailor their applications to specific needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for metals and currencies, updated based on the user's subscription plan. This feature is crucial for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1787012317,
"base": "USD",
"date": "2026-08-18",
"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
The Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. This feature is particularly useful for businesses that need to analyze past trends in the Turkish Lira against other currencies.
{
"success": true,
"timestamp": 1786925917,
"base": "USD",
"date": "2026-08-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions. This feature is essential for applications focused on trading and investment.
{
"success": true,
"timestamp": 1787012317,
"base": "USD",
"date": "2026-08-18",
"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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one currency to another, making it easy to handle transactions across different currencies, including the Turkish Lira. This feature is particularly beneficial for e-commerce platforms and financial applications.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1787012317,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query daily historical rates between two dates of their choice. This feature is invaluable for businesses looking to analyze trends over specific periods, providing insights into the performance of the Turkish Lira against other currencies.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"base": "USD",
"rates": {
"2026-08-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis, allowing businesses to understand volatility and make strategic decisions based on market behavior.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is essential for traders looking to analyze market trends and make informed trading decisions.
{
"success": true,
"timestamp": 1787012317,
"base": "USD",
"date": "2026-08-18",
"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"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for businesses involved in trading metals, as it allows them to analyze long-term trends and make data-driven decisions.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints, showcasing the structure and data returned by the Metals-API.
Latest Rates Endpoint Example
The Latest Rates Endpoint returns real-time exchange rates for all available metals. Here’s an example response:
{
"success": true,
"timestamp": 1787012317,
"base": "USD",
"date": "2026-08-18",
"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 Example
Accessing historical exchange rates for any date since 1999 is straightforward with the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1786925917,
"base": "USD",
"date": "2026-08-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint Example
The Time-Series Endpoint allows users to query exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"base": "USD",
"rates": {
"2026-08-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint Example
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1787012317,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint Example
Using the Fluctuation Endpoint, users can track rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"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 Example
The OHLC Endpoint provides open, high, low, and close data for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1787012317,
"base": "USD",
"date": "2026-08-18",
"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"
}
Conclusion
The Metals-API provides a comprehensive solution for accessing historical Turkish Lira prices in multiple currencies, offering developers the tools they need to create innovative applications. With features such as real-time exchange rates, historical data access, and conversion capabilities, the API empowers businesses to make data-driven decisions in a rapidly changing market.
By leveraging the power of the Metals-API, developers can build applications that not only track current market conditions but also analyze historical trends, providing valuable insights into the performance of the Turkish Lira against other currencies. For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available currencies and metals.