skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

trade

Swap onchain assets on Base or Polygon via CDP Swap.

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/coinbase/agentic-wallet-skills/blob/main/skills/agentic-wallet/references/trade.md --skill trade

Overview

What This Skill Does

Swaps assets using the CDP Swap CLI commands on Base or Polygon, including slippage and gas configurations.

Application

When to use this Skill

Documentation

Show Skills.md file

Trading Tokens

Use the npx awal@2.10.0 trade command to swap tokens on Base or Polygon via the CDP Swap API. You must be authenticated to trade.

If the wallet is not authenticated, see references/auth.md.

Command Syntax

npx awal@2.10.0 trade <amount> <from> <to> [options]

The command is also available as npx awal@2.10.0 swap (alias).

Arguments

Argument Description
amount Amount to swap (see Amount Formats below)
from Source token: alias (usdc, eth, pol) or contract address (0x...)
to Destination token: alias (usdc, eth, pol) or contract address (0x...)

Amount Formats

The amount can be specified in multiple formats:

Lines 1 - 25 of 109

Recommendations

Explore other random skills

All skillsMy patterns