packages/examples/trader/README.md
A simple trading bot interface that demonstrates the @elizaos/plugin-auto-trader capabilities.
cd typescript
bun install
bun dev
Then open http://localhost:5173 in your browser.
Set the following environment variables or configure in the UI:
SOLANA_PRIVATE_KEY=your_base58_private_key
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
BIRDEYE_API_KEY=your_birdeye_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key # Required for LLM strategy
Simulates trades without executing real transactions. Perfect for testing strategies.
Executes real trades on Solana. Use with caution and small amounts.
Uses AI to analyze trending tokens from Birdeye and make trading decisions with:
Technical analysis based strategy using:
Trades based on:
Configurable technical indicator rules:
trader/
├── typescript/
│ ├── src/
│ │ ├── main.tsx # React entry point
│ │ ├── App.tsx # Main application
│ │ ├── components/
│ │ │ ├── WalletSetup.tsx
│ │ │ ├── TradingPanel.tsx
│ │ │ ├── PositionList.tsx
│ │ │ ├── TradeHistory.tsx
│ │ │ └── StrategySelect.tsx
│ │ ├── runtime/
│ │ │ ├── index.ts # Runtime singleton
│ │ │ └── character.ts # Trader character config
│ │ └── hooks/
│ │ └── useTrading.ts # Trading state hook
MIT