{"id":20797848,"url":"https://github.com/cryptohazard/cryptohedge","last_synced_at":"2026-04-19T21:01:46.911Z","repository":{"id":73499918,"uuid":"138222262","full_name":"cryptohazard/cryptohedge","owner":"cryptohazard","description":"Cryptohedge = cryptocurrency + porfolio + hedge fund","archived":false,"fork":false,"pushed_at":"2018-07-15T21:28:35.000Z","size":5233,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T09:58:02.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptohazard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-21T21:12:15.000Z","updated_at":"2025-05-09T22:04:33.000Z","dependencies_parsed_at":"2023-09-20T08:31:26.890Z","dependency_job_id":null,"html_url":"https://github.com/cryptohazard/cryptohedge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptohazard/cryptohedge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptohazard%2Fcryptohedge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptohazard%2Fcryptohedge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptohazard%2Fcryptohedge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptohazard%2Fcryptohedge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptohazard","download_url":"https://codeload.github.com/cryptohazard/cryptohedge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptohazard%2Fcryptohedge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32022561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T16:35:35.561Z","updated_at":"2026-04-19T21:01:46.521Z","avatar_url":"https://github.com/cryptohazard.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cryptohedge = cryptocurrency + porfolio + hedge fund\nThis project is about a cryptocurrency hedge fund. It lets you visualize and analyzes the current state of your portfolio. It is not a wallet so does not deal with private or public keys. No funds are at stake if the server you host it on is hacked. This is also useful if you do not want to trust a third party with your data.\n The goal is to build various tools to:\n* visualize the health of the cryptofolio\n* manage the cryptofolio\n* analyze the, past and present, portfolios: performance, diversification, correlation to various data...\n* have access controls for users(https, login)\n\n## Installation and compilation\nYou need to have a working Go(lang) environment in version \u003e=1.9 and clone this repository in your ```src``` directory.\n\nNow you can go in the ```exec``` folder and build the executable( I added the ```-o``` option to change the name):\n```\n$ cd exec/\n$ go build -o cryptohedge main.go\n$ sudo ./cryptohedge\n```\nThe port is ```8080```.\n\nNote: You can build for  windows using:\n```\nGOOS=windows GOARCH=amd64 go build -o cryptohedge.exe main.go\n```\n\n## configuration\nFor now, the **cryptohedge** data are submitted through JSON file.\nThe file ```portfolio.json```  is  for the cryptocurrencies names and their amount. The name should be the one used by [coinmarketcap](http://coinmarketcap.com/), the price provider we use. For instance Bitcoin is ```bitcoin``` while Bitcoin Cash is ```bitcoin-cash```.\n\nThe portfolio file has the following format:\n```\n[\n  {\n    \"name\" : \"ethereum\",\n\t   \"amount\": 1.1\n   },\n   {\n     \"name\" : \"bitcoin\",\n \t   \"amount\": 2.2\n    },\n    ...\n]\n```\n\nThe file ```shares.json``` is for the users names and the number of shares in the fund they have. The format is the following:\n```\n[\n  {\n    \"name\" : \"aba\",\n\t   \"shares\": 18\n   },\n   {\n     \"name\" : \"aora\",\n \t   \"shares\": 26\n    },\n    ...\n]\n```\nExample files, with obviously fake data, are provided.\n\n## Features\n### \"/\"\nThis shows the value(in €) of the cryptofolio. \nIt also shows the current state of the market, courtesy of [coin360](https://coin360.io/).\n\n![index.png](https://ipfs.busy.org/ipfs/QmZZc76XwyH7RCum2AkCGS3YUfXJmWsSghudchygGT7UpZ)\n### \"/cryptofolio\"\nThis shows the content of the portfolio. The coin name and amount are retrieved from the ```portfolio.json```. The value is computed from the price available through [coinmarketcap API](https://coinmarketcap.com/api/). We also compute the percentage of each coin in the portfolio. This is interesting to see how dependent you are of a particular currency. \nNext versions will allow you to set your *dream portfolio* so that you can compare it to the current one.\n\n![cryptofolio.png](https://ipfs.busy.org/ipfs/QmcK97yuTyz1Mxq5QtiDM5koTkXVQ6ktR6LfH1tKbEqd5Z)\n\n### \"/cryptohedge\"\nHere it is mainly about users. How many shares do they *HODL*? What the value in €? It also shows the *Index*, the price of share in the hedge fun. \nThis page should be locked to *administrators* in the future and users will only see their own info.\n\n![cryptohedge.png](https://ipfs.busy.org/ipfs/QmTGiC4i9h6UDnMYsVtMUmLY46A9SnZtWDVTyRJrnzi94M)\n\n## Frontend development\nThe Frontend part is clearly not *my forte*. As such, I am just doing quick-and-dirty pages that shows what can be done with value retrieved from a Golang Backend. I invite you to check [Golang html templates package](https://golang.org/pkg/html/template/) to understand the relation between the frontend and the backend but they can be developped separately.\nI plan to make a task request on Utopian.io for the Frontend and a logo.\n\n## Tentative Roadmap\n* add fiat support so that you can still track your portfolio when you have to convert back and forth from fiat(*tether* is not fiat)\n* compare current portfolio with ideal/past/different portfolio\n* add  database and/or CSV support to do more complex analysis. For instance it would be interesting to see if the weekly performances are correlated, if portfolio is *hedged enough*, if other statistical indicators would be interesting...\n* more hedge fund features: entry amount, overall performance of the hedge fund, historical variation, users personalized history\n* TLS support\n* blog = Steem articles rendering\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptohazard%2Fcryptohedge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptohazard%2Fcryptohedge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptohazard%2Fcryptohedge/lists"}