Get Franklin Responsibly Sourced Gold ETF (FGDL) Historical Prices from the latest API documentation
Get Franklin Responsibly Sourced Gold ETF (FGDL) Historical Prices from the Latest API Documentation
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. The Franklin Responsibly Sourced Gold ETF (FGDL) is a popular investment vehicle that allows investors to gain exposure to gold without the need to physically hold the metal. To effectively track the historical prices of FGDL, developers can leverage the capabilities of the Metals-API. This blog post will delve into the intricacies of obtaining historical prices for gold (symbol: XAU) using the Metals-API, exploring its features, endpoints, and the transformative potential of real-time metals data.
Metals-API Information
The Metals-API is a powerful tool designed for developers and financial analysts who require real-time and historical data on various metals, including gold, silver, platinum, and palladium. With its robust infrastructure, the API provides a seamless way to access market insights, enabling users to build next-generation applications that can analyze trends, perform data analytics, and integrate technology into trading strategies.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. The digital transformation in precious metals trading has made it easier for investors to access gold prices and market data. With the rise of data analytics, traders can now gain insights into market trends and price movements, allowing for more informed decision-making.
Technology integration in trading has revolutionized how investors interact with the gold market. The Metals-API provides developers with the tools necessary to innovate in price discovery and create digital asset solutions that cater to the evolving needs of investors. By utilizing the API, developers can create applications that not only track historical prices but also analyze fluctuations, perform conversions, and provide real-time updates on market conditions.
API Description
The Metals-API is designed to empower developers by providing comprehensive access to metals data. With a focus on innovation and technological advancement, the API allows users to build applications that can respond to market changes in real-time. The API's capabilities include retrieving the latest rates, historical prices, and various other functionalities that enhance the trading experience.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on all available endpoints and their functionalities. Additionally, the Metals-API Supported Symbols page offers a complete list of metal symbols available for querying.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This allows traders to stay informed about the current market conditions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two chosen dates, facilitating in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and those dealing in high-quality gold.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain the open, high, low, and close prices for metals, which are critical for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is valuable for those interested in industrial metals.
- API Key: Each user is assigned a unique API key, which must be included in the API request to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers a total of 14 endpoints, each designed to provide specific functionalities for users.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for developers. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770077779,
"base": "USD",
"date": "2026-02-03",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response indicates that the latest exchange rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1769991379,
"base": "USD",
"date": "2026-02-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical exchange rate for gold on February 2, 2026, allowing developers to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-27",
"end_date": "2026-02-03",
"base": "USD",
"rates": {
"2026-01-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for gold over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770077779,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from USD to gold (XAU), providing a result of 0.482 troy ounces for an input of 1000 USD.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-27",
"end_date": "2026-02-03",
"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 tracks the fluctuations in gold prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1770077779,
"base": "USD",
"date": "2026-02-03",
"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 response provides the open, high, low, and close prices for gold, which are essential for conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1770077779,
"base": "USD",
"date": "2026-02-03",
"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 current bid and ask prices for gold, which are crucial for traders looking to execute buy or sell orders.
Conclusion
The Metals-API offers a comprehensive suite of tools for developers looking to access historical prices and real-time data for precious metals like gold. By utilizing the various endpoints, developers can create applications that not only track prices but also analyze trends, perform conversions, and provide valuable insights into market dynamics.
As the digital transformation in precious metals continues, the importance of accurate and timely data cannot be overstated. The Metals-API stands out as a powerful resource for those seeking to innovate in the field of metals trading. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
In summary, whether you are a developer looking to integrate metals data into your applications or a trader seeking to analyze historical prices, the Metals-API provides the necessary tools to succeed in the ever-evolving landscape of precious metals trading.