Access Digix Gold (DGX) API for Conversion Rates in JSON Format
Access Digix Gold (DGX) API for Conversion Rates in JSON Format
In the rapidly evolving landscape of digital assets, the ability to access real-time exchange rates for precious metals like Digix Gold (DGX) is crucial for developers and traders alike. The Metals-API provides a robust solution for retrieving these rates in JSON format, enabling seamless integration into applications and services. This blog post will explore the capabilities of the Metals-API, focusing on its innovative features, practical applications, and how developers can leverage this powerful tool to enhance their trading strategies.
Metals-API Information
The Metals-API is designed to facilitate access to real-time and historical data for various precious metals, including gold, silver, platinum, and palladium. By utilizing this API, developers can integrate advanced data analytics and market insights into their applications, driving digital transformation in the precious metals trading space. The API empowers users to build next-generation applications that harness the power of technology integration in trading, innovation in price discovery, and digital asset solutions.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. In recent years, the digital transformation of precious metals has opened new avenues for investors and traders. The integration of data analytics allows for deeper market insights, enabling users to make informed decisions based on real-time data. Furthermore, technology integration in trading platforms enhances the user experience, providing seamless access to vital information.
As the market for digital assets continues to grow, the demand for innovative price discovery mechanisms becomes increasingly important. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to create applications that can respond to market fluctuations and provide users with up-to-date information on gold prices and other precious metals.
API Description
The Metals-API is a powerful tool that provides developers with access to a wide range of functionalities related to precious metals. With capabilities that include real-time exchange rates, historical data, and currency conversion, this API is designed to meet the needs of modern developers. The API's innovative approach to delivering real-time metals data empowers users to build applications that can adapt to the ever-changing market landscape.
For more detailed information, developers can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities. Additionally, the Symbols List provides a comprehensive overview of all supported metal symbols, ensuring that developers have access to the data they need.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to retrieve the latest rates, historical data, and more. Hereβs a closer look at 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 applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a date (YYYY-MM-DD) to the endpoint, allowing for detailed analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time Bid and Ask prices for various metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a separate currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for traders who need to assess the value of their holdings in different 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 movements over specific periods.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and traders dealing in various purities of gold.
- Lowest/Highest Price Endpoint: Developers can query the API to get the lowest and highest price for a specified date, enabling them to assess market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data representation.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities tailored to various use cases.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest information.
List of Symbols
The API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Symbols page. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1783019297,
"base": "USD",
"date": "2026-07-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1782932897,
"base": "USD",
"date": "2026-07-01",
"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-06-25",
"end_date": "2026-07-02",
"base": "USD",
"rates": {
"2026-06-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-02": {
"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": 1783019297,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-25",
"end_date": "2026-07-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1783019297,
"base": "USD",
"date": "2026-07-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1783019297,
"base": "USD",
"date": "2026-07-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"
}
Conclusion
Accessing Digix Gold (DGX) exchange rates through the Metals-API provides developers with a powerful tool for integrating real-time data into their applications. With features such as the latest rates, historical data, and conversion capabilities, the API enables users to make informed decisions based on accurate and timely information. By leveraging the comprehensive documentation and resources available on the Metals-API Website, developers can enhance their applications and stay ahead in the competitive landscape of precious metals trading.
As the digital asset market continues to evolve, the importance of reliable data sources cannot be overstated. The Metals-API stands out as a leader in providing real-time metals data, empowering developers to create innovative solutions that meet the demands of modern traders. By understanding the capabilities of this API and how to effectively integrate it into applications, developers can unlock new opportunities for growth and success in the precious metals market.