smithery.ai

polyflup-ops

Operational commands, environment configuration, and deployment for PolyFlup.

First seen Apr 14, 2026

Installation

$ npx skills add https://smithery.ai

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,198 B
  • docs SUMMARY.md 97 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Commands & Operations

Python Backend

uv run polyflup.py      # Run bot
uv run check_db.py      # Check database
uv run migrate_db.py    # Run migrations
uv pip install -r requirements.txt

Svelte UI

cd ui && npm install
npm run dev             # Dev mode
npm run build           # Build
npm start               # Start production

Docker

docker compose up -d --build
docker logs -f polyflup-bot
docker compose down

Environment Variables

  • PROXY_PK: Private key (Required, starts with 0x)
  • BET_PERCENT: Position size (default 5.0)
  • MIN_EDGE: Min confidence (default 0.565)
  • ENABLESTOPLOSS, ENABLETAKEPROFIT, ENABLE_REVERSAL: YES/NO
  • MARKETS: Comma-separated symbols (e.g., BTC,ETH)

Debugging

Log Files

  • Master Log: logs/trades_2025.log - All trading activity and monitoring
  • Window Logs: logs/windowYYYY-MM-DDHH-mm.log - Specific 15-minute window history
  • Error Log: logs/errors.log - Dedicated error stack traces and exceptions

Database Operations

# Check database integrity
uv run check_db.py

# Run migrations manually
uv run migrate_db.py

# Check migration status
uv run check_migration_status.py

Production Sync

The bot includes specialized tools for syncing production data:

  • sync_db: Download production trades.db via SSH
  • sync_logs: Update local logs from production server

Common Issues

Database Locked

  • Ensure only one bot instance is running
  • Check for zombie processes: ps aux | grep polyflup
  • Database uses WAL mode for better concurrency

Balance API Issues

  • XRP markets have known reliability issues (15m grace period configured)
  • Enhanced balance validation with retry logic automatically handles this
  • Check ENABLEENHANCEDBALANCE_VALIDATION=YES in .env

Position Sync Issues

  • Bot performs startup sync with exchange on launch
  • Uses both CLOB order book and Data API for position validation
  • Automatic self-healing logic corrects size mismatches