Access real-time ProShares Ultra Gold (UGL) prices using this API
Access Real-Time ProShares Ultra Gold (UGL) Prices Using This API
In the world of precious metals trading, having access to real-time data is crucial for making informed decisions. The ProShares Ultra Gold (UGL) is a popular exchange-traded fund (ETF) that seeks to provide investors with twice the daily performance of gold bullion. To effectively track UGL prices and understand market movements, developers can leverage the Metals-API. This API offers a comprehensive suite of features that enable users to access real-time gold prices, historical data, and various analytical tools.
Metals-API Information
The Metals-API is designed to provide developers with a powerful tool for integrating real-time metal price data into their applications. By utilizing this API, developers can create innovative solutions that enhance trading strategies, improve market analysis, and facilitate data-driven decision-making.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been considered a safe haven asset and a hedge against inflation. In recent years, the digital transformation in precious metals has led to the integration of advanced technologies and data analytics in trading practices. The rise of digital asset solutions has further revolutionized how investors approach gold trading.
With the advent of data analytics, market insights derived from real-time data can significantly influence trading decisions. The Metals-API plays a pivotal role in this transformation by providing developers with the tools needed to access and analyze gold prices effectively. The API's capabilities allow for innovation in price discovery, enabling traders to make informed decisions based on accurate and timely data.
API Description
The Metals-API is a robust platform that empowers developers to build next-generation applications focused on precious metals trading. With its innovative features, the API facilitates seamless integration of real-time metals data into various applications. The API supports multiple endpoints, each designed to cater to specific needs, from retrieving the latest rates to accessing historical data.
For more detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on usage, endpoints, and best practices.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that serve different purposes, allowing developers to tailor their applications to meet specific requirements. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals. Depending on the subscription plan, updates can occur every 60 minutes or every 10 minutes, ensuring that users have access to the most current market information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past data for analysis and comparison.
- Bid and Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for gold and other metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts between different metals or to/from USD, facilitating easier trading and analysis.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve gold rates by carat, which is particularly useful for jewelers and those dealing in fine gold.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for specific time periods, providing a comprehensive view of price movements.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, which is essential for traders focusing on industrial metals.
- API Key: Each user is assigned a unique API key that 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, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market trends and 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
To illustrate the capabilities of the Metals-API, here are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1768090239,
"base": "USD",
"date": "2026-01-11",
"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": 1768003839,
"base": "USD",
"date": "2026-01-10",
"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-01-04",
"end_date": "2026-01-11",
"base": "USD",
"rates": {
"2026-01-04": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-06": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-11": {
"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": 1768090239,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-04",
"end_date": "2026-01-11",
"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": 1768090239,
"base": "USD",
"date": "2026-01-11",
"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": 1768090239,
"base": "USD",
"date": "2026-01-11",
"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
In conclusion, the Metals-API provides a powerful and flexible solution for developers looking to access real-time gold prices and other precious metals data. By leveraging the various endpoints available, developers can create applications that enhance trading strategies, improve market analysis, and facilitate informed decision-making. The API's capabilities, combined with its comprehensive documentation, make it an invaluable resource for anyone involved in the precious metals market.
For further exploration of the API's features and to stay updated on the latest developments, be sure to visit the Metals-API Website and check out the Metals-API Documentation. Additionally, for a complete list of supported symbols, refer to the Metals-API Supported Symbols page. Embrace the future of trading with real-time data at your fingertips!