Get ProShares Ultra Gold (UGL) prices using this API

Metals-API. This API provides comprehensive access to gold prices and other metal data, enabling developers to create innovative solutions that can transform trading and investment strategies.
Understanding Gold (XAU)
Metals-API Documentation provides developers with the tools necessary to tap into this data, enabling them to build applications that can analyze market trends, track price fluctuations, and even automate trading strategies.
Digital Transformation in Precious Metals
Data Analytics and Market Insights
Latest Rates Endpoint returns real-time exchange rate data, which can be crucial for traders looking to make quick decisions. The API's response includes fields such as:
{
"success": true,
"timestamp": 1743307219,
"base": "USD",
"date": "2025-03-30",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Technology Integration in Trading
Convert Endpoint allows developers to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1743307219,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Innovation in Price Discovery
Fluctuation Endpoint, which allows users to track rate fluctuations between two dates. This feature enables traders to analyze price movements over time, helping them make informed decisions based on historical performance.
{
"success": true,
"fluctuation": true,
"start_date": "2025-03-23",
"end_date": "2025-03-30",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Digital Asset Solutions
Metals-API Supported Symbols page.
API Description
Key Features and Endpoints
- Latest Rates Endpoint: Returns real-time exchange rate data updated based on the subscription plan.
- Historical Rates Endpoint: Access historical rates dating back to 2019, allowing for in-depth analysis of price trends.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices, essential for traders looking to make informed decisions.
- Time-Series Endpoint: Query daily historical rates between two dates, providing insights into price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, aiding in market analysis.
- Carat Endpoint: Retrieve gold rates by carat, useful for jewelers and traders dealing in gold jewelry.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date range.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific time period.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008.
- API Key: A unique key required for accessing the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD, with all data returned in a structured format.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a specific market.
- News Endpoint: Access the latest news articles related to various metals, keeping users informed about market trends.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1743307219,
"base": "USD",
"date": "2025-03-30",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1743220819,
"base": "USD",
"date": "2025-03-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-03-23",
"end_date": "2025-03-30",
"base": "USD",
"rates": {
"2025-03-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-03-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-03-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1743307219,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-03-23",
"end_date": "2025-03-30",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1743307219,
"base": "USD",
"date": "2025-03-30",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1743307219,
"base": "USD",
"date": "2025-03-30",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
Metals-API Documentation and start building your applications today. With the right tools and data, the possibilities are endless.