Skip to content

Trading API: v1 endpoints and single tier - #1786

Open
abdulmanan-creator wants to merge 2 commits into
mainfrom
am/trading-api-v1
Open

abdulmanan-creator wants to merge 2 commits into
mainfrom
am/trading-api-v1

Conversation

@abdulmanan-creator

Copy link
Copy Markdown
Contributor

Update the hidden Trading API documentation to one endpoint set with token market data, metadata, holder history, trending pools, batch pool lookups, and top traders. Responses use nested pool/token details, OHLCV objects, swap identifiers, and lifetime wallet PnL. Refresh the quickstart, coverage matrix, error handling, and legacy redirects.

Operations Before → after
Total 26 → 19
Duplicate tier operations 13 → 0
Token list 1 → 0
New operations 0 → 7
OHLCV and search 3 renamed; no count change

The Trading section stays hidden: true. Its notice reads “Beta: endpoints and fields may change.”

Checks on Node 22.15.0: source Redocly lint passes with the license warning; REST generation and validation pass; ESLint has 0 errors and 38 existing warnings. Navigation validation, 17 redirect targets, 25 Trading links, response/request examples, and quickstart checks pass. Full TypeScript checking has only the existing process-openapi.test.ts:507 error.

Preview: no hosted preview has been created. The local route is /docs/data/trading-api/overview.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Nov 19, 2026, 3:22 AM

@abdulmanan-creator
abdulmanan-creator marked this pull request as ready for review November 12, 2026 20:43
@abdulmanan-creator
abdulmanan-creator requested a review from a team as a code owner November 12, 2026 20:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T20:46:29.347270Z b93bb6e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b93bb6e0aa

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 50 to 53
"400":
$ref: "#/components/responses/Error400"
"401":
$ref: "#/components/responses/Error401"
"429":
$ref: "#/components/responses/Error429"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the 401 response for authenticated operations

When the path API key is missing or invalid, these operations can return 401, but this change removes that response from every endpoint and deletes the shared Error401 component. Consequently, the generated reference no longer documents an authentication failure that was previously part of the contract; add the 401 response back to all operations and define its error shape.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 71eb03b8:

  • Re-added the shared Error401 response component with description "Invalid API key.", schema ErrorResponse, and example { "error": { "code": "UNAUTHENTICATED", "message": "Invalid API key." } }.
  • Added UNAUTHENTICATED to the ErrorResponse.code enum so the example validates.
  • Referenced "401": $ref: "#/components/responses/Error401" on all 19 operations.
  • Added a 401 row to the errors table in networks-and-conventions.mdx.

pnpm run validate:rest and pnpm run validate:docs-yml both pass; pnpm run lint:prettier is clean. No other changes in this commit.

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.

3 participants