Build on Topaz

Topaz DEX developer resources

One page for everything you need to build on Topaz DEX: the public analytics REST API with an OpenAPI 3.1 spec, protocol documentation, deployed contract addresses on BNB Chain, and the agent integration surfaces (llms.txt, agent skill, markdown content negotiation).

Analytics API

Topaz DEX public analytics API

Read-only, CORS-enabled JSON over HTTPS — no API key required. A snapshot pipeline refreshes every 15 minutes; every response reports its own freshness via meta.snapshotAt.

Every response — success or error — uses the same envelope, so one parser handles both:

bash
# Success
curl -s https://www.topazdex.com/api/stats/protocol
# → { "ok": true,  "data": { ... }, "meta": { "chainId": 56, "snapshotAt": "..." } }

# Errors are structured JSON too — never HTML
curl -s https://www.topazdex.com/api/stats/pools/not-an-address
# → { "ok": false, "error": { "code": "invalid_pool_id", "message": "..." }, "meta": { ... } }

curl -s https://www.topazdex.com/api/does-not-exist
# → 404 { "ok": false, "error": { "code": "endpoint_not_found", "hint": "...", "docs": "..." } }

Agent Surfaces

Machine-readable by default

Agents get first-class entry points: an llms.txt site index, an installable agent skill, and markdown content negotiation on every page — request any page with Accept: text/markdown and the site returns a clean markdown rendition instead of HTML.

bash
# Any page on the site, as markdown (acceptmarkdown.com convention)
curl -s -H "Accept: text/markdown" https://www.topazdex.com/docs/overview

Shortcuts

Predictable URLs

The common guesses resolve. Each of these redirects to its canonical location:

ShortcutResolves to
/api-docs/api/stats/docs
/openapi.json/api/stats/openapi.json
/docs/api/docs/developers/data-api