Download USCF Gold Strategy Plus Income Fund (GLDX) Historical Prices from this API
Download USCF Gold Strategy Plus Income Fund (GLDX) Historical Prices from this API
In the world of finance, the ability to access historical price data is crucial for making informed investment decisions. For those interested in the USCF Gold Strategy Plus Income Fund (GLDX), obtaining historical prices can be seamlessly achieved through the Metals-API. This powerful tool not only provides real-time data but also allows developers to access a wealth of historical information on precious metals, including gold, silver, platinum, and palladium. In this blog post, we will explore the capabilities of the Metals-API, focusing on how to download historical prices for GLDX and the innovative features that make this API a game-changer in the financial data landscape.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its value is influenced by a myriad of factors, including market demand, geopolitical events, and economic indicators. As the digital transformation continues to reshape the financial landscape, the integration of data analytics and technology in trading has become essential. The Metals-API offers developers the tools to harness real-time metals data, enabling them to build next-generation applications that can provide market insights and innovative price discovery solutions.
With the rise of digital asset solutions, understanding the dynamics of gold trading has never been more critical. The Metals-API empowers developers to create applications that can analyze trends, track fluctuations, and convert currencies with ease. By leveraging this API, users can gain a competitive edge in the market, making informed decisions based on accurate and timely data.
API Description
The Metals-API is designed to provide comprehensive access to metals prices and currency conversion data through a simple JSON interface. It enables developers to build applications that can retrieve real-time and historical data, making it an invaluable resource for financial analysts, traders, and developers alike. The API's capabilities include:
- Real-time exchange rates for various metals
- Historical rates dating back to 2019
- Bid and ask prices for precise trading strategies
- Currency conversion for seamless transactions
- Time-series data for trend analysis
- Fluctuation tracking to monitor market volatility
- Open, high, low, and close (OHLC) price data for comprehensive market analysis
For more detailed information on how to utilize these features, refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Each endpoint is designed to provide specific functionalities that can enhance trading strategies and market analysis.
The Latest Rates Endpoint is a cornerstone feature that provides real-time exchange rate data updated at intervals depending on your subscription plan. This endpoint allows users to access the most current prices for metals, ensuring that traders can make decisions based on the latest market conditions.
For those interested in historical data, the Historical Rates Endpoint allows users to query historical rates by appending a specific date in the format YYYY-MM-DD. This feature is particularly useful for analyzing trends over time and understanding how the prices of metals have fluctuated.
The Bid and Ask Endpoint provides real-time bid and ask prices, which are essential for traders looking to execute orders at the best possible prices. This endpoint enhances trading strategies by allowing users to gauge market sentiment and make informed decisions.
Another valuable feature is the Convert Endpoint, which enables users to convert any amount from one metal to another or to/from USD. This functionality is crucial for traders who operate in multiple currencies and need to assess their positions accurately.
The Time-Series Endpoint allows users to query daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses and identifying patterns in price movements over time.
Additionally, the Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis, helping traders understand market volatility and make strategic decisions accordingly.
For those interested in gold rates by carat, the Carat Endpoint allows users to retrieve information about gold rates based on carat weight. This feature is particularly useful for jewelers and those involved in the precious metals market.
The Lowest/Highest Price Endpoint enables users to query the API for the lowest and highest prices within a specified timeframe, providing insights into market extremes.
The Open/High/Low/Close (OHLC) Price Endpoint offers a comprehensive view of market activity by providing open, high, low, and close prices for a specific date, allowing traders to assess market performance effectively.
For LME symbols, the Historical LME Endpoint provides access to historical rates dating back to 2008, making it a valuable resource for those tracking industrial metals.
To access the API, users must utilize their unique API Key, which is passed into the API base URL's access_key parameter. This key is essential for authentication and authorization, ensuring that only authorized users can access the data.
The API response delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format, making it easy to integrate into applications.
For a complete list of available symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for developers looking to integrate the Metals-API into their applications. Below are examples of various endpoints and their corresponding JSON responses.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1788480858,
"base": "USD",
"date": "2026-09-04",
"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 a successful query, providing the latest exchange rates for various metals, including gold (XAU), silver (XAG), and platinum (XPT).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1788394458,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful response for historical rates, allowing users to analyze past prices for gold and other metals.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-08-28",
"end_date": "2026-09-04",
"base": "USD",
"rates": {
"2026-08-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series analysis of gold prices over a specified period, allowing users to track trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788480858,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another, providing the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-28",
"end_date": "2026-09-04",
"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 response provides insights into how prices have fluctuated over a specified period, highlighting changes in rates and percentage differences.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1788480858,
"base": "USD",
"date": "2026-09-04",
"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 a comprehensive view of market activity, allowing traders to assess performance based on open, high, low, and close prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1788480858,
"base": "USD",
"date": "2026-09-04",
"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 response provides current bid and ask prices, which are essential for executing trades at optimal prices.
Conclusion
In conclusion, the Metals-API offers a robust solution for developers and traders seeking to access historical prices for the USCF Gold Strategy Plus Income Fund (GLDX) and other precious metals. With its comprehensive range of endpoints, the API provides real-time and historical data that can enhance trading strategies and market analysis. By leveraging the capabilities of the Metals-API, users can gain valuable insights into market trends, fluctuations, and price movements.
For those looking to dive deeper into the world of precious metals trading, the Metals-API is an invaluable resource. Whether you are a developer building applications or a trader seeking to optimize your strategies, the API's features and functionalities can empower you to make informed decisions based on accurate and timely data. To get started, explore the Metals-API Documentation and familiarize yourself with the various endpoints available. Additionally, check out the Metals-API Supported Symbols page for a complete list of available metal symbols.
By harnessing the power of the Metals-API, you can unlock the potential of historical price data and take your trading strategies to new heights.