Investigate Salem Gold 18k (SALE-18k) Historical Prices using this API
Investigate Salem Gold 18k (SALE-18k) Historical Prices using this API
Gold (XAU) has long been a symbol of wealth and stability, making it a focal point for investors and traders alike. With the rise of digital transformation in precious metals trading, understanding historical prices has become more accessible than ever. The Metals-API provides a powerful tool for developers looking to integrate real-time and historical gold price data into their applications. This blog post will explore how to effectively utilize the Metals-API to investigate historical prices of Salem Gold 18k (SALE-18k) and delve into the innovative features that this API offers.
About Gold (XAU)
Gold is not just a commodity; it is a digital asset that has undergone significant transformations in the way it is traded and analyzed. The integration of technology in trading has led to enhanced data analytics and market insights, allowing traders to make informed decisions based on real-time data. The Metals-API stands at the forefront of this digital transformation, providing developers with the tools necessary to access and analyze gold prices efficiently.
With the growing interest in digital asset solutions, understanding the historical prices of gold becomes crucial. The Metals-API allows users to access historical rates dating back to 2019, enabling a comprehensive analysis of price trends over time. This capability is essential for traders looking to identify patterns and make predictions based on past performance.
API Description
The Metals-API is a robust JSON API that provides real-time and historical data for various metals, including gold (XAU). It empowers developers to build next-generation applications that can leverage real-time metals data for trading, investment analysis, and market research. The API's capabilities include accessing the latest rates, historical prices, and even bid and ask prices, making it a versatile tool for any developer in the financial sector.
For detailed information on how to get started, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on using the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to retrieve data in multiple formats. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals. Depending on the subscription plan, the API can return updates every 60 minutes or even every 10 minutes, ensuring that users have access to the most current data available.
- Historical Rates Endpoint: Users can query historical rates for gold dating back to 2019. By appending a specific date to the API request, developers can access past prices, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for gold, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion feature that enables users to convert amounts from one metal to another or to/from USD, facilitating easier trading and investment decisions.
- Time-Series Endpoint: This endpoint allows developers to query daily historical rates between two dates of their choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how gold prices fluctuate on a day-to-day basis, providing insights into market volatility and price stability.
- Carat Endpoint: This unique feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Developers can query the API to find the lowest and highest prices for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed price data, including the open, high, low, and close prices for gold, which is essential for technical analysis.
- Historical LME Endpoint: For those interested in LME symbols, this endpoint provides historical rates dating back to 2008, allowing for extensive market research.
- API Key: Each user is provided with a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency and ease of understanding for developers.
- Available Endpoints: The Metals-API includes 14 endpoints, each designed to provide specific functionalities, making it a comprehensive tool for developers.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring that developers 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.
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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following request:
{
"success": true,
"timestamp": 1787875954,
"base": "USD",
"date": "2026-08-28",
"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"
}
This response indicates that the current price of gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the market at that moment.
Historical Rates Endpoint
Accessing historical exchange rates for any date since 1999 can be done with a simple query:
{
"success": true,
"timestamp": 1787789554,
"base": "USD",
"date": "2026-08-27",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of gold on a specific date, allowing developers to analyze trends over time.
Time-series Endpoint
To get exchange rates for a specific time period, you can use the time-series endpoint:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-21",
"end_date": "2026-08-28",
"base": "USD",
"rates": {
"2026-08-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a series of historical rates for gold over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
The convert endpoint allows users to convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1787875954,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of gold, providing essential information for traders looking to make conversions.
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the fluctuation endpoint:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-21",
"end_date": "2026-08-28",
"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"
}
This response provides insights into how gold prices have changed over a specific period, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
To get OHLC data for a specific time period, you can use the following request:
{
"success": true,
"timestamp": 1787875954,
"base": "USD",
"date": "2026-08-28",
"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 response provides a comprehensive view of the price action for gold, including the opening, high, low, and closing prices, which are essential for technical analysis.
Bid/Ask Endpoint
To get current bid and ask prices for metals, you can use the bid/ask endpoint:
{
"success": true,
"timestamp": 1787875954,
"base": "USD",
"date": "2026-08-28",
"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"
}
This response provides the current bid and ask prices for gold, which are crucial for traders looking to enter or exit positions in the market.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers looking to access and analyze historical prices of gold (XAU) and other metals. By leveraging the various endpoints, developers can create applications that provide real-time data, historical insights, and advanced analytics capabilities. The ability to track fluctuations, convert currencies, and access detailed price data empowers traders and investors to make informed decisions in a rapidly changing market.
For further exploration of the API's capabilities, developers are encouraged to visit the Metals-API Documentation and familiarize themselves with the extensive features available. Understanding the Metals-API Supported Symbols will also enhance the integration process, ensuring that all relevant data can be accessed seamlessly.
As the landscape of precious metals trading continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be essential for success in this dynamic field.