Get real-time ProShares UltraShort Gold (GLL) prices using this API

Metals-API 1 min read
Get real-time ProShares UltraShort Gold (GLL) prices using this API

Get Real-Time ProShares UltraShort Gold (GLL) Prices Using This API

Metals-API provides developers with the tools to retrieve real-time prices for precious metals, including the ProShares UltraShort Gold (GLL). This blog post will explore the capabilities of the Metals-API, focusing on how it can be utilized to access current and historical gold prices, analyze market trends, and integrate seamlessly into trading applications.

Metals-API Information

About Gold (XAU)

API Description

Metals-API Website or check out the Metals-API Documentation for detailed instructions on how to implement its features.

Key Features and Endpoints

  • Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes or every 10 minutes. For example, a typical response might look like this:
  • {
    "success": true,
    "timestamp": 1755479043,
    "base": "USD",
    "date": "2025-08-18",
    "rates": {
    "XAU": 0.000482,
    "XAG": 0.03815,
    "XPT": 0.000912,
    "XPD": 0.000744
    },
    "unit": "per troy ounce"
    }
  • Historical Rates Endpoint: Access historical exchange rates dating back to 2019. You can query the API for historical rates by appending a specific date. A sample response might look like this:
  • {
    "success": true,
    "timestamp": 1755392643,
    "base": "USD",
    "date": "2025-08-17",
    "rates": {
    "XAU": 0.000485,
    "XAG": 0.03825,
    "XPT": 0.000915
    },
    "unit": "per troy ounce"
    }
  • Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insight into market liquidity. A typical response might include:
  • {
    "success": true,
    "timestamp": 1755479043,
    "base": "USD",
    "date": "2025-08-18",
    "rates": {
    "XAU": {
    "bid": 0.000481,
    "ask": 0.000483,
    "spread": 2.0e-6
    }
    },
    "unit": "per troy ounce"
    }
  • Convert Endpoint: This endpoint allows you to convert any amount from one metal to another or to/from USD. For instance, converting 1000 USD to gold might yield:
  • {
    "success": true,
    "query": {
    "from": "USD",
    "to": "XAU",
    "amount": 1000
    },
    "info": {
    "timestamp": 1755479043,
    "rate": 0.000482
    },
    "result": 0.482,
    "unit": "troy ounces"
    }
  • Time-Series Endpoint: This endpoint allows you to query daily historical rates between two dates of your choice. A response might look like this:
  • {
    "success": true,
    "timeseries": true,
    "start_date": "2025-08-11",
    "end_date": "2025-08-18",
    "base": "USD",
    "rates": {
    "2025-08-11": {
    "XAU": 0.000485
    },
    "2025-08-18": {
    "XAU": 0.000482
    }
    },
    "unit": "per troy ounce"
    }
  • Fluctuation Endpoint: Track rate fluctuations between two dates to analyze market volatility. A sample response might include:
  • {
    "success": true,
    "fluctuation": true,
    "start_date": "2025-08-11",
    "end_date": "2025-08-18",
    "base": "USD",
    "rates": {
    "XAU": {
    "start_rate": 0.000485,
    "end_rate": 0.000482,
    "change": -3.0e-6,
    "change_pct": -0.62
    }
    },
    "unit": "per troy ounce"
    }
  • Open/High/Low/Close (OHLC) Price Endpoint: Retrieve OHLC data for a specific time period, which is crucial for technical analysis. An example response might look like this:
  • {
    "success": true,
    "timestamp": 1755479043,
    "base": "USD",
    "date": "2025-08-18",
    "rates": {
    "XAU": {
    "open": 0.000485,
    "high": 0.000487,
    "low": 0.000481,
    "close": 0.000482
    }
    },
    "unit": "per troy ounce"
    }
  • Gold Price India Endpoint: This dedicated endpoint allows you to retrieve the latest gold price in India, catering to a specific market segment.

List of Symbols

Metals-API Supported Symbols page.

Conclusion

Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.