Coinbase/trade — Agent Skills | officialskills.sh
Back to skills

trade

communityworkflows

Swaps and trades tokens on the Base network using the CDP Swap API.

Setup & Installation

npx skills add https://github.com/coinbase/agentic-wallet-skills --skill trade
or paste the link and ask your coding assistant to install it
https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/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

  • Swapping USDC to ETH before minting an NFT on Base
  • Selling ETH for USDC to lock in a price during volatility
  • Converting WETH back to native ETH after bridging
  • Buying a small amount of ETH to cover gas fees
  • Trading between two tokens using their contract addresses