aptos-trading
Aptos Trading Executor
Automated APT trading on Aptos mainnet with price-triggered strategies.
Overview
- Purpose: Automated profit-taking and dip-buying (vulture) strategies
- Network: Aptos Mainnet via REST API
- DEX: Liquidswap for APT ↔ USDC swaps
Quick Start
# Run the executor (requires confirmation)
python ~/.agents/skills/aptos-trading/scripts/alpha_executor.py
Configuration
Wallet configuration in /Users/alice/agent_scripts/wallets.yaml:
apt_primary- Main trading walletusdc_withdrawal- USDC extraction wallet
Strategy Parameters
Profit Triggers (Bull Levels)
| Level | Price | Action |
|---|---|---|
| B1 | $1.60 | Log only (adjust to take 20%) |
| B2 | $1.80 | Swap 30% to USDC |
| B3 | $2.00 | Swap 50% to USDC |
| MOON | $2.50 | Swap 75% to USDC |
Dip Buying (Vulture Levels)
| Price | Amount |
|---|---|
| $1.40 | 15 APT |
| $1.30 | 15 APT |
| $1.20 | 15 APT |
Architecture
AptosClient Class
get_account_info()- Fetch sequence numberget_balance()- Read APT from fungible asset storesubmit_transaction(payload)- Sign and submit txswap_apt_to_usdc(amount, min_out)- Execute Liquidswap swap
Price Feeds
- CoinGecko API (primary)
- Binance API (fallback)
- Default $1.50 (emergency)
Security Notes
⚠️ CRITICAL: Private keys are in wallets.yaml - NEVER commit this file
⚠️ All transactions are signed locally and submitted to mainnet
⚠️ Script requires typing "EXECUTE" to confirm live trading
Wallet Validation (MANDATORY)
Before funding ANY wallet, run:
just aptos-validate-all
NEVER use derive-resource-account-address for wallet creation.
Use aptos init --private-key to derive addresses correctly.
Files
scripts/alpha_executor.py- Main executorreferences/system-docs.org- Full system documentation/Users/alice/agent_scripts/wallets.yaml- Wallet config (external)/Users/alice/agent_scripts/Holdings.md- Live state tracker/Users/alice/agent_scripts/alpha.log- Execution log
More from plurigrid/asi
academic-research
Search academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research.
49wev-tesseract
WEV Tesseract Skill
33tree-sitter
AST-based code analysis using tree-sitter. Use for parsing code structure, extracting symbols, finding patterns with tree-sitter queries, analyzing complexity, and understanding code architecture. Supports Python, JavaScript, TypeScript, Go, Rust, C, C++, Swift, Java, Kotlin, Julia, and more.
21alife
Comprehensive Artificial Life skill combining ALIFE2025 proceedings, classic texts (Axelrod, Epstein-Axtell), ALIEN simulation, Lenia, NCA, swarm intelligence, and evolutionary computation. 337 pages extracted, 80+ papers, 153 figures.
16reverse-engineering
Reverse Engineering Skill
16bdd-mathematical-verification
BDD-Driven Mathematical Content Verification Skill
16