Execute trades on Aptos mainnet with price-triggered profit-taking and dip-buying strategies. Includes wallet management, transaction signing, and DEX swaps via Liquidswap. Use when automating APT trading, checking balances, or executing swaps.
/plugin marketplace add plurigrid/asi/plugin install asi-skills@asi-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/system-docs.orgscripts/alpha_executor.pyAutomated APT trading on Aptos mainnet with price-triggered strategies.
# Run the executor (requires confirmation)
python ~/.agents/skills/aptos-trading/scripts/alpha_executor.py
Wallet configuration in /Users/alice/agent_scripts/wallets.yaml:
apt_primary - Main trading walletusdc_withdrawal - USDC extraction wallet| 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 |
| Price | Amount |
|---|---|
| $1.40 | 15 APT |
| $1.30 | 15 APT |
| $1.20 | 15 APT |
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⚠️ 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
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.
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