{"id":16587608,"url":"https://github.com/optixal/i3blocks-crypto","last_synced_at":"2025-09-09T05:46:00.982Z","repository":{"id":48612170,"uuid":"115853882","full_name":"Optixal/i3blocks-crypto","owner":"Optixal","description":":dollar: View your favorite coins' ticker prices with i3blocks.","archived":false,"fork":false,"pushed_at":"2021-07-18T03:49:38.000Z","size":10,"stargazers_count":32,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-06T23:56:29.471Z","etag":null,"topics":["altcoin","bitcoin","coin","crypto","cryptocurrency","ethereum","i3","i3bar","i3blocks","i3wm","live","module","price","price-changes","price-tracker","realtime","rice","ricing","ticker"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Optixal.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}},"created_at":"2017-12-31T09:15:13.000Z","updated_at":"2025-07-19T00:32:11.000Z","dependencies_parsed_at":"2022-09-16T00:20:55.348Z","dependency_job_id":null,"html_url":"https://github.com/Optixal/i3blocks-crypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Optixal/i3blocks-crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2Fi3blocks-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2Fi3blocks-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2Fi3blocks-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2Fi3blocks-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optixal","download_url":"https://codeload.github.com/Optixal/i3blocks-crypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2Fi3blocks-crypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274250508,"owners_count":25249396,"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-09-09T02:00:10.223Z","response_time":80,"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":["altcoin","bitcoin","coin","crypto","cryptocurrency","ethereum","i3","i3bar","i3blocks","i3wm","live","module","price","price-changes","price-tracker","realtime","rice","ricing","ticker"],"created_at":"2024-10-11T22:54:38.076Z","updated_at":"2025-09-09T05:46:00.936Z","avatar_url":"https://github.com/Optixal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i3blocks-crypto\n\n![B\u0026W Themed i3blocks-crypto](https://user-images.githubusercontent.com/19287477/35080253-485a4400-fc47-11e7-8ef0-2208869ac822.png)\n\n:dollar: View your favorite coins' ticker prices with i3blocks.\n\n## Setup\n\n![BTC, BCH, ETH i3blocks-crypto](https://user-images.githubusercontent.com/19287477/34461337-9bc48ff4-ee61-11e7-8676-638dd5d1b75b.png)\n\n### Requirements\n* i3\n* i3bar\n* i3blocks\n* Python 3. Works on Python 2 as well, just remove the `3` from `#!/usr/bin/env python3` on the top line of the \"crypto\" script.\n  * requests library (`pip3 install requests`)\n* (Optional, but recommended) Nerd Font for custom icons (bitcoin's B symbol, bitcoin cash's cash icon, ethereum's diamond icon, or any other icon you want) to display. I'm using Roboto Mono Nerd Font Regular.\n\n### Configurations\n\n1. Ensure the \"crypto\" script within this repo has execute permission. If unsure, run the following:\n\n    ```sh\n    chmod +x crypto\n    ```\n\n2. Ensure the `font` attribute within **i3 config** is prefixed with `pango:` for HTML colors to work. If it is already prefixed, skip this step. Example:\n\n    ```\n    font pango:RobotoMono Nerd Font Regular 8\n    ```\n\n3. Add the following to your **i3blocks config** (3 instances, Bitcoin, Bitcoin Cash and Ethereum). Remember to change the path within the command attribute to point to the \"crypto\" script.\n\n    ```\n    [crypto]\n    label=\n    markup=pango\n    interval=60\n    instance=bitcoin\n    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME\n\n    [crypto]\n    label=\n    markup=pango\n    interval=57\n    instance=bitcoin-cash\n    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME\n\n    [crypto]\n    label=\n    markup=pango\n    interval=63\n    instance=ethereum\n    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME\n    ```\n\n## Customization\n\n### Icon\n\nTo customize the icon that appears to the left of each ticker, simply change the block's `label` attribute within i3blocks config file (eg. `label=$`). If you are using a Nerd Font, here is a great reference for finding the icon you are looking for: http://nerdfonts.com/#cheat-sheet\n\n### Interval\n\nTo customize the interval between each query, simply change the block's `interval` attribute within i3blocks config file (eg. `interval=60` - query every 60 seconds). The interval is block-specific, so each coin can have different query intervals. I chose not to make the intervals the same for each coin to avoid querying them all at once.\n\n### Adding a New Cryptocurrency\n\nAdding a new coin to your i3blocks config is super simple. Use this template within i3blocks config to add a new coin:\n\n```\n[crypto]\nlabel=\u003cicon\u003e\nmarkup=pango\ninterval=60\ninstance=\u003ccoin tag used by CoinMarketCap\u003e\ncommand=~/path/to/i3blocks-crypto/crypto\n```\n\nThe \"crypto\" script uses CoinMarketCap's API to query prices. To find out the tag name of the coin you want to add, visit the coin's page on CoinMarketCap (eg. https://coinmarketcap.com/currencies/stellar/ for stellar lumen), copy the last part of the URL (eg. `stellar`) and paste it in the `instance` attribute.\n\nYou can add a custom rocket icon as the label as well. First, search \"rocket\" in http://nerdfonts.com/#cheat-sheet, second, copy the hex value (\"f135\"), next, paste the hex value into the \"hexadecimal\" text area in https://r12a.github.io/apps/conversion/, lastly, copy the character output from the \"characters\" text area and paste it into the `label` attribute.\n\n![XLM crypto i3block](https://user-images.githubusercontent.com/19287477/34461338-9bf60570-ee61-11e7-8217-5ad510b19ffd.png)\n\nCode for stellar lumen:\n\n```\n[crypto]\nlabel=\nmarkup=pango\ninterval=60\ninstance=stellar\ncommand=~/path/to/i3blocks-crypto/crypto\n```\n\n### Display Price in BTC\n\nBy default the coin values are displayed in USD. Add the argument BTC to the command string to make the output price be displayed in BTC\n\n```\n[crypto]\nlabel=$\nmarkup=pango\ninterval=61\ninstance=waves\ncommand=~/path/to/i3blocks-crypto/crypto BTC\n```\n\n### Price Change Alerts\n\nBy default, the price change is based on previous hour. Available: hourly (default) (`1h`), daily (`24h`) and weekly (`7d`) price changes. To customize which price change period to use, modify the `PRICE_CHANGE_PERIOD` variable in the \"crypto\" script.\n\nPrice changes above 10% will make the ticker turn red. To change this behaviour, modify the `PRICE_CHANGE_URGENT_PERCENT` variable in the \"crypto\" script.\n\n---\n\n## Ideas\n\n* Add option to use Bitfinex API instead of CoinMarketCap. Perhaps use any exchange with ccxt\n* Trigger something when block is clicked. Open coin's information in web browser, or copy the current price, or open exchange in web browser, etc.\n* Add indicator functionality. Alert whenever an indicator has a crossover, SMA? PSAR? etc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptixal%2Fi3blocks-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptixal%2Fi3blocks-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptixal%2Fi3blocks-crypto/lists"}