Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(warehouse-sources): add coingecko rwa tables (#119184)

Tom Owersf8e743226d86
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
index 63f1ec95455a..93ef7cc44750 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
@@ -3035,7 +3035,7 @@ Note: docs.coinapi.io is behind a Cloudflare interstitial and returns 403 to cur
## CoinGecko — gaps
-Today (17): `asset_platforms`, `coins_categories`, `coins_categories_list`, `coins_list`, `coins_market_chart`, `coins_markets`, `coins_ohlc`, `coins_tickers`, `derivatives_exchanges`, `derivatives_tickers`, `exchange_rates`, `exchanges`, `exchanges_list`, `global_market_cap_chart`, `global_market_data`, `insights`, `nfts_markets`
+Today (20): `asset_platforms`, `coins_categories`, `coins_categories_list`, `coins_list`, `coins_market_chart`, `coins_markets`, `coins_ohlc`, `coins_tickers`, `derivatives_exchanges`, `derivatives_tickers`, `exchange_rates`, `exchanges`, `exchanges_list`, `global_market_cap_chart`, `global_market_data`, `insights`, `nfts_markets`, `rwas_issuers_list`, `rwas_list`, `rwas_markets`
Diffed against: <https://docs.coingecko.com/llms.txt>
@@ -3052,6 +3052,9 @@ Diffed against: <https://docs.coingecko.com/llms.txt>
- [x] `/derivatives/exchanges and /derivatives/tickers` — derivatives venues and open interest, entirely absent from current coverage (medium)
- [x] `/nfts/markets` — NFT collections with floor price, market cap and volume - a whole product surface with no table today (medium)
- [ ] `/coins/{id}/supply_breakdown` — per-coin circulating/non-circulating supply split with non-circulating wallet detail (Pro, Analyst plan and above); fans out per coin over the configured coin list, like the chart tables (medium)
+- [x] `/rwas/markets` — tokenized real-world assets (stocks, commodities, ETFs) with aggregated onchain price, market cap and volume; all plans (medium)
+- [x] `/rwas/list` — reference list of supported RWAs with id, name, symbol and asset type (medium)
+- [x] `/rwas/issuers/list` — reference list of RWA issuers, the values /rwas/markets filters by (low)
Note: docs.coingecko.com/reference/\* pages are client-rendered and unparseable by curl, but llms.txt enumerates every reference page (Demo and Pro) with descriptions, and any single page can be fetched by appending .md. The onchain/GeckoTerminal family (networks, dexes, pools, token holders, pool trades) is a further ~35 endpoints with zero coverage; treated as a separate product rather than listed individually here.
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/canonical_descriptions.py
index e29c2e4310e3..6ef97a4f9a6c 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/canonical_descriptions.py
@@ -255,4 +255,34 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"one_day_average_sale_price_24h_percentage_change": "Percentage change in average sale price over 24 hours.",
},
},
+ "rwas_markets": {
+ "description": "Tokenized real-world assets (stocks, commodities, ETFs) with aggregated onchain market data in USD. Reflects the tokenized market, not the underlying asset's spot market.",
+ "docs_url": "https://docs.coingecko.com/reference/rwas-markets",
+ "columns": {
+ "id": "CoinGecko RWA id.",
+ "symbol": "Ticker symbol of the RWA.",
+ "name": "Display name of the RWA.",
+ "asset_type": "Asset type: stock, commodity or etf.",
+ "image": "Image URL of the token with the largest market cap for this RWA.",
+ "tokenized_market_data": "Aggregated tokenized market data in USD: current price, market cap, total volume, 24h high/low, 24h price and market cap changes, and last updated time.",
+ },
+ },
+ "rwas_list": {
+ "description": "Every tokenized real-world asset CoinGecko supports, as id/symbol/name reference rows.",
+ "docs_url": "https://docs.coingecko.com/reference/rwas-list",
+ "columns": {
+ "id": "CoinGecko RWA id (joins rwas_markets).",
+ "symbol": "Ticker symbol of the RWA.",
+ "name": "Display name of the RWA.",
+ "asset_type": "Asset type: stock, commodity or etf.",
+ },
+ },
+ "rwas_issuers_list": {
+ "description": "Reference list of the issuers behind tokenized real-world assets.",
+ "docs_url": "https://docs.coingecko.com/reference/rwas-issuers-list",
+ "columns": {
+ "id": "CoinGecko issuer id (used as the issuer filter on /rwas/markets).",
+ "name": "Display name of the issuer.",
+ },
+ },
}
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/settings.py
index 0438e843aa39..ea87e18d5fa9 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/settings.py
@@ -223,6 +223,26 @@ COINGECKO_ENDPOINTS: dict[str, CoinGeckoEndpointConfig] = {
paginated=True,
pro_only=True,
),
+ # Tokenized real-world assets (stocks, commodities, ETFs) with aggregated onchain price, market
+ # cap and volume in USD under a nested `tokenized_market_data` object. Paginated.
+ "rwas_markets": CoinGeckoEndpointConfig(
+ name="rwas_markets",
+ path="/rwas/markets",
+ paginated=True,
+ # The default market_cap_desc order shifts while a sync pages through it, which can skip or
+ # repeat rows at page boundaries. Sorting on the id keeps every page stable.
+ extra_params={"order": "id_asc"},
+ ),
+ # Reference list of RWA id/symbol/name/asset_type rows. Single response.
+ "rwas_list": CoinGeckoEndpointConfig(
+ name="rwas_list",
+ path="/rwas/list",
+ ),
+ # Reference list of RWA issuer id/name pairs. Single response.
+ "rwas_issuers_list": CoinGeckoEndpointConfig(
+ name="rwas_issuers_list",
+ path="/rwas/issuers/list",
+ ),
}
ENDPOINTS = tuple(COINGECKO_ENDPOINTS.keys())
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/tests/test_coingecko.py b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/tests/test_coingecko.py
index 55eec9564591..c86ba196d000 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/tests/test_coingecko.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/coingecko/tests/test_coingecko.py
@@ -163,6 +163,9 @@ class TestSourceResponse:
("exchanges", ["id"]),
("exchanges_list", ["id"]),
("asset_platforms", ["id"]),
+ ("rwas_markets", ["id"]),
+ ("rwas_list", ["id"]),
+ ("rwas_issuers_list", ["id"]),
]
)
def test_primary_keys_per_endpoint(self, endpoint: str, expected_keys: list[str]) -> None: