Retrieve Franklin Responsibly Sourced Gold ETF (FGDL) prices using this API

Retrieve Franklin Responsibly Sourced Gold ETF (FGDL) Prices Using This API
In the ever-evolving landscape of financial technology, the ability to access real-time data on precious metals has become paramount for investors and developers alike. The Franklin Responsibly Sourced Gold ETF (FGDL) is a significant player in the gold market, and understanding its pricing dynamics is essential for making informed investment decisions. This blog post will delve into how to retrieve FGDL prices using the Metals-API, a powerful tool that provides comprehensive data on various metals, including gold (XAU).
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets, serving as a safe haven during economic uncertainty. The digital transformation in precious metals trading has introduced innovative solutions that leverage data analytics and technology integration. With the rise of digital asset solutions, traders can now access real-time market insights that were previously unavailable.
Data analytics plays a crucial role in understanding market trends and price movements. By utilizing advanced algorithms and machine learning techniques, traders can analyze historical data to predict future price fluctuations. This innovation in price discovery allows investors to make more informed decisions, ultimately leading to better investment outcomes.
Moreover, the integration of technology in trading platforms has streamlined the process of buying and selling gold. With the Metals-API, developers can create applications that provide users with real-time gold prices, historical data, and even predictive analytics, enhancing the overall trading experience.
API Description
The Metals-API is a robust solution designed to empower developers with real-time metals data. This API enables the creation of next-generation applications that can access a wealth of information about various metals, including gold, silver, platinum, and palladium. By providing real-time and historical data, the Metals-API transforms how traders and investors interact with the metals market.
One of the standout features of the Metals-API is its ability to deliver data at different intervals based on subscription plans. Whether you need real-time updates every minute or hourly data, the API caters to your specific needs. This flexibility allows developers to tailor their applications to meet the demands of their users.
For comprehensive documentation on how to implement the Metals-API, visit the Metals-API Documentation. Here, you will find detailed information on the various endpoints, including their functionalities and usage examples.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. For instance, if you subscribe to the highest tier, you can receive updates every minute, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This feature allows you to analyze past performance and make informed predictions about future price movements.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals. This is crucial for traders looking to execute buy or sell orders at optimal prices.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This feature simplifies transactions and enhances user experience.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice. This is particularly useful for analyzing trends over specific periods.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis. This information can help traders identify patterns and make strategic decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, allowing for precise calculations based on purity.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, which can aid in understanding market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed price data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- 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 offers multiple endpoints, each designed for specific functionalities, ensuring comprehensive coverage of metal data.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for regional traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping you stay informed about market 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1747882814,
"base": "USD",
"date": "2025-05-22",
"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 that the latest gold price (XAU) is 0.000482 per troy ounce, relative to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747796414,
"base": "USD",
"date": "2025-05-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for gold and other metals on a specific date, allowing for trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-15",
"end_date": "2025-05-22",
"base": "USD",
"rates": {
"2025-05-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for the specified period, which is useful for analyzing trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747882814,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert an amount from USD to gold (XAU), showing that $1000 is equivalent to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-15",
"end_date": "2025-05-22",
"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, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1747882814,
"base": "USD",
"date": "2025-05-22",
"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 detailed price data for the open, high, low, and close prices, which is vital for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1747882814,
"base": "USD",
"date": "2025-05-22",
"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 traders looking to execute transactions at the best possible prices.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers and traders looking to access real-time and historical data on precious metals like gold (XAU). By leveraging the various endpoints available, users can gain insights into market trends, execute informed trades, and enhance their overall trading strategies.
As the financial landscape continues to evolve, the integration of technology and data analytics will play a crucial role in shaping the future of precious metals trading. For those interested in exploring the capabilities of the Metals-API further, be sure to check out the Metals-API Documentation for detailed guidance on implementation.
To stay updated on the latest developments in the metals market, visit the Metals-API Website and explore the Metals-API Supported Symbols page for a comprehensive list of available metals.