# Tokenized gold prices

How-to. Get the price of tokenized gold from PAX Gold and Tether Gold in one request, with its history.

Tokenized gold is a token issued against gold. Two of them, PAX Gold (PAXG) and Tether Gold (XAUT), trade at all hours on crypto exchanges. `/v2/rwas/gold` returns one gold price made from both tokens, so you ask once instead of pricing each token and combining them yourself.

## Get a key

[Sign up](/signup) for a free key. The Free plan has 50,000 calls a month and 100 calls a minute, needs no card, and every plan stops at its limit with no extra charge.

## Get the gold price in one call

Add `tokens=true` to list the tokens behind the price and `tokenized_market_data=true` to get the price, 24-hour range, change and volume. A field the API cannot fill, such as market cap, is `null`.

curl:

```bash
curl -s -H "Authorization: Bearer $COINPRICE_API_KEY" \
  "https://api.coinprice.dev/v2/rwas/gold?tokens=true&tokenized_market_data=true"
```

JSON, real response, 2026-11-24 07:08 UTC:

```json
{
  "asset_type": "commodity",
  "id": "gold",
  "image": null,
  "last_updated": "2026-11-24T07:08:30Z",
  "name": "Gold",
  "symbol": "xau",
  "tokenized_market_data": {
    "current_price": 3609.4154449522543,
    "high_24h": 3665.4162753327973,
    "last_updated": "2026-11-24T07:08:30Z",
    "low_24h": 3600.4006294287024,
    "market_cap": null,
    "market_cap_change_24h": null,
    "market_cap_change_percentage_24h": null,
    "price_change_24h": -0.5501721458599604,
    "price_change_percentage_14d_in_currency": null,
    "price_change_percentage_1h_in_currency": null,
    "price_change_percentage_1y_in_currency": null,
    "price_change_percentage_200d_in_currency": null,
    "price_change_percentage_24h": -0.015240370801705705,
    "price_change_percentage_24h_in_currency": -0.015240370801705705,
    "price_change_percentage_30d_in_currency": null,
    "price_change_percentage_7d_in_currency": -6.38880041807941,
    "total_volume": 91750198.61
  },
  "tokens": [
    {
      "id": "tether-gold",
      "issuer_details": {
        "id": "tether-ecosystem",
        "name": "Tether"
      },
      "name": "Tether Gold",
      "platforms": {},
      "symbol": "xaut"
    },
    {
      "id": "pax-gold",
      "issuer_details": {
        "id": "paxos-ecosystem",
        "name": "Paxos Global"
      },
      "name": "PAX Gold",
      "platforms": {},
      "symbol": "paxg"
    }
  ],
  "web_slug": "gold"
}
```

`current_price` is in US dollars and `last_updated` is the time of the newest token price.

## How the price is made

The price is the token prices averaged by each token's 24-hour volume, so the token that trades more moves the price more. An asset with one token shows that token's price. This script gets the gold price, then each token with `/v2/simple/price`, and works out the weighted price itself. It needs `requests` and the key in `COINPRICE_API_KEY`.

Python:

```python
import os
import requests

API = "https://api.coinprice.dev/v2"
HEADERS = {"Authorization": f"Bearer {os.environ['COINPRICE_API_KEY']}"}


def get(path, **params):
    response = requests.get(f"{API}{path}", headers=HEADERS, params=params, timeout=10)
    response.raise_for_status()
    return response.json()


# The gold price, made from both tokens, in one call
gold = get("/rwas/gold", tokenized_market_data="true", tokens="true")
data = gold["tokenized_market_data"]
change = data['price_change_percentage_24h']
change_text = f"{change:+.2f}%" if change is not None else "n/a"
print(f"Gold: ${data['current_price']:,.2f} ({change_text} in 24h)")
print(f"Volume in 24h: ${data['total_volume'] or 0:,.0f}")
for token in gold["tokens"]:
    print(f"  {token['symbol'].upper()}: {token['name']}, issued by {token['issuer_details']['name']}")

# Each token on its own
prices = get("/simple/price", ids="pax-gold,tether-gold", vs_currencies="usd", include_24hr_vol="true")
for coin, row in prices.items():
    print(f"{coin}: ${row['usd']:,.2f}, volume ${row['usd_24h_vol'] or 0:,.0f}")

# The asset price is the token prices weighted by volume
volume = sum(row["usd_24h_vol"] or 0 for row in prices.values())
weighted = sum(row["usd"] * (row["usd_24h_vol"] or 0) for row in prices.values()) / volume if volume else None
if weighted is not None:
    print(f"Weighted by volume: ${weighted:,.2f}")
```

Output, real run, 2026-11-24 07:08 UTC:

```text
Gold: $3,609.39 (-0.02% in 24h)
Volume in 24h: $91,750,199
  XAUT: Tether Gold, issued by Tether
  PAXG: PAX Gold, issued by Paxos Global
pax-gold: $3,609.55, volume $28,294,275
tether-gold: $3,609.31, volume $63,455,924
Weighted by volume: $3,609.39
```

The last line matches the first. The calls are a moment apart, so a few cents of difference is possible when a token trades in between.

## Get the price history

`/v2/rwas/gold/market_chart` returns `tokenized_prices` as rows of `[time in ms, price]`, oldest first. `days` is the window, and longer windows have wider steps.

Python:

```python
import os
import requests

API = "https://api.coinprice.dev/v2"
HEADERS = {"Authorization": f"Bearer {os.environ['COINPRICE_API_KEY']}"}

response = requests.get(
    f"{API}/rwas/gold/market_chart",
    headers=HEADERS,
    params={"vs_currency": "usd", "days": 7},
    timeout=10,
)
response.raise_for_status()
points = response.json()["tokenized_prices"]  # [time in ms, price]
print(f"{len(points)} points, oldest first")
print("first:", points[0])
print("last: ", points[-1])
```

Output, real run, 2026-11-24 07:08 UTC:

```text
42 points, oldest first
first: [1794902400000, 3853.028932525701]
last:  [1795492800000, 3611.521392624367]
```

## Good to know

- A token can trade a little above or below the spot price of gold. This is the price of the tokens, not the price of gold in a bullion market.
- Tokens trade at all hours, including weekends.
- To price one token alone, ask `/v2/simple/price` for `pax-gold` or `tether-gold`. Each token is also a coin with its own page.
- Market cap is not available for any token, so the API does not return one.

## Questions

**What is tokenized gold?** A token issued against gold. PAX Gold is issued by Paxos and Tether Gold by Tether, and each trades like any other coin.

**Is the tokenized gold price the same as the gold price?** No. It is the market price of the tokens, which can sit slightly above or below the spot price of gold.

**Do I need a key for /v2/rwas/gold?** Yes. Every REST route needs a key. The Free plan includes the RWA routes.
