https://github.com/mikiw/btcinvestingcalculator
BTC income calculator in GoLang is based on the assumption that an income transaction is a buy transaction at that time on the market and an outcome transaction is a sell.
https://github.com/mikiw/btcinvestingcalculator
bitcoin go golang
Last synced: 3 months ago
JSON representation
BTC income calculator in GoLang is based on the assumption that an income transaction is a buy transaction at that time on the market and an outcome transaction is a sell.
- Host: GitHub
- URL: https://github.com/mikiw/btcinvestingcalculator
- Owner: mikiw
- Created: 2022-06-01T10:31:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T13:03:15.000Z (almost 3 years ago)
- Last Synced: 2025-01-10T17:52:03.933Z (5 months ago)
- Topics: bitcoin, go, golang
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CryptoInvestingCalculator
BTC income calculator in GoLang is based on the assumption that an income transaction is a buy transaction at that time on the market and an outcome transaction is a sell.
To run it we can simply change the wallet address and type:
```
go run .\Main.go
```Result will be:
```
sumSellValue: 0.18734452000000004
sumSellUsd: 7615.893100012698sumBuyValue: 0.18734452000000004
sumBuyUsd: 7565.0997448037615Income in USD: 50.79335520893619
Remaining BTC: 0
```