Skip to content

docs(router): add Python and TypeScript SDK tabs to search.mdx - #2634

Open
ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2435-a76d6e7792
Open

ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2435-a76d6e7792

Conversation

@ibrhmyi

@ibrhmyi ibrhmyi commented Oct 31, 2026

Copy link
Copy Markdown

Closes #2435.

docs/router/search.mdx documented GET /v0/events and GET /v0/markets with raw curl only — every code fence on the page was http or bash, with no SDK examples, unlike the rest of docs/router/ (overview, event-matching, matching, prices), which all show paired <Tab title="Python"> / <Tab title="TypeScript"> blocks.

Change

  • Both call examples now use the standard tab pair: router.fetch_events(query="election", limit=2) / await router.fetchEvents({ query: "election", limit: 2 }), and the fetch_markets / fetchMarkets equivalents
  • Each tab keeps a # GET /v0/... comment preserving the raw request it replaces, and lists the genuinely supported extra params (offset, status: "closed"); category/exchange are not exposed by the SDK and are noted as such rather than implied
  • Prose, parameter tables, the endpoint listing, and both json response fences are untouched

Verification

  • Every identifier checked against sdks/typescript/pmxt source (RouterOptions.pmxtApiKey, EventFetchParams, MarketFilterParams, client.ts method signatures)
  • Balanced <Tabs>/<Tab> structure; exactly one python and one typescript fence per converted section; git diff --check clean

AI assistance was used for this contribution (implementation and review).

@mintlify

mintlify Bot commented Oct 31, 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 db53750.

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/search.mdx shows curl-only examples with no Python or TypeScript SDK code, unlike every other docs/router/ page

1 participant