How to document your API calls for Graphite Europe (EU
How to Document Your API Calls for Graphite Europe (EU)
In today's rapidly evolving digital landscape, the importance of precise and comprehensive API documentation cannot be overstated. This is particularly true for the Metals-API, which provides developers with real-time data on various metals, including Tellurium (TE). As we delve into the intricacies of this API, we will explore its capabilities, the markets it serves, and how it can transform the way developers interact with metal data.
Metals-API Information
About Tellurium (TE)
Tellurium is a fascinating metal that plays a crucial role in various technological advancements. As industries move towards digital transformation, the demand for accurate and timely data on metals like Tellurium is increasing. The Metals-API serves as a bridge between developers and the data they need, enabling them to create innovative applications that leverage real-time insights.
In the context of metal markets, Tellurium is often associated with advancements in data analytics and smart technology integration. As we look towards the future, the potential for Tellurium and other metals to drive technological innovation is immense. With the right data at their fingertips, developers can harness the power of analytics to predict market trends, optimize supply chains, and enhance product offerings.
API Description
The Metals-API is a powerful tool that empowers developers to access real-time metals data, enabling the creation of next-generation applications. This API provides a wealth of information, including the latest rates, historical data, and conversion capabilities, all designed to support the needs of developers in the metal markets.
For more detailed information about the API, you can visit the Metals-API Documentation. This resource offers comprehensive guidance on how to effectively utilize the API's features.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to the needs of developers:
- 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 essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Developers can query the API for historical rates by appending a specific date, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices, which are crucial for trading applications and market analysis tools.
- Convert Endpoint: The API includes a currency conversion endpoint that allows users to convert any amount from one currency to another, facilitating seamless transactions across different metal markets.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, providing valuable insights into price movements over time.
- Fluctuation Endpoint: This endpoint allows users to retrieve information about how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and traders in the gold market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, enabling developers to analyze price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis in trading.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market research and analysis.
- API Key: Your unique API key is essential for accessing the API's features, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API comes with 14 different endpoints, each providing unique functionalities to cater to various developer needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest market data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping developers informed about market trends and developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for developers. Below are examples of responses from various endpoints, illustrating the structure and data provided by the Metals-API.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1771546098,
"base": "USD",
"date": "2026-02-20",
"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 a successful request, providing the latest exchange rates for various metals relative to USD. Each rate is expressed in terms of troy ounces, a standard measurement in the metals market.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1771459698,
"base": "USD",
"date": "2026-02-19",
"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. Developers can utilize this data for trend analysis and market forecasting.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-13",
"end_date": "2026-02-20",
"base": "USD",
"rates": {
"2026-02-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides a snapshot of rates over a specified period, allowing developers to analyze fluctuations and trends in metal prices.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1771546098,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to gold (XAU), showcasing the API's ability to facilitate transactions across different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-13",
"end_date": "2026-02-20",
"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 metal prices have changed over a specified period, which is essential for traders and analysts.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1771546098,
"base": "USD",
"date": "2026-02-20",
"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 particularly useful for traders who rely on open, high, low, and close prices for their technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1771546098,
"base": "USD",
"date": "2026-02-20",
"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 pricing information for traders, allowing them to make informed decisions based on current market conditions.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers working with metal data, particularly in the context of Tellurium and other metals. By leveraging the API's extensive features, developers can create innovative applications that drive digital transformation in the metal markets. The comprehensive documentation available at the Metals-API Documentation ensures that developers have the tools they need to effectively utilize the API.
As the demand for real-time data continues to grow, the Metals-API stands out as a powerful solution for accessing critical market information. By understanding the capabilities of this API and how to implement its features, developers can unlock new possibilities in the world of metals trading and analysis. For further exploration, visit the Metals-API Website and check the Metals-API Supported Symbols for a comprehensive list of available metals.