Easily Get Salem Gold 24k (SALE-24k) Historical Prices with this API
Easily Get Salem Gold 24k (SALE-24k) Historical Prices with this API
In the ever-evolving landscape of financial technology, the demand for accurate and real-time data has never been more critical. For those interested in precious metals, particularly gold, accessing historical prices is essential for informed decision-making. The Metals-API provides a robust solution for developers looking to integrate gold price data into their applications. This blog post will explore the capabilities of the Metals-API, focusing on how to easily retrieve historical prices for Salem Gold 24k (SALE-24k) and other precious metals.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. With the integration of data analytics and market insights, traders can now make more informed decisions based on real-time data. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness the power of technology in trading.
As the market for digital assets continues to grow, the importance of innovation in price discovery becomes evident. The Metals-API not only provides historical prices but also empowers developers to build next-generation applications that can analyze trends, forecast prices, and optimize trading strategies. By leveraging the API, developers can create solutions that cater to the needs of modern investors.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. With its innovative capabilities, the API allows developers to access a wealth of information that can be used to enhance trading applications and financial analysis tools. The API is designed to be user-friendly, enabling developers to quickly integrate it into their systems.
For more detailed information, you can visit the Metals-API Website or check out the Metals-API Documentation for comprehensive guidelines on how to use the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different 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 the most current data to make informed decisions.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold and other metals, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time Bid and Ask prices, which are essential for understanding market dynamics and making trading decisions.
- Convert Endpoint: The API includes a separate currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility and making strategic decisions.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to understand the value of gold in different purities.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specific date, which is essential for traders looking to identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve the open, high, low, and close prices for a specific date, providing a detailed view of market performance.
- Historical LME Endpoint: This endpoint provides access to 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 API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API comes with 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 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": 1768522990,
"base": "USD",
"date": "2026-01-16",
"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": 1768436590,
"base": "USD",
"date": "2026-01-15",
"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-01-09",
"end_date": "2026-01-16",
"base": "USD",
"rates": {
"2026-01-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-16": {
"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": 1768522990,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-09",
"end_date": "2026-01-16",
"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": 1768522990,
"base": "USD",
"date": "2026-01-16",
"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": 1768522990,
"base": "USD",
"date": "2026-01-16",
"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
In conclusion, the Metals-API offers a comprehensive solution for developers seeking to access historical prices for Salem Gold 24k (SALE-24k) and other precious metals. With its wide array of endpoints, the API empowers users to retrieve real-time data, historical rates, and valuable market insights. By integrating the Metals-API into your applications, you can leverage the power of real-time metals data to enhance trading strategies and improve decision-making.
For further exploration of the API's capabilities, be sure to check the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data you need. The future of trading in precious metals is here, and with the right tools, you can stay ahead of the curve.