Get Special Drawing Rights (XDR) prices using this API
Get Special Drawing Rights (XDR) Prices Using This API
In the rapidly evolving landscape of global finance, the need for accurate and real-time data has never been more critical. Special Drawing Rights (XDR) are an international reserve asset created by the International Monetary Fund (IMF) to supplement its member countries' official reserves. As the demand for precise XDR pricing increases, developers and financial analysts are turning to innovative solutions like the Metals-API. This API offers a comprehensive suite of features that empower users to access real-time and historical data on various metals, including XDR, enabling informed decision-making in the metal markets.
About Special Drawing Rights (XDR)
Special Drawing Rights (XDR) represent a basket of currencies, including the US dollar, euro, Chinese yuan, Japanese yen, and British pound. The value of XDR fluctuates based on the exchange rates of these currencies, making it essential for financial institutions and businesses engaged in international trade to monitor its price closely. The integration of digital transformation in metal markets has led to technological innovations that enhance data analytics and insights, allowing for smarter technology integration and paving the way for future trends in financial data management.
As the financial landscape continues to evolve, the role of APIs in providing real-time data becomes increasingly significant. The Metals-API stands out as a powerful tool that facilitates access to vital information about metals and their respective prices, including XDR. By leveraging this API, developers can create next-generation applications that harness the power of real-time metals data, enabling businesses to make data-driven decisions.
API Description
The Metals-API is designed to provide developers with a robust platform for accessing real-time and historical metals data. With its innovative capabilities, the API empowers users to build applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API's architecture is built on modern technological advancements, ensuring that users receive accurate and timely data.
For more information on how to utilize the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on the various endpoints and features available.
Key Features and Endpoints
The Metals-API offers a wide range of endpoints that cater to different data needs. 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 crucial for traders who need to stay updated on the latest market movements.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Users can query the Metals-API for historical rates by appending a specific date (YYYY-MM-DD) to the endpoint, allowing for in-depth analysis of past market trends.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for businesses engaged in international transactions.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, facilitating comprehensive trend analysis over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping users understand market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to get the open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for traders focused on industrial metals.
- API Key: The unique API key is required for authentication and is passed into the API base URL's access_key parameter.
- 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 comprises 14 endpoints, each providing distinct functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest market data.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, which is essential for high-frequency trading strategies.
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": 1787184680,
"base": "USD",
"date": "2026-08-20",
"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": 1787098280,
"base": "USD",
"date": "2026-08-19",
"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-08-13",
"end_date": "2026-08-20",
"base": "USD",
"rates": {
"2026-08-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-20": {
"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": 1787184680,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-13",
"end_date": "2026-08-20",
"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": 1787184680,
"base": "USD",
"date": "2026-08-20",
"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": 1787184680,
"base": "USD",
"date": "2026-08-20",
"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 an invaluable resource for developers and financial analysts seeking to access real-time and historical data on metals, including Special Drawing Rights (XDR). By leveraging the API's extensive features, such as the latest rates, historical rates, and conversion capabilities, users can gain insights into market trends and make informed decisions. The integration of advanced technology and data analytics into the financial sector is transforming how businesses operate, and the Metals-API is at the forefront of this revolution.
For further exploration of the API's capabilities, developers are encouraged to visit the Metals-API Documentation and familiarize themselves with the various endpoints and features available. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available metal symbols, ensuring users have access to the latest market data.
As the financial landscape continues to evolve, staying informed and utilizing innovative tools like the Metals-API will be essential for success in the competitive world of metal markets.