Obtain ProShares Ultra Gold (UGL) Historical Prices from this API

Obtain ProShares Ultra Gold (UGL) Historical Prices from this API
In the ever-evolving landscape of financial markets, obtaining accurate and timely data is crucial for informed decision-making. For those interested in precious metals, particularly gold, the ProShares Ultra Gold (UGL) offers a unique investment opportunity. However, to effectively utilize this investment vehicle, one must have access to reliable historical price data. This is where the Metals-API comes into play, providing developers with the tools needed to access comprehensive historical prices for gold and other metals.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As a digital transformation unfolds across various sectors, the precious metals market is no exception. The integration of technology into trading practices has revolutionized how investors access and analyze market data. With the rise of data analytics, traders can now glean insights that were previously unattainable, allowing for more informed trading strategies.
Moreover, the innovation in price discovery mechanisms has transformed how gold prices are determined. Digital asset solutions are becoming increasingly popular, enabling seamless transactions and real-time data access. The Metals-API stands at the forefront of this transformation, offering a robust platform for developers to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data for various metals, including gold. This API empowers users to build applications that require accurate metals pricing, enabling a wide range of functionalities from simple price retrieval to complex data analysis.
With the Metals-API, developers can access a variety of endpoints that cater to different needs. Whether you are looking for the latest rates, historical data, or even specific price fluctuations, this API has you covered. The transformative potential of real-time metals data cannot be overstated, as it allows for the development of applications that can react to market changes instantaneously.
Key Features and Endpoints
The Metals-API offers a plethora of features that cater to the diverse needs of developers. Here are some of the key endpoints and their functionalities:
- 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 allows developers to access the most current pricing for gold and other metals.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the request, developers can retrieve historical prices for gold, enabling them to analyze trends over time.
- 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: This endpoint enables the conversion of any amount from one metal to another or to/from USD, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest prices for a specified date, providing valuable insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate 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 provides a constantly updated list of all available currencies and their specifications.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, catering to a specific regional market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1754114429,
"base": "USD",
"date": "2025-08-02",
"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 a successful request, providing the latest rates for various metals, including gold (XAU). The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1754028029,
"base": "USD",
"date": "2025-08-01",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows developers to access historical rates for a specific date. The response includes the rates for gold and other metals, enabling trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-26",
"end_date": "2025-08-02",
"base": "USD",
"rates": {
"2025-07-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-02": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a detailed view of how gold prices have changed over a specified period, allowing for comprehensive analysis of market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1754114429,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint allows users to convert amounts between different metals and currencies. In this example, it shows the conversion of USD to gold (XAU), providing the equivalent amount in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-26",
"end_date": "2025-08-02",
"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 prices have changed over a specific period, including both absolute changes and percentage changes, which are critical for traders looking to understand market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1754114429,
"base": "USD",
"date": "2025-08-02",
"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 critical data for traders, including the opening, highest, lowest, and closing prices for a specific date, which are essential for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1754114429,
"base": "USD",
"date": "2025-08-02",
"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 real-time bid and ask prices, along with the spread, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers seeking to access historical prices and real-time data for precious metals like gold. By leveraging the various endpoints available, developers can create applications that provide valuable insights into market trends, enabling informed trading decisions.
With features such as the latest rates, historical data, and fluctuation tracking, the Metals-API empowers users to harness the power of data analytics in the precious metals market. As the digital transformation continues to reshape the financial landscape, APIs like Metals-API will play a pivotal role in enabling developers to build innovative solutions that meet the demands of modern investors.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. Embrace the future of trading with the power of real-time metals data at your fingertips.