Utilize this API for ProShares Ultra Gold (UGL) Historical Price Data
Introduction
In the world of finance, the ability to access accurate and timely historical price data is crucial for making informed investment decisions. For those interested in the ProShares Ultra Gold (UGL), utilizing the Metals-API can provide invaluable insights into gold price movements. This API offers a comprehensive suite of features that allow developers to access real-time and historical data, enabling them to build sophisticated applications for trading, analysis, and investment strategies.
Understanding Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the financial markets. As a precious metal, it serves not only as a safe haven during economic uncertainty but also as a key asset in various investment portfolios. The digital transformation in precious metals trading has opened up new avenues for data analytics and market insights. By integrating technology into trading practices, investors can leverage real-time data to enhance their decision-making processes.
With the rise of digital asset solutions, the innovation in price discovery mechanisms has made it easier for traders to access and analyze gold prices. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to create next-generation applications that can harness the power of real-time metals data.
API Description
The Metals-API is a powerful JSON API that provides access to metals prices and currency conversion. It empowers developers to build applications that can retrieve and analyze data on various metals, including gold, silver, platinum, and palladium. The API is designed with innovation and technological advancement in mind, allowing for seamless integration into existing systems.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on the subscription plan, users can access data updated every 60 minutes or even every 10 minutes. This level of granularity is essential for traders who need to make quick decisions based on the latest market conditions.
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 important features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for all available metals. This endpoint is crucial for traders who need to monitor price fluctuations continuously. The data returned includes the base currency, the date of the rates, and the rates for various metals.
{
"success": true,
"timestamp": 1788999102,
"base": "USD",
"date": "2026-09-10",
"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
For those looking to analyze trends over time, the Historical Rates Endpoint allows users to access historical exchange rates dating back to 2019. By appending a specific date to the API call, developers can retrieve past rates, which is invaluable for backtesting trading strategies.
{
"success": true,
"timestamp": 1788912702,
"base": "USD",
"date": "2026-09-09",
"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 is a powerful feature that provides real-time bid and ask prices for metals. This information is essential for traders looking to execute orders at the best possible prices. The data returned includes the bid price, ask price, and the spread between them.
{
"success": true,
"timestamp": 1788999102,
"base": "USD",
"date": "2026-09-10",
"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 metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788999102,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is essential for analyzing price movements over specific periods, enabling traders to identify trends and make informed decisions.
{
"success": true,
"timeseries": true,
"start_date": "2026-09-03",
"end_date": "2026-09-10",
"base": "USD",
"rates": {
"2026-09-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-09-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-10": {
"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. This feature is particularly useful for traders who want to track volatility and make strategic decisions based on price movements.
{
"success": true,
"fluctuation": true,
"start_date": "2026-09-03",
"end_date": "2026-09-10",
"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 query the API to get the open, high, low, and close prices for a specific date. This data is essential for traders who want to analyze price movements and make informed trading decisions.
{
"success": true,
"timestamp": 1788999102,
"base": "USD",
"date": "2026-09-10",
"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 traders who want to analyze historical data specific to the London Metal Exchange.
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. The API responses are delivered in JSON format, with exchange rates typically relative to USD. All data is returned in a structured format, making it easy for developers to parse and utilize in their applications.
Available Endpoints
The Metals-API offers a total of 14 endpoints, each providing different functionalities. Developers can explore these endpoints to find the best fit for their specific needs. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
Practical Use Cases and Integration Strategies
Integrating the Metals-API into trading applications can significantly enhance the capabilities of developers. Here are some practical use cases:
Real-Time Trading Applications
Developers can create real-time trading applications that utilize the Latest Rates and Bid/Ask endpoints to provide users with up-to-the-minute pricing information. This allows traders to execute orders at optimal prices, maximizing their potential returns.
Historical Data Analysis
By leveraging the Historical Rates and Time-Series endpoints, developers can build applications that analyze historical price trends. This data can be used for backtesting trading strategies, allowing traders to refine their approaches based on past performance.
Portfolio Management Tools
Integrating the Convert Endpoint into portfolio management tools can help users assess the value of their holdings in different currencies. This feature is particularly useful for investors who hold diverse assets across various markets.
Market Analysis and Reporting
Using the Fluctuation and OHLC endpoints, developers can create market analysis tools that provide insights into price volatility and trends. These tools can generate reports that help traders make informed decisions based on comprehensive market data.
Conclusion
The Metals-API is a powerful tool for developers looking to access historical price data for ProShares Ultra Gold (UGL) and other precious metals. With its comprehensive suite of endpoints, the API empowers users to build sophisticated applications that leverage real-time and historical data for trading, analysis, and investment strategies. By understanding the capabilities of the Metals-API, developers can create innovative solutions that enhance their trading practices and provide valuable insights into the precious metals market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation. Explore the extensive features and capabilities that this API offers, and unlock the potential of real-time metals data in your applications.