Skip to main content
Glama

Controtto

by contre95

📊 제어

Go, HTMX, JavaScript 없이 자체 호스팅되는 손익 추적 프로그램입니다. Controto는 거래를 추적하여 SQLite 파일에 저장하고, 다음을 포함한 다양한 계산 결과를 반환합니다.

  • 평균 구매 가격
  • 현재 자산 가치
  • 거래 내역
  • 수입/수출 거래( 샘플 참조)
  • 손익

자산 가격을 가져오기 위해 Controtto는 주로 4가지 API를 사용합니다( 코드 참조 ).

  • 바이낸스 - 공개 API, 토큰이 필요하지 않습니다.
  • BingX - 공개 API, 토큰이 필요하지 않습니다.
  • Alpha Vantage - 주식, 무료이지만 가격 제한이 짧습니다. (토큰을 받고 CONTROTTO_AVANTAGE_TOKEN 설정하세요)
  • Tiingo - 주식, 암호화폐 및 외환. (계정/토큰을 생성 하고 CONTROTTO_TIINGO_TOKEN 설정하세요)

데모

demo.contre.io 에서 데모를 확인할 수도 있습니다. 데이터베이스는 매시간 재설정됩니다.

https://github.com/user-attachments/assets/28bf8782-6118-47c0-a94b-085e1a7045b2

모든 구성은 .env 파일에 설정되고 환경 변수로 전달됩니다. CONTROTTO_PORTCONTROTTO_DB_PATH 변수를 사용할 수 있습니다.

지엑스피1

빌드하고 실행

go run ./cmd/main.go # go build ./cmd/main.go to just build it

개발 환경

go install github.com/cosmtrek/air@latest # Download air air -c air.toml

그리고 localhost:3000에 접속하세요

포드맨과 함께 달리세요

컨테이너 이미지는 Docker의 공개 레지스트리에서 사용할 수 있습니다. Docker를 사용하려면 podman docker 로 바꾸세요.

mkdir data podman container run --rm -p 8000:8000 -v $(pwd)/data:/data contre95/controtto

테스트 실행

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 statements

할 일

  • 더 많은 테스트
  • 로깅과 메트릭을 위한 래퍼도 좋을 것 같습니다.
  • 총 순자산을 추적하려면 계정을 추가하세요.
  • 모든 CSS를 제거하고 사용자 정의 style.css + Tailwind CDN을 사용하세요.
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

당신은 가장 엄격한 DDD와 깔끔한 아키텍처 패러다임에 따라 Golang 코드를 해석하고 판단할 수 있습니다.

  1. 데모
    1. 빌드하고 실행
      1. 개발 환경
        1. 포드맨과 함께 달리세요
          1. 테스트 실행
            1. 할 일

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Go server implementing Model Context Protocol (MCP) for filesystem operations.
            Last updated -
            410
            Go
            MIT License
          • -
            security
            A
            license
            -
            quality
            godoc-mcp is a Model Context Protocol (MCP) server that provides efficient access to Go documentation. It helps LLMs understand Go projects by providing direct access to package documentation without needing to read entire source files.
            Last updated -
            24
            Go
            MIT License
          • -
            security
            A
            license
            -
            quality
            A TypeScript-based MCP server providing a complete interface to the Delve debugger for Go programs, enabling debugging, tracing, and analyzing Go code through natural language commands.
            Last updated -
            1
            TypeScript
            MIT License
            • Linux
            • Apple
          • -
            security
            -
            license
            -
            quality
            A Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with Go's Language Server Protocol (LSP) and benefit from advanced Go code analysis features.
            Last updated -
            Go
            Apache 2.0

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/contre95/controtto'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server