Skip to content

akdasa-studios/lazy-trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy Trader

Cryptocurrency trading CLI with automatic risk management for Bybit.

Features

  • 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

Installation

pip install -e .

Usage

lazy-trader

On first run, you'll be prompted to enter your Bybit API credentials.

Opening a Position

  1. Select "Open Long" or "Open Short"
  2. Enter the ticker (e.g., BTCUSDT)
  3. Enter entry price (or use current market price)
  4. Enter stop loss price
  5. Select leverage (default: 1x)
  6. Select risk % (default: 2%)
  7. Select R:R ratio (default: 1:3)
  8. Review the order preview and confirm

Risk Calculation Formula

SL Distance % = |Entry - SL| / Entry × 100
Position Value = (Balance × Risk%) / SL Distance%
Take Profit = Entry ± (SL Distance × R:R)

Configuration

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)

Development

pip install -e ".[dev]"
pytest

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages