{"id":19938619,"url":"https://github.com/sectore/wtch-crpts","last_synced_at":"2025-06-19T17:37:30.853Z","repository":{"id":66673221,"uuid":"163761325","full_name":"sectore/wtch-crpts","owner":"sectore","description":"watch cryptos in your terminal","archived":false,"fork":false,"pushed_at":"2019-02-10T16:57:39.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T04:06:11.663Z","etag":null,"topics":["crypto","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/sectore.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":"2019-01-01T19:31:48.000Z","updated_at":"2019-02-10T16:57:40.000Z","dependencies_parsed_at":"2023-03-05T19:15:20.055Z","dependency_job_id":null,"html_url":"https://github.com/sectore/wtch-crpts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fwtch-crpts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fwtch-crpts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fwtch-crpts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fwtch-crpts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sectore","download_url":"https://codeload.github.com/sectore/wtch-crpts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367932,"owners_count":19951444,"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","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":["crypto","rust"],"created_at":"2024-11-12T23:41:22.927Z","updated_at":"2025-03-01T12:44:30.374Z","avatar_url":"https://github.com/sectore.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wtch-crpts (wɒtʃ ˈkrɪptəʊz)\n\n`wtch-crpts` was intended to be a _personal [Rust](https://www.rust-lang.org/) playground thing_ I started during my holidays back in January 2019. The main goal was to dive into [Rust](https://www.rust-lang.org/) by covering _common Rust stuff and libraries_. That's why the code might not make sense in all cases... \n\n_**common stuff**_\n\n- [Ownership, References, Borrowing](https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html)\n- [Generics, Traits, Lifetimes](https://doc.rust-lang.org/book/ch10-00-generics.html)\n- [Error Handling](https://doc.rust-lang.org/book/ch09-00-error-handling.html)\n- [Testing](https://doc.rust-lang.org/book/ch11-00-testing.html)\n- [Concurrency, Threads](https://doc.rust-lang.org/book/ch16-01-threads.html)\n- [Builder pattern](https://github.com/rust-unofficial/patterns/blob/master/patterns/builder.md)\n- etc.\n\n_**libs**_\n\n- [fail](https://crates.io/crates/fail) - A fail point implementation for Rust.\n- [dotenv](https://crates.io/crates/dotenv) - A `dotenv` implementation for Rust\n- [clap](https://crates.io/crates/clap) - Command Line Argument Parser for Rust\n- [tui](https://crates.io/crates/tui) A library to build rich terminal user interfaces or dashboards \n- [derive_builder](https://crates.io/crates/derive_builder) Rust macro to automatically implement the builder pattern for arbitrary structs.\n- [serde](https://crates.io/crates/serde) - Serializing and deserializing Rust data structures efficiently and generically\n- etc.\n\n## Requirements\n\n- [rustup](https://www.rust-lang.org/tools/install)\n\n## How to run?\n\n- Make a copy of `.env.example` and rename it to `.env`\n- Get your [CoinMarketCap API key](https://coinmarketcap.com/api/) and add it to `COINMARKETCAP_KEY` in `.env`\n- Build sources\n```sh\ncargo build\n```\n\n* Show help\n```\n./target/debug/wtch-crpts --help\n\nWTCH-CRPTS 0.1.0\njk \u003cemail@jkrause.io\u003e\nWatch crypto's in your terminal\n\nUSAGE:\n    wtch-crpts [OPTIONS]\n\nFLAGS:\n    -h, --help       \n            Prints help information\n\n    -V, --version    \n            Prints version information\n\n\nOPTIONS:\n    -c, --cryptos \u003ccryptocurrencies\u003e...    \n            Cryptocurrency to watch, e.g. BTC. Multiple values can be added by using ',' as a delimiter, eg. BTC,ETH,LTC\n            [default: BTC]\n    -f, --fiat \u003cfiat\u003e                      \n            Fiat currency for rating cryptocurrencies, e.g. EUR [default: USD]  [possible values: USD, ALL, DZD, ARS,\n            AMD, AUD, AZN, BHD, BDT, BYN, BMD, BOB, BAM, BRL, BGN, KHR, CAD, CLP, CNY, COP, CRC, HRK, CUP, CZK, DKK,\n            DOP, EGP, EUR, GEL, GHS, GTQ, HNL, HKD, HUF, ISK, INR, IDR, IRR, IQD, ILS, JMD, JPY, JOD, KZT, KES, KWD,\n            KGS, LBP, MKD, MYR, MUR, MXN, MDL, MNT, MAD, MMK, NAD, NPR, TWD, NDZ, NIO, NGN, NOK, OMR, PKR, PAB, PEN,\n            PHP, PLN, GBP, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SSP, VES, LKR, SEK, CHF, THB, TTD, TND, TRY, UGX,\n            UAH, AED, UYU, UZS, VND]\n\n```\n* Run (e.g. to get rates of `BTC`, `ETH`, `LTC` in `EUR`)\n```sh\n./target/debug/wtch-crpts -f EUR -c=BTC,ETH,LTC\n```\n- Run with logging\n```sh\nRUST_LOG=wtch_crpts=debug ./target/debug/wtch-crpts -f EUR -c=BTC,ETH,LTC\n```\n\n- Run with mock data to save [your credits](https://pro.coinmarketcap.com/account) while doing some development. To serve mock data installation of [`json-server`](https://github.com/typicode/json-server) is required:\n```sh\njson-server -w mock/coinmarketcap-api.json\nRUST_LOG=wtch_crpts=debug ./target/debug/wtch-crpts -f EUR -c=BTC,ETH,LTC\n```\n\n- Run tests\n```\ncargo test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fwtch-crpts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectore%2Fwtch-crpts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fwtch-crpts/lists"}