sapphire-aster
Aster DEX trading bot — Solana perpetuals, CEX-style API, Shield HFT strategy
소스 정보
- 저장소
- arigatoexpress/Sapphire
- 최근 소스 활동
- 2026년 7월 25일 20:22
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
파일 탐색기
10 개 파일SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- sapphire-aster
- description
- Aster DEX trading bot — Solana perpetuals, CEX-style API, Shield HFT strategy
- type
- service
- runtime
- python
- deploy_target
- rari2
- dependencies
- ["sapphire-core"]
- entry_point
- src/main.py
- test_command
- pytest tests/
# services/aster
Trading bot for Aster DEX (`https://fapi.asterdex.com`). CEX-style Solana perpetuals exchange with 231 symbols and full order type support.
## Aster DEX Facts
- API: `https://fapi.asterdex.com` (verified working)
- 231 trading pairs available
- Order types: LIMIT, MARKET, STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET
- Does NOT support hidden/iceberg orders via API (UI-only)
## Shield Strategy
High-frequency strategy with sub-100ms stop-loss placement:
```
sl_distance = base_volatility / √leverage
```
Dynamic leverage per asset:
- BTC: 20x base, 125x max
- ETH: 15x base, 100x max
- Altcoins: 10x base, 75x max
## Credentials
- `ASTER_API_KEY`, `ASTER_API_SECRET`, `ASTER_PASSPHRASE` — via Secret Manager
- `ASTER_BASE_URL` — defaults to `https://fapi.asterdex.com`
## Dependency Issue
`asterpy` conflicts with newer aiohttp. This service uses a standalone venv:
```bash
cd services/aster
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
```
## Deploy to rari2
```bash
rsync -av services/aster/ rari@100.x.x.y:/home/rari/Sapphire/services/bot-aster/
ssh rari@100.x.x.y "cd ~/Sapphire/services/bot-aster && source .venv/bin/activate && pip install -r requirements.txt"
```
GitHub에서 보기