22Demo Resource
33
44Public, no-authentication demo endpoints (``/v1/demo/*``). These power the
5- "time to first call" experience: a developer can fetch real free-tier prices
6- and the full commodity catalog without an API key.
5+ "time to first call" experience: a developer can fetch the current demo price
6+ set and catalog metadata without an API key.
77
88The demo endpoints ignore authentication entirely, so :class:`DemoResource`
99works both as an attribute of an authenticated client (``client.demo``) and
@@ -68,11 +68,11 @@ def _get(self, path: str) -> Dict[str, Any]:
6868 return data
6969
7070 def prices (self , codes : Optional [List [str ]] = None ) -> Dict [str , Any ]:
71- """Get latest demo prices for free-tier commodities .
71+ """Get the latest price records currently exposed by the demo endpoint .
7272
7373 Args:
7474 codes: Optional list of commodity codes to request. When omitted,
75- the API returns all free-tier commodities .
75+ the API returns its current demo set .
7676
7777 Returns:
7878 The ``data`` payload: ``{"prices": [...], "meta": {...}, "examples": {...}}``.
@@ -85,7 +85,7 @@ def prices(self, codes: Optional[List[str]] = None) -> Dict[str, Any]:
8585 return data
8686
8787 def commodities (self ) -> Dict [str , Any ]:
88- """Get the full demo commodity catalog grouped by category.
88+ """Get current demo commodity metadata grouped by category.
8989
9090 Returns:
9191 The ``data`` payload: ``{"commodities": {category: [...]}, "meta": {...}}``.
0 commit comments