Back to skills

trade

workflows

Swaps and trades tokens on the Base network using the CDP Swap API. Supports USDC, ETH, WETH, and arbitrary token contracts with flexible amount formats including dollar notation and atomic units. Let

Setup & Installation

npx skills add https://github.com/coinbase/trade --skill trade
or paste the link and ask your coding assistant to install it
https://github.com/coinbase/trade
View on GitHub

What This Skill Does

Swaps and trades tokens on the Base network using the CDP Swap API. Supports USDC, ETH, WETH, and arbitrary token contracts with flexible amount formats including dollar notation and atomic units. Lets you execute token swaps directly from the terminal without switching to a browser-based DEX or connecting a wallet extension.

When to use it

  • Working with trade functionality
  • Implementing trade features
  • Debugging trade related issues