Retrieve Samoan Tala (WST) prices with this API
Retrieve Samoan Tala (WST) Prices with this API
In today's rapidly evolving digital landscape, the ability to access real-time financial data is crucial for developers and businesses alike. One such valuable resource is the Metals-API, which provides comprehensive access to metal prices, including the Samoan Tala (WST). This blog post will delve into the features of the Metals-API, focusing on its capabilities, endpoints, and how it can empower developers to create innovative applications that leverage real-time metals data.
Metals-API Information
About Molybdenum (MO)
Molybdenum, represented by the symbol MO, is a critical metal in various industrial applications, particularly in steel production and manufacturing. As industries undergo digital transformation, the integration of technological innovations and advancements in data analytics has become essential. The Metals-API stands at the forefront of this transformation, offering developers a powerful tool to access real-time data and insights into metal markets.
With the rise of smart technology integration, the Metals-API enables businesses to harness the power of data analytics, providing insights that can drive decision-making processes. The future of metal markets is increasingly reliant on such technologies, and the Metals-API is poised to play a significant role in shaping these trends.
API Description
The Metals-API is a robust platform designed to provide developers with real-time access to metal prices and currency conversion functionalities. This API empowers developers to build next-generation applications that require accurate and timely data. With its user-friendly interface and comprehensive documentation, the Metals-API simplifies the process of integrating metal price data into applications.
For more detailed information, you can visit the Metals-API Documentation, which provides extensive guidance on how to utilize the API effectively. Additionally, the Metals-API Supported Symbols page offers a complete list of all available metal symbols, ensuring you have the necessary information to make informed decisions.
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. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides 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. By appending a date in the format YYYY-MM-DD, developers can query the Metals-API for historical rates, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices, providing insights into market dynamics and helping users make informed trading decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert any amount from one currency to another. This feature is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for comprehensive 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: Retrieve information about gold rates by carat, which is essential for jewelers and those in the precious metals market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to get the open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is essential for accessing the API and must be included in the API base URL's access_key parameter.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data representation.
- Available Endpoints: The Metals-API comes with 14 endpoints, each providing different functionalities tailored to various user needs.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Here are some examples of the API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1773274388,
"base": "USD",
"date": "2026-03-12",
"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 the success of the API call and provides the latest rates for various metals, including Gold (XAU), Silver (XAG), and Platinum (XPT).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1773187988,
"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 developers to analyze past market performance.
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 for a detailed analysis of price movements over a specified period, which is essential for traders and analysts.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773274388,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how to convert a specified amount from one currency to another, providing the result 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"
}
This endpoint provides insights into how metal prices fluctuate over time, which is crucial for understanding market trends.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1773274388,
"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"
}
The OHLC endpoint is particularly useful for traders who rely on these metrics for making informed trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1773274388,
"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"
}
This response provides current bid and ask prices, which are essential for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is a powerful tool for developers looking to integrate real-time metal price data into their applications. With its extensive range of endpoints and capabilities, the API empowers users to access vital information that can drive decision-making processes in various industries. By leveraging the features of the Metals-API, developers can create innovative applications that meet the demands of today's fast-paced market.
For further exploration, visit the Metals-API Website to discover more about its offerings and how it can enhance your projects. The comprehensive Metals-API Documentation provides detailed guidance on implementation, while the Symbols List ensures you have access to all necessary metal symbols.
As the digital landscape continues to evolve, the importance of real-time data access cannot be overstated. The Metals-API is at the forefront of this transformation, providing developers with the tools they need to succeed in the competitive world of metal markets.