A Complete Guide to Get Zinc - LME 3-month (ZNC3M) Historical Prices using this API
A Complete Guide to Get Zinc - LME 3-month (ZNC3M) Historical Prices using this API
In the ever-evolving landscape of metal markets, the demand for accurate and real-time data has never been more critical. Zinc, represented by the symbol XZN, is a vital metal used in various industries, from construction to electronics. This guide will delve into how to access historical prices for Zinc using the Metals-API, a powerful tool that provides developers with the ability to retrieve and analyze metal prices efficiently. We will explore the API's capabilities, including its endpoints, features, and practical applications, ensuring you have a comprehensive understanding of how to leverage this resource for your projects.
About Zinc (XZN)
Zinc is a crucial metal in the global economy, primarily used for galvanizing steel to prevent corrosion. As industries increasingly adopt digital transformation, the integration of technological innovations in metal markets is becoming essential. The Metals-API offers a transformative potential for developers looking to harness real-time data analytics and insights into the Zinc market. By utilizing this API, developers can create applications that not only track current prices but also analyze historical trends, providing valuable insights into market behavior.
API Description
The Metals-API is designed to provide developers with access to real-time and historical metal prices, including Zinc. This API empowers users to build next-generation applications that can analyze market trends, perform currency conversions, and retrieve comprehensive data about various metals. With a focus on innovation and technological advancement, the Metals-API is a vital resource for anyone looking to stay ahead in the metal markets.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to access a wealth of information about Zinc and other metals. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Zinc and other metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates for Zinc dating back to 2019. By appending a specific date to your query, you can retrieve past prices, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for Zinc, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: Easily convert any amount of Zinc from one currency to another, facilitating seamless transactions and financial planning.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling detailed analysis of price movements over specified periods.
- Fluctuation Endpoint: Track how Zinc prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Lowest/Highest Price Endpoint: Retrieve the lowest and highest prices for Zinc over a specified period, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for Zinc, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols, including Zinc, dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your unique API key is required to access the Metals-API, ensuring secure and authorized usage.
- API Response: All exchange rates delivered by the Metals-API are relative to USD, with data returned in a structured JSON format for easy integration.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities to cater to various data needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available metal symbols, ensuring you have the latest information at your disposal.
- News Endpoint: Retrieve the latest news articles related to Zinc and other metals, keeping you informed about market developments.
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 understand the various metals available for querying.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, here are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1777162667,
"base": "USD",
"date": "2026-04-26",
"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"
}
The response above indicates a successful request, providing the latest exchange rates for various metals, including Zinc (XZN). Each rate is expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1777076267,
"base": "USD",
"date": "2026-04-25",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date. Developers can use this data to analyze past market trends and make informed decisions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-04-19",
"end_date": "2026-04-26",
"base": "USD",
"rates": {
"2026-04-19": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-21": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-26": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows developers to analyze price movements over a specific period, providing valuable insights into market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1777162667,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates the conversion of an amount from USD to Gold (XAU), showcasing the API's ability to facilitate currency conversions seamlessly.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-19",
"end_date": "2026-04-26",
"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 change over time, which is crucial for traders and analysts looking to understand market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1777162667,
"base": "USD",
"date": "2026-04-26",
"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 is essential for traders who rely on open, high, low, and close prices to make informed trading decisions based on market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1777162667,
"base": "USD",
"date": "2026-04-26",
"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 critical information for traders, allowing them to understand the current market conditions and make informed decisions.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers looking to access real-time and historical data for Zinc and other metals. By leveraging the various endpoints, developers can create applications that analyze market trends, perform currency conversions, and retrieve comprehensive data about metal prices. Whether you are a trader, analyst, or developer, understanding how to utilize this API effectively can provide you with a significant advantage in the metal markets.
For more information on how to implement these features, refer to the Metals-API Documentation, which provides detailed guidance on each endpoint and its capabilities. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of all available metal symbols, ensuring you have the latest information at your disposal.
As the metal markets continue to evolve, staying informed and utilizing advanced tools like the Metals-API will be essential for success. Embrace the digital transformation in metal markets and leverage the power of real-time data analytics to drive your projects forward.