Large language models trained on general code may produce plausible but incorrect usage of theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tiagosiebler/coinbase-api/llms.txt
Use this file to discover all available pages before exploring further.
coinbase-api SDK — inventing method names, guessing parameter shapes, or mixing up API clients. The SDK ships an llms.txt file specifically designed to fix this by giving AI tools accurate, structured knowledge of every function and its parameters.
What is llms.txt?
llms.txt is a compact, AI-optimised representation of the entire SDK surface area. It is generated using Repomix and contains:
- A complete listing of all SDK functions across every client (
CBAdvancedTradeClient,CBAppClient,CBExchangeClient,CBInternationalClient,CBPrimeClient,CBCommerceClient, andWebsocketClient) - Parameter names and types for each method
- Structural context about how clients, authentication, and WebSocket keys relate to one another
- Enough surrounding code structure for an LLM to reason about patterns like error handling, subscription flow, and signing
Where to Find the File
Thellms.txt file is included in the npm package’s files field, so it is shipped with every install:
How to Use It with AI Tools
- ChatGPT / Claude
- Cursor
- GitHub Copilot
- Claude Projects
Copy the full contents of
llms.txt and paste it at the start of your conversation before asking your coding question:Why It Dramatically Improves Code Generation
Without SDK context, LLMs frequently make these mistakes when writingcoinbase-api code:
Without llms.txt | With llms.txt |
|---|---|
| Invents method names that don’t exist | Uses exact method names from the SDK |
| Guesses parameter structures | Uses the correct TypeScript parameter types |
| Confuses which client to use for which API | Correctly maps API groups to their clients |
Misses required fields like client_order_id | Includes all required fields with proper values |
| Uses incorrect WebSocket key strings | Uses valid WsKey values from WS_KEY_MAP |
The File is Always Up to Date
Becausellms.txt is included in the npm package’s files field alongside the compiled dist/ output, the version of llms.txt in your node_modules always matches the version of the SDK you have installed. Updating the package with npm update coinbase-api automatically updates the AI context file too.
The
llms.txt file is generated using Repomix and contains a compressed, structured view of the most important parts of the codebase. Binary files, test files, and auto-generated endpoint lists are excluded to keep the context window usage efficient.