Obtain GraniteShares Gold Trust (BAR) Price Fluctuations using this API

Obtain GraniteShares Gold Trust (BAR) Price Fluctuations using this API
Metals-API. This API provides a robust framework for accessing real-time and historical gold prices, enabling developers to build innovative applications that cater to the needs of traders and investors alike.
Metals-API Information
Metals-API Documentation, developers can explore various endpoints and understand how to implement them effectively.
About Gold (XAU)
API Description
Latest Rates Endpoint allows users to obtain real-time exchange rate data for gold and other metals, updated at intervals based on the subscription plan. This feature is essential for traders who require up-to-the-minute information to make timely decisions.
Historical Rates Endpoint, which provides access to historical prices dating back to 2019. This endpoint is invaluable for developers looking to analyze trends over time, allowing them to append specific dates to their queries and retrieve historical data for analysis.
Bid and Ask Endpoint is another powerful tool within the Metals-API. It enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics. This information is crucial for traders who need to make quick decisions based on current market conditions.
Convert Endpoint allows users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders who operate in multiple currencies and need to assess their positions accurately.
Time-Series Endpoint enables users to query daily historical rates between two chosen dates, facilitating in-depth analysis of price movements over specific periods. This endpoint is essential for developers looking to build applications that require historical context for price fluctuations.
Fluctuation Endpoint provides insights into how prices fluctuate on a day-to-day basis, allowing traders to track changes and adjust their strategies accordingly. The Carat Endpoint offers information about gold rates by carat, catering to jewelers and consumers interested in specific gold purity levels.
Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices within a specified timeframe. This feature is essential for traders looking to capitalize on market volatility.
Open/High/Low/Close (OHLC) Price Endpoint provides comprehensive data on the open, high, low, and close prices for a specific time period, enabling traders to assess market performance effectively.
Historical LME Endpoint offers access to historical rates dating back to 2008, providing a wealth of data for analysis.
API Key, which is passed into the API base URL's access_key parameter. This key ensures secure access to the API's features and data.
Supported Symbols Endpoint, which returns a constantly updated list of all available currencies, ensuring that developers have access to the latest information.
Gold Price India Endpoint allows users to retrieve the latest gold prices specifically for the Indian market, catering to local traders and investors.
News Endpoint enables users to retrieve the latest news articles related to various metals, keeping traders informed about market developments and trends.
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1755133394,
"base": "USD",
"date": "2025-08-14",
"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
{
"success": true,
"timestamp": 1755046994,
"base": "USD",
"date": "2025-08-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-07",
"end_date": "2025-08-14",
"base": "USD",
"rates": {
"2025-08-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1755133394,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-07",
"end_date": "2025-08-14",
"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) Price Endpoint
{
"success": true,
"timestamp": 1755133394,
"base": "USD",
"date": "2025-08-14",
"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
{
"success": true,
"timestamp": 1755133394,
"base": "USD",
"date": "2025-08-14",
"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"
}
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate specific metal data into their applications.
Conclusion
Metals-API Documentation and start building your applications today.