Skip to content

docs(api-reference): add fetchTrades reference page - #2633

Open
ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2433-22091a35e3
Open

ibrhmyi wants to merge 1 commit into
pmxt-dev:mainfrom
ibrhmyi:contributor/issue-2433-22091a35e3

Conversation

@ibrhmyi

@ibrhmyi ibrhmyi commented Oct 31, 2026

Copy link
Copy Markdown

Closes #2433.

fetchTrades/fetch_trades is a real, implemented, both-SDK method listed as a parity method in MIGRATE_FROM_DOMEAPI.md, but docs/api-reference/ had no page for it — the only one of the quick-reference table's 8 methods missing one. (The nav already carried a dangling raw route entry for it in docs.json, which this also resolves.)

Change

  • New docs/api-reference/fetch-trades.mdx following the fetch-order-book / fetch-ohlcv conventions: recent-history and historical-range use cases with Python/JavaScript/curl CodeGroups, a Parameters table (outcomeId, start/end, Python-only since, limit capped at 1000), a Response table from the Trade model, and notes on the deprecated resolution param, the 1000-limit validation, and the Polymarket API-key requirement
  • docs/docs.json: the placeholder route string is replaced with the page reference in the same nav slot

Verification

  • Route and params verified from core/src/server/openapi.yaml, method-verbs.json, BaseExchange.ts:1151, and both SDK clients (file:line list in the PR history)
  • Response fields verified against the Trade interface in core/src/types.ts
  • docs.json re-parses as valid JSON; fences/CodeGroups balanced; 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 86d8db4.

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/api-reference/ has no dedicated page for fetchTrades/fetch_trades despite being claimed as a supported, parity method

1 participant