Explore Salem Gold 22k (SALE-22k) Price History using this API
Explore Salem Gold 22k (SALE-22k) Price History using this API
In the ever-evolving landscape of precious metals trading, understanding the historical price movements of Gold (XAU) is crucial for investors and developers alike. The Metals-API offers a powerful solution for accessing real-time and historical data, enabling users to analyze trends, make informed decisions, and integrate this data into their applications seamlessly. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold and the innovative features that make this API a game-changer in the world of precious metals.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, a hedge against inflation, and a symbol of wealth. In recent years, the digital transformation in precious metals trading has opened new avenues for investors and developers. The integration of data analytics and market insights into trading strategies has become essential. With the rise of technology, the way we discover prices and trade metals has transformed dramatically.
The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to create next-generation applications that leverage real-time metals data. By utilizing the API, users can gain insights into market trends, track fluctuations, and make data-driven decisions. The API's capabilities extend beyond mere price retrieval; it empowers users to innovate in price discovery and develop digital asset solutions that cater to the evolving needs of the market.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data, including Gold, Silver, Platinum, and Palladium. With its robust infrastructure, the API allows developers to build applications that require accurate and timely data. The API's endpoints are structured to deliver a variety of functionalities, from retrieving the latest rates to accessing historical data dating back to 2019.
One of the standout features of the Metals-API is its ability to deliver real-time data updates. Depending on your subscription plan, the API can provide updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current market information, which is vital for making informed trading decisions.
For developers looking to integrate historical price data into their applications, the Metals-API offers a Historical Rates Endpoint. This endpoint allows users to query historical rates by appending a specific date to the API request, enabling them to analyze price movements over time. Additionally, the Time-Series Endpoint allows users to retrieve daily historical rates between two dates, providing a comprehensive view of price trends.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Users can access the latest prices for Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD), updated according to their subscription plan.
- Historical Rates Endpoint: Users can access historical exchange rates for any date since 2019. This is particularly useful for analyzing past market trends and making predictions based on historical data.
- 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 API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is essential for traders dealing in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements 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: Users can retrieve information about Gold rates by Carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices within a specified date range, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access the open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, allowing users to analyze long-term trends.
- API Key: Each user is assigned a unique API Key, which is required for authentication when making requests to the API.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1773274526,
"base": "USD",
"date": "2026-03-12",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response indicates a successful request, providing the latest exchange rates for various metals, including Gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1773188126,
"base": "USD",
"date": "2026-03-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing users to analyze past market conditions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-05",
"end_date": "2026-03-12",
"base": "USD",
"rates": {
"2026-03-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The Time-Series Endpoint allows users to view exchange rates over a specified period, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773274526,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates the conversion of an amount from USD to Gold (XAU), providing the user with the equivalent value in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-05",
"end_date": "2026-03-12",
"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"
}
The Fluctuation Endpoint provides insights into how prices have changed over a specified period, which is vital for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1773274526,
"base": "USD",
"date": "2026-03-12",
"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"
}
This endpoint provides critical data for traders looking to perform technical analysis by examining the open, high, low, and close prices for a specific date.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1773274526,
"base": "USD",
"date": "2026-03-12",
"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"
}
The Bid/Ask Endpoint provides essential information for traders, allowing them to understand the current market spread and make informed trading decisions.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access real-time and historical data on precious metals, particularly Gold (XAU). By leveraging the API's extensive features, users can gain insights into market trends, analyze historical price movements, and make data-driven decisions. The ability to retrieve various data points, including latest rates, historical prices, and fluctuations, empowers users to innovate in their trading strategies.
For those interested in exploring the capabilities of the Metals-API further, the Metals-API Documentation provides comprehensive guidance on how to utilize the API effectively. Additionally, the Metals-API Supported Symbols page offers a complete list of available metal symbols, ensuring users can access the data they need.
In a world where data-driven decision-making is paramount, the Metals-API stands out as a powerful tool for those looking to navigate the complexities of precious metals trading. Whether you are a seasoned trader or a developer building the next big application, the Metals-API equips you with the necessary tools to succeed in the dynamic market of precious metals.