Skip to content

docs(router): add TypeScript tab to composing-with-venue-exchanges example - #2629

Open
ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2434-42da6eba1d
Open

ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2434-42da6eba1d

Conversation

@ibrhmyi

@ibrhmyi ibrhmyi commented Oct 28, 2026

Copy link
Copy Markdown

Closes #2434.

The "Composing with venue exchanges" section of docs/router/prices.mdx was the only section on the page without a TypeScript counterpart — every other section (compareMarketPrices, fetchRelatedMarkets, fetchMatchedMarketClusters) shows paired <Tab title="Python"> / <Tab title="TypeScript"> blocks. This wraps the existing Python example in the standard <Tabs> structure and adds the TypeScript tab: a faithful 4-step translation of the same workflow (browse matched clusters -> re-fetch the venue market -> inspect the order book -> commented createOrder).

Verification

  • Every identifier in the new snippet checked against sdks/typescript/pmxt source: new pmxt.Router({ pmxtApiKey }), new pmxt.Polymarket({ privateKey }), fetchMatchedMarketClusters({ relation, limit }), fetchMarkets({ query, limit }), fetchOrderBook(outcomeId), MarketOutcome.outcomeId, cluster sourceExchange
  • Python example content unchanged apart from tab indentation; git diff --check clean; balanced <Tabs>/<Tab> structure

The Python-only and TypeScript-only examples on the page now read identically in structure to the rest of the page.

AI assistance was used for this contribution (issue selection, the edit, and review).

@mintlify

mintlify Bot commented Oct 28, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 1ec7ddd.

Approve preview

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/router/prices.mdx's "Composing with venue exchanges" example is Python-only, unlike every other example on the page

1 participant