Get Historical Pricing Information for Gold UAE 18 k (XAUUAE18) - Per Gram with this API
Get Historical Pricing Information for Gold UAE 18 k (XAUUAE18) - Per Gram with this API
In the ever-evolving landscape of precious metals trading, having access to accurate and timely data is paramount. For developers and financial analysts looking to track the historical pricing information for Gold (XAU), particularly in the UAE market, the Metals-API offers a robust solution. This API provides comprehensive access to real-time and historical data, enabling users to make informed decisions based on market trends and analytics.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a critical asset in financial markets worldwide. In recent years, the digital transformation in precious metals trading has revolutionized how investors and traders access and utilize gold data. With the integration of advanced data analytics and market insights, stakeholders can now leverage technology to enhance their trading strategies.
The rise of digital asset solutions has also paved the way for innovative approaches to price discovery. By utilizing APIs like Metals-API, developers can create applications that provide real-time insights into gold prices, historical trends, and market fluctuations. This technological advancement not only streamlines trading processes but also empowers users to make data-driven decisions.
Metals-API Overview
The Metals-API is designed to provide developers with a powerful toolset for accessing metals pricing data. With a focus on innovation and technological advancement, this API enables users to build next-generation applications that can analyze and visualize precious metals data effectively. The API supports a wide range of functionalities, including real-time price updates, historical data retrieval, and currency conversion.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API's latest rates endpoint can return updates every 60 minutes or even every 10 minutes, ensuring that users have access to the most current information available. This is particularly beneficial for traders who need to react quickly to market changes.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Hereβs a closer look at some of the most significant features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals, including Gold (XAU). Users can easily access the latest pricing information, which is crucial for making timely trading decisions.
- Historical Rates Endpoint: Users can retrieve historical rates dating back to 2019 by appending a specific date to the API request. This feature is invaluable for analyzing trends over time and understanding market movements.
- Bid and Ask Endpoint: This powerful feature allows users to obtain real-time bid and ask prices for metals, facilitating better trading strategies and price negotiations.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, which is essential for understanding market volatility and making informed trading decisions.
- Carat Endpoint: This feature provides information about Gold rates by carat, allowing users to obtain precise pricing based on the purity of the gold.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a given date, which can help in identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, offering a detailed snapshot of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive analysis of market trends.
- 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 Metals-API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features 14 endpoints, each designed to fulfill specific data retrieval needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users can access the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1768695360,
"base": "USD",
"date": "2026-01-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
{
"success": true,
"timestamp": 1768608960,
"base": "USD",
"date": "2026-01-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-11",
"end_date": "2026-01-18",
"base": "USD",
"rates": {
"2026-01-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1768695360,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-11",
"end_date": "2026-01-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
{
"success": true,
"timestamp": 1768695360,
"base": "USD",
"date": "2026-01-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"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1768695360,
"base": "USD",
"date": "2026-01-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"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive and innovative solution for accessing historical pricing information for Gold (XAU) and other precious metals. With its extensive range of endpoints, developers can easily integrate real-time and historical data into their applications, enabling them to make informed trading decisions. The API's capabilities, including the latest rates, historical data, and fluctuation tracking, empower users to analyze market trends effectively.
For developers looking to harness the power of metals data, the Metals-API Documentation is an invaluable resource. It offers detailed information on how to implement the API, including endpoint descriptions, parameter details, and example responses. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring users can access the data they need.
As the market for precious metals continues to evolve, leveraging APIs like Metals-API will be crucial for developers and analysts aiming to stay ahead in this competitive landscape. By utilizing the tools and insights provided by this API, users can unlock the full potential of precious metals trading.