Access Gold Continuous Contract (GC00) Historical Prices through this API

Access Gold Continuous Contract (GC00) Historical Prices through this API
In the world of finance, the ability to access and analyze historical prices of precious metals like gold is crucial for traders, investors, and analysts. The Gold Continuous Contract (GC00) is a vital instrument for those looking to invest in gold, and obtaining historical price data is essential for making informed decisions. With the advent of APIs, accessing this data has become more streamlined and efficient. One such powerful tool is the Metals-API, which provides comprehensive access to historical prices and real-time data for various metals, including gold.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth and value for centuries. In recent years, the digital transformation in precious metals has revolutionized how investors and traders interact with this asset class. The integration of data analytics and market insights has enabled a deeper understanding of price movements and market trends. Technology has played a pivotal role in trading, allowing for faster execution and more informed decision-making.
Innovation in price discovery has also been significant, with digital asset solutions providing new avenues for investment. The Metals-API stands at the forefront of this transformation, offering developers the tools to build next-generation applications that leverage real-time metals data. By utilizing the Metals-API, users can access a wealth of information that empowers them to make data-driven decisions in their trading strategies.
API Description
The Metals-API is designed to provide developers with a robust platform for accessing metals data. It offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. The API's capabilities are built on a foundation of innovation and technological advancement, making it a transformative tool for anyone involved in the metals market.
With the Metals-API, developers can create applications that provide real-time insights into metal prices, track historical trends, and analyze market fluctuations. This API empowers users to harness the power of data analytics, enabling them to stay ahead in a competitive market.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide various functionalities, each designed to meet the needs of developers and traders alike. Here are some of the key features:
- 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 to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. Users can query the Metals-API for historical rates by appending a specific date to the endpoint. This functionality is crucial for analyzing past performance and making predictions about future movements.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price trends over time.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, catering to those interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest price for a specified date, which is essential for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, offering a comprehensive view of market activity.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for extensive historical analysis.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers a constantly updated endpoint returning all available currencies, ensuring users have access to the latest information.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them 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.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1747616717,
"base": "USD",
"date": "2025-05-19",
"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": 1747530317,
"base": "USD",
"date": "2025-05-18",
"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": "2025-05-12",
"end_date": "2025-05-19",
"base": "USD",
"rates": {
"2025-05-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-19": {
"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": 1747616717,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-12",
"end_date": "2025-05-19",
"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": 1747616717,
"base": "USD",
"date": "2025-05-19",
"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": 1747616717,
"base": "USD",
"date": "2025-05-19",
"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
Accessing historical prices for the Gold Continuous Contract (GC00) is essential for traders and investors looking to make informed decisions in the precious metals market. The Metals-API provides a comprehensive suite of tools that enable users to access real-time and historical data, analyze trends, and make data-driven decisions. With features like the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion tools, developers can create powerful applications that cater to the needs of the market.
By leveraging the capabilities of the Metals-API, users can gain insights into market dynamics, track fluctuations, and optimize their trading strategies. The API's extensive documentation and support for various symbols make it a valuable resource for anyone involved in the precious metals market. For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available options.