All Tokens

Token Trading API
for AI Agents

Not just BTC and ETH. AI agents can trade any token — from blue chips to freshly launched memecoins — via Purple Flea's unified trading API covering both spot DEXes and perpetual markets across 8 chains.

Start Trading Any Token → Read the Docs
200+
Tokens Covered
Blue chips to memecoins
8
Chains Supported
Unified API across all
20%
Referral Rate
On all trading fees earned
Token Coverage

Any Token, Any Market

Four token categories, two market types (spot + perps), eight chains. One API handles it all.

🔵

Blue Chips

The most liquid, most established crypto assets. Deep order books, tight spreads, and available across both spot DEX and perpetuals with high leverage options.


BTC ETH SOL BNB AVAX DOT
🔮

DeFi Tokens

Protocol governance and revenue-sharing tokens for the largest DeFi ecosystems. Subject to on-chain activity correlation — agent strategies can exploit on-chain signals.


UNI AAVE CRV GMX COMP MKR
🌱

Layer 2 Tokens

The native tokens of leading Ethereum scaling solutions. Highly correlated with Ethereum activity but with independent tokenomics and governance. Fast-moving with high volume.


ARB OP MATIC STRK METIS BOBA
🐸

Memecoins

High-risk, high-reward community-driven tokens. Purple Flea's anti-rug screening filters out honeypots and low-liquidity traps so agents can participate in memecoin mania with reduced exposure to the worst risks.


DOGE SHIB PEPE WIF BONK FLOKI
Integration

Spot + Perps in One Client

Search tokens by name, buy via spot DEX, check for a perpetual market — all through the same Python library.

Python
import purpleflea
wallet = purpleflea.WalletClient(api_key="YOUR_KEY")
trader = purpleflea.TradingClient(api_key="YOUR_KEY")

# Search for a token by name or contract
token = wallet.search_token("PEPE", chain="ethereum")
print(f"PEPE contract: {token['contract_address']}")
print(f"PEPE price: ${token['price_usd']:.8f}")
print(f"Liquidity: ${token['liquidity_usd']:,.0f}")
print(f"Rug risk score: {token['rug_risk_score']}/10")

# Buy a memecoin via DEX (spot)
swap = wallet.swap(
    agent_id="agent_001",
    from_token="USDC",
    to_token=token["symbol"],
    amount=100,           # $100 USDC
    slippage_bps=100,     # 1% slippage for illiquid tokens
    chain="ethereum"
)
print(f"Bought: {swap['to_amount']:,.0f} PEPE @ ${swap['price_usd']:.8f}")

# Also available as perpetuals on Hyperliquid
perps = trader.search_markets("PEPE")
for p in perps:
    print(f"{p['market']}: OI=${p['open_interest_usd']:,.0f}")

# Open a leveraged long on the perp
pos = trader.open_position(
    agent_id="agent_001",
    market=perps[0]["market"],
    side="long",
    size_usdc=200,
    leverage=3
)
print(f"Position opened: {pos['position_id']}")
Chain Coverage

8 Chains, One API

Every chain uses the same API surface. Switch chains with a single parameter change. Cross-chain token searches return results from all chains simultaneously.

Ethereum
5000+ tokens, deepest DeFi liquidity
EVM
Arbitrum One
GMX, Camelot, fastest L2 swaps
L2
Base
Coinbase L2, fast-growing memecoin hub
L2
Solana
Jupiter aggregator, sub-second finality
SOL
BNB Chain
PancakeSwap, largest user base in Asia
EVM
Polygon
Low-fee swaps, strong gaming ecosystem
L2
Optimism
Velodrome DEX, public goods focus
L2
Avalanche
Trader Joe, subnet ecosystem
EVM
Cross-Chain Search
# Search across all chains
results = wallet.search_token(
    query="PEPE",
    chains="all"  # search every chain
)

for r in results:
    print(
        f"{r['chain']}: {r['symbol']}"
        f" ${r['price_usd']:.8f}"
        f" liq=${r['liquidity_usd']:,.0f}"
    )
# ethereum: PEPE $0.00001234 liq=$4,200,000
# base:     PEPE $0.00001231 liq=$890,000
# bsc:      PEPE $0.00001236 liq=$210,000
Portfolio View
# Get all token balances across chains
portfolio = wallet.get_portfolio(
    agent_id="agent_001"
)
print(f"Total: ${portfolio['total_usd']:,.2f}")

for token in portfolio["holdings"]:
    print(
        f"{token['chain']}/{token['symbol']}: "
        f"${token['value_usd']:,.2f} "
        f"({token['pnl_pct']:+.1f}%)"
    )
Safety

Anti-Rug Screening Built In

Memecoins carry real risks. Purple Flea screens every token before allowing a trade, flagging common rug pull patterns so agents avoid the worst outcomes.

Liquidity Check

Minimum $50,000 USD in liquidity required. Tokens below this threshold are flagged and blocked by default. Agents can override the threshold with a parameter flag and explicit acknowledgment.

Honeypot Detection

Simulates a buy and sell before executing the real trade. If the simulation shows the sell fails (honeypot contract), the trade is rejected and the agent receives an error with the reason code.

Concentration Check

Checks if the top 10 wallets hold more than 80% of the supply. High concentration is a strong predictor of dump risk. Agents can set their own concentration threshold per strategy.

Contract Audit Status

Returns audit status from major auditors (CertiK, Hacken, OpenZeppelin). Unaudited contracts receive a warning flag. Agents can require a minimum audit score before execution.

Mint Authority Check

For tokens on Solana, checks if the mint authority is still active (can create unlimited supply). For EVM tokens, checks for owner backdoors and emergency withdrawal functions.

Recent Large Sells

Detects if top holders have sold more than 20% of their position in the last 24 hours. Large insider sells often precede broader dumps. Includes volume spike anomaly detection.

Market Types

Spot vs Perpetual — When to Use Each

Both market types are available for 200+ tokens. The right choice depends on your agent's time horizon, risk tolerance, and capital efficiency needs.

Spot DEX
  • Own the actual tokens — no funding rate costs
  • Access to tokens only available on-chain (new launches)
  • No liquidation risk — can hold through volatility
  • Participate in airdrops, governance, staking yield
  • Lower leverage (1x only unless using lending protocol)
  • Slippage higher for illiquid tokens
  • Best for longer-term holds and new token discovery
Perpetuals (Hyperliquid)
  • Up to 50x leverage on major tokens
  • Short positions available — profit from price drops
  • Zero swap fees on CEX-equivalent products
  • No slippage on liquid perp markets
  • Funding rate costs for long holds
  • Liquidation risk at defined price levels
  • Best for short-term directional bets and hedging
Get Started

Trade Every Token, Every Market

One API key gives your agent access to 200+ tokens across 8 chains with anti-rug protection on every trade. Get started in minutes.

Get API Key — Free →