Access Refined Gold Futures (FXGL) Historical Prices through this API
Access Refined Gold Futures (FXGL) Historical Prices through this API
In today's rapidly evolving financial landscape, accessing accurate and timely data is crucial for traders and developers alike. The Metals-API provides a powerful solution for accessing refined gold futures (FXGL) historical prices, enabling users to harness the potential of real-time metals data. This blog post will explore the capabilities of the Metals-API, focusing on its innovative features, endpoints, and how developers can leverage this technology to build next-generation applications in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the financial markets. As a precious metal, it serves not only as a store of value but also as a hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. By integrating technology into trading practices, investors can gain a competitive edge through innovation in price discovery and digital asset solutions.
With the rise of digital currencies and blockchain technology, the landscape of gold trading is changing. Developers can now utilize APIs like Metals-API to access historical price data, analyze trends, and make informed trading decisions. This API empowers users to build applications that can track gold prices in real-time, analyze historical data, and even convert between different currencies seamlessly.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical metals data. Its capabilities extend beyond mere price retrieval; it offers a transformative potential for applications in financial technology. By leveraging the Metals-API, developers can create innovative solutions that enhance trading strategies, optimize market analysis, and improve user experiences.
For more information, visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs within the metals trading ecosystem. Below are some of the key features and their potential applications:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for various metals, including gold. Depending on your subscription plan, this endpoint can return updates every 60 minutes or even every 10 minutes. This feature is essential for traders who need to make quick decisions based on the most current market data.
{
"success": true,
"timestamp": 1782000861,
"base": "USD",
"date": "2026-06-21",
"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"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analyzing market trends and making informed decisions. The Historical Rates endpoint allows users to retrieve data dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for historical rates, enabling them to conduct thorough analyses of price movements over time.
{
"success": true,
"timestamp": 1781914461,
"base": "USD",
"date": "2026-06-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask endpoint is a powerful feature that provides real-time bid and ask prices for metals. This information is vital for traders looking to execute orders at the best possible prices. Depending on the subscription plan, users can access this data to make informed trading decisions.
{
"success": true,
"timestamp": 1782000861,
"base": "USD",
"date": "2026-06-21",
"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"
}
Convert Endpoint
The Convert endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782000861,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is essential for conducting in-depth analyses of price trends over specific periods, allowing traders to identify patterns and make data-driven decisions.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-14",
"end_date": "2026-06-21",
"base": "USD",
"rates": {
"2026-06-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides insights into how currencies fluctuate on a day-to-day basis. By tracking rate changes between two dates, traders can gain valuable insights into market volatility and make informed decisions based on historical data.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-14",
"end_date": "2026-06-21",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is crucial for traders who analyze price movements and trends to make informed trading decisions.
{
"success": true,
"timestamp": 1782000861,
"base": "USD",
"date": "2026-06-21",
"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"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price endpoint allows users to query the API to get the lowest and highest price for a specific date. This feature is particularly useful for traders looking to identify price extremes and make strategic trading decisions based on historical data.
{
"success": true,
"timestamp": 1782000861,
"base": "USD",
"date": "2026-06-21",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
},
"XAG": {
"lowest": 0.0381,
"highest": 0.0383
},
"XPT": {
"lowest": 0.00091,
"highest": 0.000918
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is essential for users who require comprehensive historical data for metals traded on the London Metal Exchange.
API Key and Response
Your API Key is a unique identifier that must be included in the API base URL's access_key parameter to authenticate your requests. The Metals-API delivers exchange rates relative to USD by default, ensuring that users receive consistent and reliable data.
Available Endpoints
The Metals-API comprises 14 distinct endpoints, each offering unique functionalities tailored to various trading needs. Developers can explore these endpoints to find the best solutions for their applications.
Supported Symbols Endpoint
The Supported Symbols endpoint provides a constantly updated list of all available currencies and metals. This feature is crucial for developers who need to ensure they are working with the most current data.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
Conclusion
Accessing refined gold futures (FXGL) historical prices through the Metals-API opens up a world of possibilities for traders and developers. By leveraging the API's innovative features and endpoints, users can gain valuable insights into market trends, optimize their trading strategies, and make informed decisions based on real-time and historical data.
Whether you are looking to analyze price fluctuations, convert between currencies, or track historical rates, the Metals-API provides the tools necessary to succeed in the competitive world of precious metals trading. For more information on how to implement these features, visit the Metals-API Documentation and start building your next-generation applications today.