Get ProShares Ultra Gold (UGL) prices through REST API calls
In the world of finance, the ability to access real-time data is crucial for making informed decisions. One such asset that has garnered significant attention is the ProShares Ultra Gold (UGL), a fund that aims to provide investors with leveraged exposure to the price of gold. To effectively track UGL prices and understand market dynamics, developers can utilize the Metals-API, a powerful tool that offers a comprehensive suite of endpoints for accessing precious metals data.
Metals-API Information
The Metals-API is designed to provide developers with real-time and historical data on various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API empowers developers to build applications that can analyze market trends, perform currency conversions, and track price fluctuations, all of which are essential for trading and investment strategies.
About Gold (XAU)
Gold has been a symbol of wealth and stability for centuries. In recent years, the digital transformation in precious metals has revolutionized how investors access and analyze gold data. With the integration of advanced data analytics and technology, traders can now gain insights into market trends and make informed decisions based on real-time data.
One of the most significant innovations in the gold market is the use of digital asset solutions. These solutions enable investors to trade gold in a more efficient manner, leveraging technology to enhance price discovery and market transparency. The Metals-API plays a crucial role in this transformation by providing developers with the tools needed to access real-time gold prices and historical data.
API Description
The Metals-API is a robust platform that offers a variety of endpoints to cater to different data needs. Whether you are looking for the latest rates, historical data, or specific market insights, the Metals-API has you covered. By utilizing this API, developers can create next-generation applications that harness the power of real-time metals data.
For more detailed information, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on how to implement and utilize the various features of the API.
Key Features and Endpoints
The Metals-API offers a wide range of features that can be leveraged for various applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Developers can access the latest gold prices and other metals at intervals of 60 minutes, 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This feature allows developers to analyze past trends and make predictions based on historical data.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, which is essential for traders looking to make quick decisions based on market movements.
- Convert Endpoint: This endpoint enables currency conversion between different metals and USD, making it easier for developers to build applications that require currency conversion functionalities.
- Time-Series Endpoint: Query the API for daily historical rates between two dates, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, which can help in understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those involved in industrial metals.
- API Key: Each user is provided with a unique API key that must be included in requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API includes 14 endpoints, each offering unique functionalities for developers.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1774570317,
"base": "USD",
"date": "2026-03-27",
"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"
}
This response indicates that the current price of gold (XAU) is 0.000482 per troy ounce, providing developers with immediate access to market data.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1774483917,
"base": "USD",
"date": "2026-03-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows developers to analyze historical price trends, which can be crucial for making informed trading decisions.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"base": "USD",
"rates": {
"2026-03-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices, allowing developers to visualize trends over a specified period.
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": 1774570317,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for applications that require currency conversion, enabling seamless transactions across different metals.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-20",
"end_date": "2026-03-27",
"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"
}
This endpoint provides insights into how prices have changed over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1774570317,
"base": "USD",
"date": "2026-03-27",
"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 data is crucial for technical analysis, allowing traders to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1774570317,
"base": "USD",
"date": "2026-03-27",
"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"
}
This endpoint provides essential data for traders looking to execute buy or sell orders based on the current market conditions.
Conclusion
The ProShares Ultra Gold (UGL) represents a significant opportunity for investors looking to capitalize on the price movements of gold. By leveraging the capabilities of the Metals-API, developers can create powerful applications that provide real-time insights into gold prices and market trends. The API's extensive features, including the latest rates, historical data, and fluctuation tracking, empower developers to build solutions that enhance trading strategies and investment decisions.
For those interested in exploring the full potential of the Metals-API, the Metals-API Documentation is an invaluable resource, offering detailed guidance on implementation and usage. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metals, ensuring that developers have access to the data they need to succeed in the dynamic world of precious metals trading.