Claude-skill-registry aptos-trading
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.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/aptos-trading" ~/.claude/skills/majiayu000-claude-skill-registry-aptos-trading && rm -rf "$T"
manifest:
skills/data/aptos-trading/SKILL.mdsource content
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:
- Main trading walletapt_primary
- USDC extraction walletusdc_withdrawal
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
- Fetch sequence numberget_account_info()
- Read APT from fungible asset storeget_balance()
- Sign and submit txsubmit_transaction(payload)
- Execute Liquidswap swapswap_apt_to_usdc(amount, min_out)
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
for wallet creation.
Use derive-resource-account-address
aptos init --private-key to derive addresses correctly.
Files
- Main executorscripts/alpha_executor.py
- Full system documentationreferences/system-docs.org
- Wallet config (external)/Users/alice/agent_scripts/wallets.yaml
- Live state tracker/Users/alice/agent_scripts/Holdings.md
- Execution log/Users/alice/agent_scripts/alpha.log
Scientific Skill Interleaving
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
Graph Theory
- networkx [○] via bicomodule
- Universal graph hub
Bibliography References
: 734 citations in bib.duckdbgeneral
Cat# Integration
This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC) Home: Prof Poly Op: ⊗ Kan Role: Adj Color: #26D826
GF(3) Naturality
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.