Skip to main content

Stats page for backtest/live trading

Project description

Stellar Stats

A Streamlit-based trading statistics dashboard that analyzes backtest and live trading performance with comprehensive metrics and visualizations.

Features

  • Multi-account performance analysis - Compare performance across different trading accounts
  • Benchmark comparison - Compare against market indices with leverage options
  • Flexible time periods - YTD, inception-to-date, or custom date ranges
  • Comprehensive metrics - Performance metrics, drawdown analysis, return distributions
  • Trade analysis - Detailed breakdowns by underlying assets and slippage tracking
  • Round-trip analysis - Extract and analyze complete trading round-trips
  • Investor tracking - Calculate investor-specific returns

Installation

pip install stellar-stats

Usage

Run the Dashboard

stellar-stats run

This launches the Streamlit web interface for interactive analysis.

Configuration

Create an optional config.toml file to define:

  • Account configurations and data directories
  • Custom benchmark symbols
  • API tokens (Tushare for Chinese market data)

The system will auto-discover account directories if no configuration is provided, which is useful for viewing backtesting results.

Data Sources

  • Local files: CSV/HDF/Parquet files containing returns, trades, round trips, and slippage data
  • Market data: yfinance for global benchmark symbols
  • Chinese markets: Tushare API (requires token configuration)
  • Investor data: Optional investors.csv for investor-specific analysis

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stellar_stats-0.8.1.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stellar_stats-0.8.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file stellar_stats-0.8.1.tar.gz.

File metadata

  • Download URL: stellar_stats-0.8.1.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for stellar_stats-0.8.1.tar.gz
Algorithm Hash digest
SHA256 ecafa408b94a958c2395d95fc851e3480ffa90bfe20ffa8adae4e9bbec64ca1c
MD5 dcd9408eb443bfa73b90ea98b4ebe1c8
BLAKE2b-256 cb681d4c4005f86101b5cb3b4c89b18221c3c591b9defd8acff7253e56b79f8f

See more details on using hashes here.

File details

Details for the file stellar_stats-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: stellar_stats-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for stellar_stats-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 580d80f74e42a45c9f78fe410043f2f0758efe8356c237166f81e66a6a2f1253
MD5 27783012e3f76e3e072bd836cd056266
BLAKE2b-256 a1f28bf15e0f1fd16b3b5a4012f287c9169f51e9c35200c79d1b1f2a15285612

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page