Retrieve Gold Turkey 24k (XAUTUR24) Historical Prices via this API
Retrieve Gold Turkey 24k (XAUTUR24) Historical Prices via this API
In the ever-evolving landscape of precious metals trading, the ability to access and analyze historical prices is crucial for investors and developers alike. The Metals-API provides a powerful solution for retrieving historical prices of gold and other metals, including the Gold Turkey 24k (XAUTUR24). This blog post will delve into the intricacies of the Metals-API, focusing on how to effectively retrieve historical prices and leverage the data for insightful market analysis.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As digital transformation sweeps across various sectors, the precious metals market is no exception. The integration of technology into trading practices has revolutionized how investors access and interpret market data. With the rise of data analytics, traders can now gain deeper insights into market trends, price movements, and investment opportunities.
In the context of gold trading, the Metals-API stands out as a transformative tool. It empowers developers to build next-generation applications that can analyze historical price data, track fluctuations, and provide real-time insights. By harnessing the capabilities of this API, traders can innovate their approach to price discovery and investment strategies.
API Description
The Metals-API is designed to provide developers with access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. Its innovative architecture allows for seamless integration into applications, enabling users to retrieve essential market data with ease. The API supports a wide range of functionalities, making it a versatile tool for developers looking to enhance their trading platforms.
For more detailed information, you can visit the Metals-API Website or explore the Metals-API Documentation for comprehensive guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that users have access to the most current market information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API request. This feature is invaluable for analyzing past market trends and making informed investment decisions.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is essential for jewelers and those dealing in gold jewelry.
- Lowest/Highest Price Endpoint: Users can query the API to find 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 crucial for technical analysis.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, which is particularly useful for those involved in industrial metals trading.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metal symbols, ensuring users have access to the latest data.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective data retrieval. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772237838,
"base": "USD",
"date": "2026-02-28",
"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 that the latest exchange rates for various metals are provided, with gold (XAU) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772151438,
"base": "USD",
"date": "2026-02-27",
"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 users to analyze past market conditions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-21",
"end_date": "2026-02-28",
"base": "USD",
"rates": {
"2026-02-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how to obtain exchange rates over a specific time period, enabling users to track price trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772237838,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from one currency to another, providing immediate results.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-21",
"end_date": "2026-02-28",
"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 metal prices fluctuate over a specified period, which is essential for understanding market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1772237838,
"base": "USD",
"date": "2026-02-28",
"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 the open, high, low, and close prices for a specific date, which is crucial for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772237838,
"base": "USD",
"date": "2026-02-28",
"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 dynamics and making informed trading decisions.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to access historical prices and real-time data for precious metals, including Gold Turkey 24k (XAUTUR24). By leveraging its various endpoints, users can gain valuable insights into market trends, price fluctuations, and investment opportunities. Whether you are analyzing historical data or tracking real-time prices, the Metals-API offers the capabilities needed to enhance your trading strategies.
For further exploration of the API's features, consider visiting the Metals-API Documentation for detailed guidance. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring you have access to the data you need.
In a world where data-driven decisions are paramount, the Metals-API stands out as an essential resource for anyone involved in precious metals trading. Embrace the power of real-time data and historical insights to elevate your trading experience.