Browse by type

Coverage of the
@cowprotocol/sdk-tradingpackage. See the Package Structure section for links to each package's README, which shows its own coverage.
| Statements | Branches | Functions | Lines |
|---|---|---|---|
Check @cowprotocol/cow-sdk to learn how to trade on the CoW Protocol (get quote, verify amounts, sign and send order)
CoW Swap is currently available on the following chains:
This is a TypeScript monorepo containing the complete CoW Protocol SDK ecosystem. The repository is organized into multiple packages that provide different levels of abstraction and functionality for interacting with CoW Protocol.
The project uses modern tooling for efficient development and publishing:
@cowprotocol/cow-sdk - Complete package that re-exports all other packages for easy consumption@cowprotocol/sdk-trading - High-level trading SDK with built-in quote fetching, order signing, and posting@cowprotocol/sdk-order-book - Order book API client for retrieving orders, trades, and posting orders@cowprotocol/sdk-order-signing - Cryptographic utilities for signing orders and cancellations@cowprotocol/sdk-bridging - Cross-chain token transfers and bridging functionality@cowprotocol/sdk-composable - Programmatic orders (TWAP, conditional orders, etc.)@cowprotocol/sdk-cow-shed - Account abstraction with smart contract capabilities@cowprotocol/sdk-viem-adapter - Viem blockchain library adapter@cowprotocol/sdk-ethers-v6-adapter - Ethers.js v6 adapter@cowprotocol/sdk-ethers-v5-adapter - Ethers.js v5 adapter@cowprotocol/sdk-app-data - AppData schema definitions and metadata handling@cowprotocol/sdk-config - Configuration constants and chain settings@cowprotocol/sdk-common - Common utilities, types, and shared functionality@cowprotocol/sdk-contracts-ts - TypeScript contract bindings and ABI definitions@cowprotocol/sdk-subgraph - GraphQL client for CoW Protocol subgraph data@cowprotocol/sdk-weiroll - Weiroll integration utilities@cow-sdk/typescript-config - Shared TypeScript configuration# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Run tests with coverage and update README coverage badges
pnpm coverage:badges
# Run linting
pnpm lint
# Format code
pnpm format
# Type checking
pnpm typecheck
# Clean build artifacts
pnpm clean
We welcome contributions to the CoW Protocol SDK! Here's how to get started:
bash
git clone https://github.com/YOUR_USERNAME/cow-sdk.git
cd cow-sdk$ claude mcp add cow-sdk \
-- python -m otcore.mcp_server <graph>