Pull monthly ProShares Ultra Gold (UGL) prices using this API
Introduction
In the ever-evolving landscape of financial markets, the demand for accurate and real-time data is paramount. This is especially true for precious metals like gold, where fluctuations can significantly impact investment strategies. One of the most effective ways to pull monthly ProShares Ultra Gold (UGL) prices is through the Metals-API. This powerful API provides developers with the tools necessary to access comprehensive data on gold and other metals, enabling them to create innovative applications that leverage real-time market insights.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been considered a safe haven asset and a hedge against inflation. As digital transformation continues to reshape the financial landscape, the integration of technology in trading precious metals has become increasingly important. The use of data analytics allows traders to gain market insights that were previously unattainable, leading to more informed decision-making.
Moreover, the innovation in price discovery mechanisms has been enhanced by digital asset solutions, which provide real-time data that can be utilized for trading strategies. The Metals-API stands at the forefront of this transformation, offering developers the ability to access and manipulate gold pricing data seamlessly.
API Description
The Metals-API is designed to empower developers by providing real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API allows for the creation of next-generation applications that can analyze market trends, track price fluctuations, and provide insights into trading strategies.
With its extensive documentation available at Metals-API Documentation, developers can easily navigate through the various endpoints and understand how to implement them effectively. The API supports a wide range of functionalities, making it a versatile tool for any developer looking to integrate precious metals data into their applications.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Each endpoint is designed to provide specific functionalities, allowing developers to tailor their applications to meet user demands.
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on the user's subscription plan. Developers can access the latest prices for gold and other metals, enabling them to make timely trading decisions.
- Historical Rates Endpoint: For those interested in analyzing trends over time, the historical rates endpoint allows users to query data dating back to 2019. By appending a specific date, developers can retrieve past prices and conduct thorough analyses.
- Bid And Ask Endpoint: This feature enables users to obtain real-time bid and ask prices for metals, providing insights into market liquidity and helping traders make informed decisions.
- Convert Endpoint: The conversion endpoint allows users to convert amounts between different metals or to/from USD, facilitating seamless transactions across various currencies.
- Time-Series Endpoint: Developers can leverage the time-series endpoint to query daily historical rates between two specified dates, making it easier to visualize trends and fluctuations over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, allowing traders to understand market volatility.
- Carat Endpoint: For those interested in gold rates by carat, this endpoint allows users to retrieve specific pricing information based on the carat weight.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive OHLC data for a specific time period, allowing traders to analyze market performance effectively.
- Historical LME Endpoint: For users interested in LME symbols, this endpoint provides historical rates dating back to 2008, offering a long-term perspective on metal prices.
- API Key: Each user is assigned a unique API key, which 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: With 14 different endpoints, the Metals-API provides a comprehensive suite of functionalities for developers.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, 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 implementation. Below are examples of various API endpoints and their corresponding JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1778371776,
"base": "USD",
"date": "2026-05-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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1778285376,
"base": "USD",
"date": "2026-05-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-03",
"end_date": "2026-05-10",
"base": "USD",
"rates": {
"2026-05-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778371776,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-03",
"end_date": "2026-05-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1778371776,
"base": "USD",
"date": "2026-05-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1778371776,
"base": "USD",
"date": "2026-05-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"
}
Conclusion
The Metals-API is a robust tool that provides developers with the ability to access real-time and historical data on precious metals, including gold. By leveraging its various endpoints, developers can create applications that not only track prices but also analyze trends, convert currencies, and understand market fluctuations. The integration of such data into trading strategies can lead to more informed decisions and potentially higher returns.
As the financial landscape continues to evolve, the importance of accurate and timely data cannot be overstated. The Metals-API stands out as a comprehensive solution for developers looking to harness the power of precious metals data. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.