Polyflup ops

From Niller2005/PolyFlup · View interactive version

Polyflup ops is an AI agent skill from the GitHub repository Niller2005/PolyFlup. Operational commands, environment configuration, and deployment for PolyFlup.

How to use this skill

Skill file

Commands & Operations

Python Backend

uv run polyflup.py      # Run bot
uv run polyflup.py --paper  # Paper trading (simulated fills on live books, trades_paper.db, no keys needed)
uv run tui.py           # Terminal dashboard (read-only): q quit, r refresh, p pause, l toggle log page, m risk-profile dialog; --db PATH, --once, --no-wallet
uv run check_db.py      # Check database
uv run migrate_db.py    # Run migrations
uv sync                 # Install dependencies (pyproject.toml + uv.lock)

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

Core Settings

Atomic Hedging Configuration (v0.6.0+)

Pre-Settlement Exit (v0.6.0+)

Emergency Liquidation (v0.6.0+)

Signal Calculation (v0.5.0+)

Deprecated Settings (v0.6.0 - No longer used)

Debugging

Log Files

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:

Common Issues

POST_ONLY Crossing Failures
Partial Fill Recovery
Atomic Pair Timeouts
Database Locked
Position Sync Issues
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.