{"id":16551418,"url":"https://github.com/blackode/krypto","last_synced_at":"2025-10-13T15:35:44.480Z","repository":{"id":238062374,"uuid":"795790051","full_name":"blackode/krypto","owner":"blackode","description":"crypto coin pairs average price calculator","archived":false,"fork":false,"pushed_at":"2024-05-06T05:35:43.000Z","size":334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T19:00:32.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-04T04:18:32.000Z","updated_at":"2024-05-06T05:35:46.000Z","dependencies_parsed_at":"2024-05-06T06:44:28.111Z","dependency_job_id":null,"html_url":"https://github.com/blackode/krypto","commit_stats":null,"previous_names":["blackode/krypto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blackode/krypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Fkrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Fkrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Fkrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Fkrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackode","download_url":"https://codeload.github.com/blackode/krypto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Fkrypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015929,"owners_count":26085777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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-10-11T19:37:15.566Z","updated_at":"2025-10-13T15:35:44.462Z","avatar_url":"https://github.com/blackode.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome Krypto CoinPair Average Calculator\nThe `Krypto.Binance` and `Krypto.CoinPair` servers are started along with application.\n\n![Project Out Line Image](krypto.png)\n\n## Project Highlighted Module\n\n### Krypto.CoinPair\n\nThis module simulates a Persistent Server for subscribing the coinpair and storing the prices of coinpair using `GenServer`.\n\nIt will start as soon as our `krypto` app starts.\n\n## Development Technologies\n\nAt the moment of developing this project, I used the following versions of\nElixir and Erlang.\n\n```elixir\niex\u003e mix hex.info\n\nHex:    2.0.6\nElixir: 1.16.1\nOTP:    26.2.2\n\nBuilt with: Elixir 1.16.1 and OTP 24.3.4.16\n\n```\n# Running Application\n\n## 1) mix release krypto\n\n```\nmix deps.get\nmix release krypto\n```\n\nI added the releases path to `./releases` \n\nSo, we are provided with following commands.\n\n```\nRelease created at releases\n\n    # To start your system\n    releases/bin/krypto start\n\nOnce the release is running:\n\n    # To connect to it remotely\n    releases/bin/krypto remote\n\n    # To stop it gracefully (you may also send SIGINT/SIGTERM)\n    releases/bin/krypto stop\n\nTo list all commands:\n\n    releases/bin/krypto\n\n```\n\n#### 2) iex -S mix\n\nRunning Interactively\n\n## Project Challenges\n\n- Websockex Integration (Binance) Subscription Implementation.\n- CoinPair Server for subscribing and updating the coinpair prices.\n\n\n## Usage of Application\nWhen the application starts, we have two modules available. `Krypto.Binance` and `Krypto.CoinPair`. The `Krypto.Binance` establish a websocket connection as soon as the application starts.\n\n\n## Subscribing a coinpair\n```elixir\n\niex\u003e Krypto.CoinPair.subscribe \"btcusdt\"\n:ok\n\niex\u003e Krypto.CoinPair.subscribe \"ethusdt\"\n:ok\n\n```\n\n## Getting Average price for coinpair\n```elixir\n\niex\u003e Krypto.CoinPair.get_average \"btcusdt\"\n{:ok, 64019.6706875}\n\n\niex\u003e Krypto.CoinPair.get_average \"ethusdt\"\n{:ok, 3150.221481481482}\n\n\n```\n\n## Debugging\n\n```elixir\niex\u003e :sys.trace(Process.whereis(Krypto.Binance), true)\n\n```\n\n## Overall Project Experience\n\nI felt it is a well framed to test core concepts of Elixir as project made me to code in all the core concepts of Elixir like `GenServers`, `Enumaration`, `message communications`, `websocket`.\n\n**Thank You :)**\n\nBest Regards,      \nAnkanna\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackode%2Fkrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackode%2Fkrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackode%2Fkrypto/lists"}