Get ProShares Ultra Gold (UGL) Monthly Historical Prices using this API

Get ProShares Ultra Gold (UGL) Monthly Historical Prices using this API
In the ever-evolving landscape of financial markets, the demand for precise and timely data has never been more critical. For those interested in precious metals, particularly gold, accessing historical prices can provide invaluable insights for investment strategies. The ProShares Ultra Gold (UGL) is a popular exchange-traded fund (ETF) that aims to provide investors with leveraged exposure to the price of gold. To effectively track and analyze UGL's performance, developers can utilize the Metals-API, a powerful tool that offers comprehensive historical price data for gold and other metals.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth preservation and investment for centuries. In recent years, the digital transformation in precious metals has revolutionized how investors access and analyze market data. With the integration of data analytics and technology, traders can now leverage real-time insights to make informed decisions. The Metals-API plays a crucial role in this transformation, providing developers with the tools necessary to build next-generation applications that can analyze gold prices and trends.
As the market for digital assets continues to grow, the demand for innovative solutions in price discovery has surged. The Metals-API empowers developers to harness real-time metals data, enabling them to create applications that can track fluctuations, analyze historical trends, and even convert between different metal values. This level of integration not only enhances trading strategies but also fosters a deeper understanding of market dynamics.
API Description
The Metals-API is designed to provide developers with a robust and flexible platform for accessing metals price data. With a focus on innovation and technological advancement, this API allows users to retrieve real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API's capabilities extend beyond simple price retrieval; it offers a suite of endpoints that can be utilized for a wide range of applications.
For developers looking to integrate metals data into their applications, the Metals-API offers a comprehensive documentation that outlines the various endpoints, their functionalities, and usage examples. This resource is invaluable for understanding how to effectively implement the API and maximize its potential.
Key Features and Endpoints
The Metals-API provides several key features that enhance its usability and functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who require up-to-the-minute pricing information.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. Developers can query the API for historical rates by appending a specific date, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables 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, allowing users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, facilitating trend analysis and forecasting.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, helping traders identify patterns and make informed decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest prices for a specified date range, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access the open, high, low, and close prices for a specific time period, which is critical for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a wealth of data for analysis.
- API Key: Each user receives a unique API key that is passed into the API base URL's access_key parameter, ensuring secure access to the data.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The API comes with a constantly updated endpoint returning all available currencies, ensuring users have access to the latest data.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold price in India, catering to a specific market segment.
- 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 Symbols page. This resource is essential for developers looking to understand the various metals available for querying.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some examples of the API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748581220,
"base": "USD",
"date": "2025-05-30",
"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"
}
The response indicates that the API successfully retrieved the latest rates for various metals, with the base currency being USD. The rates are provided per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1748494820,
"base": "USD",
"date": "2025-05-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example demonstrates how to access historical rates for a specific date. The response includes the rates for gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD), allowing for historical analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-23",
"end_date": "2025-05-30",
"base": "USD",
"rates": {
"2025-05-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve exchange rates for a specific time period, which is invaluable for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748581220,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint demonstrates how to convert an amount from one metal to another or to/from USD. In this case, it shows the conversion of $1000 to gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-23",
"end_date": "2025-05-30",
"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"
}
The fluctuation endpoint provides insights into how metal prices change over a specified period, which is critical for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1748581220,
"base": "USD",
"date": "2025-05-30",
"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 endpoint provides open, high, low, and close prices for a specific time period, which is essential for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748581220,
"base": "USD",
"date": "2025-05-30",
"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"
}
The bid/ask endpoint provides current bid and ask prices for metals, which is crucial for understanding market liquidity and executing trades effectively.
Conclusion
The Metals-API is an invaluable resource for developers looking to access and analyze historical prices for precious metals, particularly gold. By leveraging the API's extensive features, including real-time rates, historical data, and conversion capabilities, developers can create powerful applications that enhance trading strategies and market analysis.
As the financial landscape continues to evolve, the integration of technology and data analytics in precious metals trading will only become more critical. The Metals-API stands at the forefront of this transformation, providing the tools necessary for developers to build innovative solutions that meet the demands of modern investors.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage. Don't forget to check the Symbols List to familiarize yourself with the various metals available for querying.