Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ language, description, and tags to help you find what you need quickly.
| [typescript/bnbchain-mcp](./typescript/bnbchain-mcp) | TypeScript | AI-powered blockchain assistant using Claude | AI, BSC, MCP |
| [typescript/eliza-chatbot](./typescript/eliza-chatbot) | TypeScript | A chatbot example using Eliza plugin-bnb | AI, BSC, opBNB |
| [typescript/ai-trading-assistant](./typescript/ai-trading-assistant) | Typescript | AI-powered trading assistant for BNB Chain ecosystem with real USDT→BNB swaps via PancakeSwap, technical analysis, and natural language interface | BNBChain, trading, analysis, PancakeSwap, AI, MCP |
| [python/defi-yield-optimizer](./python/defi-yield-optimizer) | Python | | |
More examples are coming soonβ€”stay tuned for updates!

## How to Add a New Example
Expand Down
24 changes: 24 additions & 0 deletions python/defi-yield-optimizer/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# DeFi Yield Optimizer Configuration

# Data fetcher mode: mock or api
# - mock: Uses deterministic mock data (no API calls, default)
# - api: Fetches real data from DeFi protocols (requires API keys)
FETCHER_MODE=mock

# API Keys (only needed if using api mode)
# BSC RPC endpoint for Web3 connection
BSC_RPC_URL=https://bsc-dataseed.binance.org/

# Optional: DeFi protocol API keys
PANCAKESWAP_API_KEY=your_pancakeswap_api_key_here
AAVE_API_KEY=your_aave_api_key_here

# Optimization settings
DEFAULT_INVESTMENT_AMOUNT=10000
DEFAULT_RISK_LEVEL=medium
MAX_PROTOCOLS=5
MIN_APY_THRESHOLD=5.0

# Output settings
OUTPUT_DIR=outputs
SHOW_DETAILED_REPORT=true
54 changes: 54 additions & 0 deletions python/defi-yield-optimizer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
.venv/
ENV/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual environments
.env
.venv
env/
venv/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# Testing
.pytest_cache/
.coverage
htmlcov/
*.cover

# Output files
outputs/*.json
outputs/*.txt
!outputs/example_*.json
!outputs/example_*.txt

# OS
.DS_Store
Thumbs.db
Loading