Controtto
📊 Kontrolle
Ein selbstgehosteter Gewinn- und Verlust-Tracker, der mit Go, HTML und ohne JavaScript erstellt wurde. Controtto verfolgt Ihre Transaktionen, speichert sie in einer SQLite-Datei und gibt alle möglichen Berechnungen zurück, darunter:
Durchschnittlicher Kaufpreis
Aktueller Vermögenswert
Transaktionsverlauf
Import-/Exporttransaktion (siehe Beispiel )
Gewinn und Verlust
Um den Preis eines Vermögenswerts abzurufen, verlässt sich Controtto hauptsächlich auf 4 APIs ( siehe Code ).
Binance – Öffentliche API, kein Token erforderlich.
BingX – Öffentliche API, kein Token erforderlich.
Alpha Vantage – Aktien, kostenlos, aber mit kurzer Kursbegrenzung. ( Holen Sie sich ein Token und legen Sie
CONTROTTO_AVANTAGE_TOKENfest)Tiingo – Aktien, Kryptowährungen und Forex. (Konto/Token erstellen und
CONTROTTO_TIINGO_TOKENfestlegen)
Demo
Sie können sich die Demo auch unter demo.contre.io ansehen, die Datenbank wird stündlich zurückgesetzt.
https://github.com/user-attachments/assets/28bf8782-6118-47c0-a94b-085e1a7045b2
Alle Konfigurationen werden in der .env Datei festgelegt und als Umgebungsvariablen ĂĽbergeben. Die Variablen CONTROTTO_PORT und CONTROTTO_DB_PATH sind verfĂĽgbar.
# Install the dependencies
go mod tidy
# Set the .env
mv .env.example .env
# Source the env variables
. <(cat .env | grep -v -e '^$' | grep -v "#" | awk '{}')Related MCP server: gograph
Erstellen und AusfĂĽhren
go run ./cmd/main.go # go build ./cmd/main.go to just build itEntwicklungsumgebung
go install github.com/cosmtrek/air@latest # Download air
air -c air.tomlund greifen Sie auf localhost:3000 zu
Lauf mit Podman
Ein Container-Image ist im öffentlichen Docker-Register verfügbar. Wenn Sie Docker verwenden möchten, ersetzen Sie einfach podman durch docker .
mkdir data
podman container run --rm -p 8000:8000 -v $(pwd)/data:/data contre95/controttoFĂĽhren Sie Tests durch
go test -cover ./...
# Expected result
# ? controtto/cmd [no test files]
# ? controtto/src/app/managing [no test files]
# ? controtto/src/domain/pnl [no test files]
# ? controtto/src/gateways/markets [no test files]
# ? controtto/src/gateways/sqlite [no test files]
# ? controtto/src/presenters [no test files]
# ok controtto/src/app/querying 0.003s coverage: 40.7% of statementsZU TUN
Weitere Tests
Wrapper für Protokollierung und Metriken wären auch schön.
Fügen Sie Konten hinzu, um den Überblick über das gesamte Nettovermögen zu behalten.
Entfernen Sie das gesamte CSS und verwenden Sie benutzerdefiniertes
style.css+ Tailwind CDN.
This server cannot be deployed
Maintenance
Related MCP Connectors
Design domain models and generate deterministic multi-stack code, driven by your coding agent.
Scores your code across 12 areas, with findings, fix prompts, and re-assessment in your AI agent
1Enforces architectural invariants and code quality rules inside your AI agent's edit loop.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Related MCP Servers
- AlicenseAqualityDmaintenanceStrict AI code reviewer powered by Groq. Finds bugs, vulnerabilities and security issues in your code. Supports analyze, compare versions, explain code, generate tests, and HTML reports.73MIT
- AlicenseAqualityAmaintenanceA local AST and type-aware Go repository context indexer that uses CHA to map symbols, call graphs, dependencies, and architecture patterns. Built for AI coding agents that need to navigate and reason about large Go codebases without reading raw files.68230MIT
- FlicenseNot gradedqualityDmaintenanceAutomates project scaffolding for Domain-Driven Design and Clean Architecture, providing professional naming, structure verification, and bilingual documentation generation.-
- AlicenseNot gradedqualityCmaintenanceReal-time architecture governance tool that enforces Clean Architecture, DDD, SOLID, TDD, and Security rules across 8 languages using 11 specialized agents.1 npmMIT
Appeared in Searches
- Information about the Go programming language
- Gin web framework for Go programming language
- Tips for Naming Variables and Functions in Go Programming Language
- Using separate agents for schema validation, code standards, and directory structure enforcement in development workflows
- How to compile code in Visual Studio