Cryptocurrency trading CLI with automatic risk management for Bybit.
- Open Long/Short positions with automatic SL/TP calculation
- Risk-based position sizing (risk % of balance per trade)
- Secure API key storage using OS Keyring
- Trade history tracking with SQLite
- Trade statistics and win rate analysis
pip install -e .lazy-traderOn first run, you'll be prompted to enter your Bybit API credentials.
- Select "Open Long" or "Open Short"
- Enter the ticker (e.g., BTCUSDT)
- Enter entry price (or use current market price)
- Enter stop loss price
- Select leverage (default: 1x)
- Select risk % (default: 2%)
- Select R:R ratio (default: 1:3)
- Review the order preview and confirm
SL Distance % = |Entry - SL| / Entry × 100
Position Value = (Balance × Risk%) / SL Distance%
Take Profit = Entry ± (SL Distance × R:R)
Environment variables (optional):
LAZY_TRADER_DEFAULT_LEVERAGE- Default leverage (1)LAZY_TRADER_DEFAULT_RISK_PERCENT- Default risk % (2.0)LAZY_TRADER_DEFAULT_RISK_REWARD- Default R:R ratio (3.0)
pip install -e ".[dev]"
pytestMIT