Repository navigation
Trading API: v1 endpoints and single tier - #1786
abdulmanan-creator wants to merge 2 commits into
Conversation
🔗 Preview Mode
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| "400": | ||
| $ref: "#/components/responses/Error400" | ||
| "401": | ||
| $ref: "#/components/responses/Error401" | ||
| "429": | ||
| $ref: "#/components/responses/Error429" |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
Addressed in 71eb03b8:
- Re-added the shared
Error401response component with description"Invalid API key.", schemaErrorResponse, and example{ "error": { "code": "UNAUTHENTICATED", "message": "Invalid API key." } }. - Added
UNAUTHENTICATEDto theErrorResponse.codeenum so the example validates. - Referenced
"401": $ref: "#/components/responses/Error401"on all 19 operations. - Added a
401row to the errors table innetworks-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.
12972d5 to
1939300
Compare
2d190b6 to
71eb03b
Compare
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.
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:507error.Preview: no hosted preview has been created. The local route is
/docs/data/trading-api/overview.