@cesto/sdk) is a typed TypeScript client for Cesto’s read-only API.
Use it to list and inspect baskets (products) and to look up a user’s positions by their
Solana wallet — all behind a single API key.
Products
List baskets and fetch full basket detail, optionally with backtested performance and charts.
Positions
Read a user’s open and closing positions by their external Solana wallet address.
Fully typed
Every method and response is typed. Ships ESM + CommonJS with bundled type definitions.
Resilient
Automatic retries with backoff, request timeouts, and a typed error hierarchy out of the box.
Requirements
- Node.js 18+ (uses the global
fetch). - Server-side only — the SDK uses a secret API key and refuses to run in a browser.
Install
Quickstart
You need an API key to use the SDK. See Authentication to request one.
Next steps
Authentication
Get a key and choose your environment.
Configuration
Client options, timeouts, and retries.
Products
List and fetch baskets.
Positions
Positions by wallet.