A Stock Analysis
A股实时行情与分时量能分析
Autonomous trading for AI agents on Solana and BNB Chain. Use when: (1) executing token swaps on DEXs (Raydium, PancakeSwap), (2) checking token prices and balances, (3) monitoring liquidity pools, (4) implementing trading strategies, (5) managing portfolio positions. Supports headless execution without browser interaction.
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
SkillHub CLI
skillhub install bnbcompanions/headless-cryptoExaminez la source et la compatibilité, puis suivez les étapes d’installation.
Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.
Autonomous trading toolkit for AI agents on Solana (Raydium) and BNB Chain (PancakeSwap).
Execute swaps on decentralized exchanges without browser interaction:
Fetch real-time token prices:
Check balances and positions:
Implement automated trading strategies:
pip install solana web3 anchorpy raydium-py base58
pip install web3 pancakeswap-sdk
from scripts.raydium_swap import swap_on_raydium
# Swap 0.1 SOL for USDC
tx_hash = swap_on_raydium(
input_token="SOL",
output_token="USDC",
amount=0.1,
slippage=1.0 # 1% slippage tolerance
)
1. What chain are you trading on?
raydium_* scripts + See references/raydium.md
pancakeswap_* scripts + See references/pancakeswap.md
2. What operation do you need?
get_price.py
get_balance.py
swap.py
monitor_pool.py
3. What strategy are you implementing?
from scripts.get_price import get_to...
Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.
# Headless Trading
Autonomous trading toolkit for AI agents on Solana (Raydium) and BNB Chain (PancakeSwap).
## Core Capabilities
### 1. Token Swaps
Execute swaps on decentralized exchanges without browser interaction:
- Raydium (Solana): SOL ↔ SPL tokens
- PancakeSwap (BNB Chain): BNB ↔ BEP20 tokens
### 2. Price Monitoring
Fetch real-time token prices:
- DEX liquidity pool prices
- Multiple pair support
- Slippage calculation
### 3. Portfolio Management
Check balances and positions:
- Native token balances (SOL, BNB)
- Token holdings across wallets
- Transaction history
### 4. Strategy Execution
Implement automated trading strategies:
- Limit orders (via monitoring + execution)
- DCA (Dollar Cost Averaging)
- Stop-loss / Take-profit
- Arbitrage opportunities
## Quick Start
### Prerequisites
1. **Private key** (environment variable or secure storage)
2. **RPC endpoint** (public or private node)
3. **Python 3.8+** with dependencies
### Installation
```bash
pip install solana web3 anchorpy raydium-py base58
pip install web3 pancakeswap-sdk
```
### Basic Swap Example
```python
from scripts.raydium_swap import swap_on_raydium
# Swap 0.1 SOL for USDC
tx_hash = swap_on_raydium(
input_token="SOL",
output_token="USDC",
amount=0.1,
slippage=1.0 # 1% slippage tolerance
)
```
## Workflow Decision Tree
**1. What chain are you trading on?**
- Solana → Use `raydium_*` scripts + See [references/raydium.md](references/raydium.md)
- BNB Chain → Use `pancakeswap_*` scripts + See [references/pancakeswap.md](references/pancakeswap.md)
**2. What operation do you need?**
- Get token price → `get_price.py`
- Check wallet balance → `get_balance.py`
- Execute swap → `swap.py`
- Monitor liquidity → `monitor_pool.py`
**3. What strategy are you implementing?**
- One-time trade → Direct swap
- Automated strategy → See [references/strategies.md](references/strategies.md)
## Trading Operations
### Get Token Price
```python
from scripts.get_price import get_to...A股实时行情与分时量能分析
A股模拟交易系统 - 数据爬取、存储、策略回测、模拟交易 / A-Share Paper Trading System - Data Fetch, Storage, Backtest, Simulation
Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existing skill might save time, ClawHub search/install coul...
AI Automation Agency Blueprint