CoolFace
Apppublic

wigans/backtest-compare-tool

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

Backtest Comparison Tool

A professional-grade financial analysis tool built with FastAPI, Pandas, and Bulma 1.0.4. It allows users to compare various investment rankings and timeseries data directly from Excel files.

Features

  • Dual Modes: Support for multiple single-series files or a single file with multiple series columns.
  • Upload & Label: Upload your .xlsx files and assign them custom labels for better clarity.
  • Auto-Extraction: Automatically identifies data columns and labels in "Return" sheets.
  • Market Benchmarks: Live integration with IBOV and CDI data via API.
  • Log Scale: One-click toggle for logarithmic cumulative return charts.
  • Drag-to-Select: Intuitive time-period selection directly on the chart.

Local Development (with uv)

bash
uv run uvicorn app.main:app --reload --port 7860

Hosting on Hugging Face Spaces

This repository is configured to run as a Docker space.

  1. 1.Create a new Space on Hugging Face.
  2. 2.Select Docker as the SDK.
  3. 3.Push the files to the Space repository: git push hf master:main --force.