Get Accurate United States Dollar (USD) Exchange Rates in Multiple Currencies with this API
Get Accurate United States Dollar (USD) Exchange Rates in Multiple Currencies with this API
In today's global economy, having access to accurate and real-time exchange rates is crucial for businesses, developers, and financial analysts. The Metals-API provides a powerful solution for obtaining precise United States Dollar (USD) prices in various currencies, enabling users to make informed decisions based on the latest market data. With its innovative features and comprehensive endpoints, this API empowers developers to create next-generation applications that leverage real-time metals data.
About Nickel (NI)
Nickel (NI) is a key metal in various industrial applications, and its market dynamics are influenced by digital transformation and technological advancements. As the metal markets evolve, data analytics and insights play a pivotal role in understanding price movements and trends. The integration of smart technology into the metals industry allows for real-time monitoring and analysis, paving the way for future innovations.
With the Metals-API, developers can harness the power of data analytics to gain insights into nickel pricing trends, fluctuations, and historical data. This capability not only enhances decision-making but also opens up new possibilities for businesses looking to optimize their operations in the metals market.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical exchange rate data for various metals, including gold, silver, platinum, and palladium, among others. This API is designed for developers who require accurate and timely information to build applications that can analyze and visualize market trends. By offering a wide range of endpoints, the Metals-API allows users to access data in a flexible and efficient manner.
For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. It allows users to access the most current pricing information for metals.
- Historical Rates Endpoint: Users can query historical rates dating back to 2019 by appending a specific date (YYYY-MM-DD) to the API request. This feature is essential for analyzing trends over time and making informed decisions based on past performance.
- Bid And Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics. Understanding bid and ask prices is crucial for traders and investors.
- Convert Endpoint: The Metals-API includes a dedicated currency conversion endpoint, enabling users to convert any amount from one currency to another. This feature is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This endpoint is beneficial for analyzing price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, allowing users to track market volatility and make data-driven decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and gold traders. This feature allows for precise pricing based on the purity of gold.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest prices of metals over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The API includes 14 endpoints, each offering different functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Intraday Endpoint: Users can query intraday exchange rate data for a single symbol, which is particularly useful for day traders.
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 API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1788567299,
"base": "USD",
"date": "2026-09-05",
"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": 1788480899,
"base": "USD",
"date": "2026-09-04",
"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-29",
"end_date": "2026-09-05",
"base": "USD",
"rates": {
"2026-08-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-31": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-05": {
"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": 1788567299,
"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-29",
"end_date": "2026-09-05",
"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": 1788567299,
"base": "USD",
"date": "2026-09-05",
"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": 1788567299,
"base": "USD",
"date": "2026-09-05",
"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 stands out as a robust solution for obtaining accurate United States Dollar (USD) exchange rates across multiple currencies. With its diverse range of endpoints, developers can access real-time and historical data, enabling them to build applications that cater to various business needs. The API's capabilities, such as the Latest Rates, Historical Rates, and Conversion endpoints, provide essential tools for financial analysis and decision-making.
By leveraging the power of the Metals-API, businesses can enhance their operational efficiency, optimize trading strategies, and gain valuable insights into market trends. For more information on how to implement this API and explore its features, visit the Metals-API Documentation and start harnessing the potential of real-time metals data today.