Access Micro Gold Futures (MGC) price data through this API

Access Micro Gold Futures (MGC) Price Data Through This API
Metals-API provides a robust solution for obtaining Micro Gold Futures (MGC) price data, along with a suite of features that empower developers to create innovative applications. This blog post will delve into the intricacies of the Metals-API, its capabilities, and how it can transform the way you interact with gold and other precious metals.
Metals-API Information
About Gold (XAU)
XAU, has long been a cornerstone of financial markets. Its value is not only a reflection of economic conditions but also a safe haven during times of uncertainty. With the digital transformation sweeping across industries, the precious metals market is no exception. The integration of data analytics and technology is reshaping how traders and investors approach gold trading.
API Description
Metals-API is designed to provide developers with access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is built with innovation in mind, enabling the creation of next-generation applications that can analyze and visualize metal prices effectively. With its comprehensive documentation, developers can easily integrate the API into their systems, ensuring they have the most up-to-date information at their fingertips.
Metals-API Documentation to explore the full range of capabilities and features offered by this powerful tool.
Key Features and Endpoints
Latest Rates Endpoint
Latest Rates Endpoint provides real-time exchange rate data for metals, updated at intervals depending on your subscription plan. This endpoint is essential for traders who need to stay informed about the latest price movements. For example, a subscription may allow updates every 60 minutes or even every 10 minutes, ensuring that users have access to the most current data.
{
"success": true,
"timestamp": 1750485699,
"base": "USD",
"date": "2025-06-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Historical Rates Endpoint allows users to query rates dating back to 2019. By appending a specific date to the API call, developers can retrieve historical data that can be used for backtesting trading strategies or analyzing market behavior over time.
{
"success": true,
"timestamp": 1750399299,
"base": "USD",
"date": "2025-06-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
Bid And Ask Endpoint is a powerful feature that provides real-time bid and ask prices for metals. This information is crucial for traders looking to make informed decisions about buying or selling. Depending on the subscription plan, users can access this data to optimize their trading strategies.
{
"success": true,
"timestamp": 1750485699,
"base": "USD",
"date": "2025-06-21",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint
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 or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1750485699,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
Time-Series Endpoint allows users to query daily historical rates between two dates of their choice. This feature is invaluable for analyzing trends over specific periods and can assist traders in identifying patterns that may influence future price movements.
{
"success": true,
"timeseries": true,
"start_date": "2025-06-14",
"end_date": "2025-06-21",
"base": "USD",
"rates": {
"2025-06-14": {
"XAU": 0.000485
},
"2025-06-21": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
Fluctuation Endpoint provides insights into how metal prices fluctuate over time. By tracking rate changes between two dates, traders can better understand market volatility and make more informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-14",
"end_date": "2025-06-21",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
OHLC Price Endpoint provides essential data for traders looking to analyze price movements within a specific time frame. This endpoint returns the open, high, low, and close prices, which are critical for technical analysis and trading strategies.
{
"success": true,
"timestamp": 1750485699,
"base": "USD",
"date": "2025-06-21",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
Historical LME Endpoint allows users to access historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for those interested in the London Metal Exchange prices and trends.
List of Symbols
Metals-API Supported Symbols page.
Conclusion
Metals-API Website and explore the documentation to get started on your journey to harnessing the power of real-time metals data.