Discover Gold Turkey 21k (XAUTUR21) Historical Prices via this API
Introduction
In the ever-evolving landscape of financial technology, the demand for real-time data on precious metals, particularly gold, has surged. Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that plays a crucial role in global finance. With the advent of APIs like Metals-API, developers can now access historical prices and real-time data on gold and other metals seamlessly. This blog post will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold Turkey 21k (XAUTUR21) and the transformative potential of integrating such data into applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, it has undergone a digital transformation, becoming a vital part of the cryptocurrency and blockchain ecosystems. The integration of technology in trading has allowed for innovative price discovery mechanisms, enabling investors to make informed decisions based on real-time data analytics and market insights.
The rise of digital asset solutions has further enhanced the accessibility of gold trading. Developers can leverage APIs to create applications that provide users with up-to-date information on gold prices, historical trends, and market fluctuations. This not only democratizes access to precious metals but also empowers users with the tools needed to navigate the complexities of the market.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data on various metals, including gold. This API is designed to facilitate the development of next-generation applications that require accurate and timely information. With its innovative features, the Metals-API enables users to retrieve data efficiently, making it an essential resource for anyone involved in the trading of precious metals.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to access a wealth of information about precious metals. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for metals, updated at intervals depending on the subscription plan. This feature is crucial for applications that require up-to-the-minute pricing information. For instance, a trading application can utilize this endpoint to display the current price of gold, enabling users to make timely decisions.
{
"success": true,
"timestamp": 1775262086,
"base": "USD",
"date": "2026-04-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
Accessing historical rates is essential for analyzing trends over time. The Historical Rates endpoint allows users to retrieve data dating back to 2019. By appending a specific date to the API request, developers can obtain historical prices for gold, which can be invaluable for market analysis and forecasting.
{
"success": true,
"timestamp": 1775175686,
"base": "USD",
"date": "2026-04-03",
"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 users to understand the market dynamics better. This feature is particularly useful for traders who need to know the current buying and selling prices to make informed decisions.
{
"success": true,
"timestamp": 1775262086,
"base": "USD",
"date": "2026-04-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"
}
Convert Endpoint
The Convert endpoint allows users to convert amounts between different metals or to/from USD. This feature is particularly useful for applications that require currency conversion for transactions or price comparisons.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1775262086,
"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 specified dates. This feature is essential for analyzing price trends over specific periods, providing insights into market behavior.
{
"success": true,
"timeseries": true,
"start_date": "2026-03-28",
"end_date": "2026-04-04",
"base": "USD",
"rates": {
"2026-03-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides information on how metal prices fluctuate over a specified period. This feature is useful for understanding market volatility and making predictions based on historical data.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-28",
"end_date": "2026-04-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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC endpoint provides open, high, low, and close prices for a specific time period. This data is crucial for traders who analyze price movements and trends to make informed trading decisions.
{
"success": true,
"timestamp": 1775262086,
"base": "USD",
"date": "2026-04-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"
}
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 users interested in the London Metal Exchange prices.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
Conclusion
The Metals-API offers a comprehensive suite of tools for developers looking to integrate precious metals data into their applications. With features like real-time rates, historical data, and advanced endpoints for analysis, it empowers users to make informed decisions based on accurate and timely information. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance the trading experience for users.
As the financial landscape continues to evolve, the importance of reliable data sources cannot be overstated. The Metals-API stands out as a leader in providing essential data for precious metals, making it an invaluable resource for developers and traders alike. For further exploration of the API's features, visit the Metals-API Documentation and start building your next application today.