How to Retrieve Franklin Responsibly Sourced Gold ETF (FGDL) Prices Across Various Currencies with this API
How to Retrieve Franklin Responsibly Sourced Gold ETF (FGDL) Prices Across Various Currencies with this API
In the rapidly evolving world of finance, the ability to access accurate and real-time data is paramount, especially when it comes to precious metals like gold. The Metals-API provides a robust solution for developers looking to retrieve Franklin Responsibly Sourced Gold ETF (FGDL) prices across various currencies. This blog post will explore how the Metals-API can be leveraged to obtain precise gold prices, along with detailed insights into its features, capabilities, and potential applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its significance in the financial markets continues to grow. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is becoming increasingly important. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness data analytics and market insights for innovative trading solutions.
With the rise of digital asset solutions, understanding gold's market dynamics is crucial. The Metals-API not only provides real-time pricing data but also empowers developers to create applications that can analyze market trends, optimize trading strategies, and enhance price discovery processes. By utilizing the API, developers can tap into a wealth of information that can drive informed decision-making in the precious metals market.
API Description
The Metals-API is a powerful JSON API that delivers real-time and historical data on metal prices, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is designed to support developers in building next-generation applications that require accurate and timely metals data. With its innovative features, the Metals-API enables users to access a wide range of functionalities, from retrieving the latest rates to analyzing historical trends.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for comprehensive guidance on implementation.
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 various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019 for most currencies. By appending a specific date in the format YYYY-MM-DD, you can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows you to obtain real-time bid and ask prices for metals, providing insights into market liquidity and pricing strategies.
- Convert Endpoint: The conversion endpoint enables you to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is essential for understanding market volatility and making informed trading decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices within a specified timeframe, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for specific time periods, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term perspective on metal pricing.
- API Key: Your unique API key is essential for accessing the API, ensuring secure and authorized data retrieval.
- 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 features 14 distinct endpoints, each designed to fulfill specific data needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have access to the latest symbols.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, allowing for real-time trading decisions.
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
To illustrate the capabilities of the Metals-API, here are some examples of API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1785629723,
"base": "USD",
"date": "2026-08-02",
"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, with similar data for other metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1785543323,
"base": "USD",
"date": "2026-08-01",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for gold and other metals on a specific date, allowing for analysis of past market behavior.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-07-26",
"end_date": "2026-08-02",
"base": "USD",
"rates": {
"2026-07-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-02": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, which is essential for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1785629723,
"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-07-26",
"end_date": "2026-08-02",
"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 details the fluctuations in gold prices over a specified period, which is crucial for understanding market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1785629723,
"base": "USD",
"date": "2026-08-02",
"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 comprehensive OHLC data, which is essential for traders looking to analyze price movements and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1785629723,
"base": "USD",
"date": "2026-08-02",
"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 crucial for understanding market liquidity and executing trades effectively.
Conclusion
The Metals-API is an invaluable resource for developers seeking to retrieve accurate Franklin Responsibly Sourced Gold ETF (FGDL) prices across various currencies. With its comprehensive suite of endpoints, the API empowers users to access real-time and historical data, analyze market trends, and make informed trading decisions. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies and optimize market performance.
For further exploration of the API's features, visit the Metals-API Documentation and discover the extensive range of supported symbols on the Metals-API Supported Symbols page. Embrace the power of real-time metals data and transform your trading experience today.