Get Franklin Responsibly Sourced Gold ETF (FGDL) Historical Prices using this API

Get Franklin Responsibly Sourced Gold ETF (FGDL) Historical Prices using this API
In the ever-evolving landscape of precious metals trading, the ability to access accurate and timely data is paramount. For developers and traders interested in the Franklin Responsibly Sourced Gold ETF (FGDL), obtaining historical prices is crucial for informed decision-making. This blog post will delve into how to retrieve historical prices for Gold (XAU) using the Metals-API, a powerful tool that provides real-time and historical data for various metals.
Metals-API Information
The Metals-API is a robust platform designed to facilitate the integration of precious metals data into applications. It offers a comprehensive suite of endpoints that allow developers to access real-time and historical price data, making it an invaluable resource for anyone involved in the trading of metals. The API is particularly beneficial for those looking to harness the power of data analytics and market insights in their trading strategies.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its value is influenced by various factors, including market demand, geopolitical events, and currency fluctuations. In recent years, the digital transformation in precious metals trading has led to the integration of advanced technologies that enhance price discovery and trading efficiency.
With the rise of data analytics, traders can now gain deeper insights into market trends and price movements. The Metals-API empowers developers to build applications that leverage these insights, allowing for more informed trading decisions. By integrating real-time data into their platforms, developers can create innovative solutions that cater to the needs of modern traders.
API Description
The Metals-API is designed to provide developers with the tools necessary to access and manipulate metals data efficiently. Its capabilities extend beyond simple price retrieval; it enables users to build next-generation applications that can analyze trends, forecast prices, and optimize trading strategies. The API's real-time data delivery and historical data access make it a transformative tool for anyone in the metals trading space.
For detailed information on how to get started, refer to the Metals-API Documentation. This resource provides comprehensive guidance on authentication, endpoint usage, and response handling.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes or more frequently. This is essential for traders who need the most current pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is crucial for analyzing trends over time.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling you to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for conducting in-depth analyses of price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis, helping traders understand volatility and market trends.
- Carat Endpoint: Get information about Gold rates by carat, which is essential for jewelers and those dealing in high-purity gold.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific time period, which is critical for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features multiple endpoints, each designed for specific functionalities, ensuring comprehensive data access.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India, which is vital for traders in that market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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
Understanding the structure of API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1746684078,
"base": "USD",
"date": "2025-05-08",
"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 the success of the request and provides the latest rates for various metals, including Gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746597678,
"base": "USD",
"date": "2025-05-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
The historical rates endpoint allows you to access past prices, which is essential for trend analysis and forecasting.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-01",
"end_date": "2025-05-08",
"base": "USD",
"rates": {
"2025-05-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for analyzing price trends over a specified period, allowing traders to make data-driven decisions.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746684078,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between different metals or currencies, facilitating transactions across various markets.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-01",
"end_date": "2025-05-08",
"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 price fluctuations, helping traders understand market volatility and make informed decisions.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1746684078,
"base": "USD",
"date": "2025-05-08",
"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"
}
The OHLC endpoint is essential for traders who rely on technical analysis, providing key price points for decision-making.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1746684078,
"base": "USD",
"date": "2025-05-08",
"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, which are crucial for understanding market dynamics and executing trades effectively.
Conclusion
The Metals-API is an essential tool for developers and traders looking to access historical prices for the Franklin Responsibly Sourced Gold ETF (FGDL) and other metals. By leveraging the API's extensive features, including real-time data, historical rates, and various conversion options, users can build powerful applications that enhance trading strategies and market analysis.
For more information on how to utilize the API effectively, visit the Metals-API Documentation for detailed guidance. Additionally, explore the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols and their specifications.
As the digital transformation in precious metals continues to evolve, staying informed and utilizing advanced data analytics will be key to success in this dynamic market. Embrace the power of the Metals-API to gain a competitive edge in your trading endeavors.