Access Refined Gold Futures (FXGL) prices with this API
Access Refined Gold Futures (FXGL) Prices with This API
In the ever-evolving landscape of financial markets, the ability to access real-time data is paramount for traders and developers alike. The Metals-API offers a robust solution for accessing refined gold futures (FXGL) prices and other precious metals data. This API not only provides real-time exchange rates but also historical data, market insights, and advanced analytics capabilities. In this blog post, we will delve into the features of the Metals-API, explore its endpoints, and discuss how it can empower developers to create innovative applications in the precious metals trading space.
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 opened new avenues for data analytics and market insights. With the integration of technology in trading, the process of price discovery has become more efficient and transparent. The Metals-API plays a crucial role in this transformation by providing developers with the tools needed to access and analyze gold prices in real-time.
API Description
The Metals-API Website serves as a gateway to a wealth of information about precious metals. This API is designed to deliver real-time data, enabling developers to build next-generation applications that can leverage the power of metals data. By utilizing the Metals-API, developers can access a wide range of functionalities, including real-time exchange rates, historical data, and conversion capabilities.
The API is structured to provide comprehensive data on various metals, including gold, silver, platinum, and palladium. It supports multiple endpoints that cater to different data needs, making it a versatile tool for developers in the financial sector.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need the most current market information.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can retrieve past exchange rates, which is invaluable for trend analysis and market research.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for various metals. Understanding the spread between these prices is crucial for making informed trading decisions.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing insights into price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and traders dealing in different purities of gold.
- Lowest/Highest Price Endpoint: This endpoint allows users 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: Users can access the open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term perspective on metal prices.
- API Key: Each user is assigned a unique API key, which is required to authenticate requests and access the data.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
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 responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1784074194,
"base": "USD",
"date": "2026-07-15",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1783987794,
"base": "USD",
"date": "2026-07-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-08",
"end_date": "2026-07-15",
"base": "USD",
"rates": {
"2026-07-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1784074194,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-08",
"end_date": "2026-07-15",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1784074194,
"base": "USD",
"date": "2026-07-15",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1784074194,
"base": "USD",
"date": "2026-07-15",
"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"
}
Conclusion
The Metals-API is a powerful tool for developers looking to access refined gold futures prices and other precious metals data. With its extensive range of endpoints, real-time data capabilities, and historical insights, this API empowers users to make informed trading decisions and develop innovative applications. By leveraging the features of the Metals-API, developers can enhance their trading strategies, perform in-depth market analysis, and stay ahead in the competitive landscape of precious metals trading.
For more information on how to implement this API in your applications, refer to the Metals-API Documentation. Explore the possibilities of integrating real-time metals data into your projects and unlock the potential for advanced analytics and trading strategies.