cryptohedge: track your crypto-portfolio and build and hedge fund

in #utopian-io6 years ago

Repository

https://github.com/cryptohazard/cryptohedge

Cryptohedge

This project is a website to track the value of your crypto-portfolio. It also will help managing a hedge fund in the future version.
Why such a project:

  • to easily see the value of your portfolio across various cryptocurrencies that can be held held in different wallets
  • to have that value without hosting/leaking public or private keys.
  • use Go(lang) to build (part of) a website

# Installation and compilation

You need to have a working Go(lang) environment in version >=1.9 and clone this repository in your src directory.

Now you can go in the exec folder and build the executable( I added the -o option to change the name):

$ cd exec/
$ go build -o cryptohedge main.go
$ sudo ./cryptohedge

The port is 80. You can change it if you don't want to type sudo all the time.

Note: You can build for windows using:

GOOS=windows GOARCH=amd64 go build -o cryptohedge.exe main.go

Portfolio

The portfolio file has the following format:

quantity1 coin1
quantity2 coin2
...

A file example is provided. The name should be the one used by coinmarketcap, the price provider we use. For instance Bitcoin is bitcoin while Bitcoin Cash is bitcoin-cash.

Note: There is no need to restart the program if you change the portfolio file.

Frontend

You can put your own index.html. Just remember to write {{.Value}} where you want the value of your portfolio computed by the backend to appear.

Roadmap

  • improve frontend (html, js, css)
  • add fiat support so that you can still track your portfolio when you have to convert back and forth from fiat
  • compare current protfolio with ideal portfolio
  • add a database to do more complex analysis
  • hedge fund features: funds divided in parts, accounts balance(X parts), price of a part
  • TLS support

GitHub Account

https://github.com/cryptohazard

Sort:  

Thanks! Better than Blockfolio.

Thanks. Hopefully someone will improve the user interface while I add more features.

Thanks for the contribution, @cryptohazard! In its current state it doesn't really seem to be that unique (there are a lot of portfolio trackers out there) or useful (having to create your own HTML file and add coin + amount to a file), so it would be great if you could take the above points into consideration for future contributions.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @amosbastian. You actually don't need to write your own HTML since I provided one. I mentioned that because mine is not pretty and shiny which is the main reason I publish this version of the code. I am trying to embark a friend that is a fronted dev on steem/utopian-io so I needed to release the base code.
As for the coin + amount, I don't have the choice since it is not a wallet.
NExt updates will be more focus on the hedge fund part so it won't be such a unique project until then.

Hey @cryptohazard
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62948.49
ETH 2583.15
USDT 1.00
SBD 2.74