{"id":21371332,"url":"https://github.com/henvy-mango/crayon-box","last_synced_at":"2025-04-15T14:11:24.839Z","repository":{"id":262391664,"uuid":"887081467","full_name":"Henvy-Mango/crayon-box","owner":"Henvy-Mango","description":"CrayonBox（蜡笔小箱）可以在 VSCode 实时查看 虚拟币、股票 的交易数据，助你实现更好的投资","archived":false,"fork":false,"pushed_at":"2025-03-19T10:02:33.000Z","size":303,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:01:50.173Z","etag":null,"topics":["binance","bitcoin","btc","crayon-box","stock","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=naomi233.crayon-box","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Henvy-Mango.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-11-12T06:09:17.000Z","updated_at":"2025-03-19T10:02:36.000Z","dependencies_parsed_at":"2025-03-19T10:40:34.021Z","dependency_job_id":null,"html_url":"https://github.com/Henvy-Mango/crayon-box","commit_stats":null,"previous_names":["henvy-mango/crayon-box"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henvy-Mango%2Fcrayon-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henvy-Mango%2Fcrayon-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henvy-Mango%2Fcrayon-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henvy-Mango%2Fcrayon-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Henvy-Mango","download_url":"https://codeload.github.com/Henvy-Mango/crayon-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085426,"owners_count":21210267,"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":["binance","bitcoin","btc","crayon-box","stock","vscode","vscode-extension"],"created_at":"2024-11-22T08:12:32.402Z","updated_at":"2025-04-15T14:11:24.833Z","avatar_url":"https://github.com/Henvy-Mango.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![logo](./images/logo.png)\n\n\u003ch1\u003e\u003cb\u003eCrayonBox（蜡笔小箱）\u003c/b\u003e\u003c/h1\u003e\n\n\u003c/div\u003e\n\n**CrayonBox（蜡笔小箱）**——可以实时查看 虚拟币、股票 的交易数据，助你实现更好的投资。\n\n## 功能\n\n- 底部状态栏显示虚拟币、股票的实时交易数据\n- 支持自选虚拟币、股票，自定义显示顺序\n- 开市自动刷新，非交易时间关闭轮询\n- 支持配置反代 API，解决国内虚拟币交易数据无法获取的问题\n- 通过 GUI 配置自选虚拟币、股票\n- 涨跌幅消息通知\n\n## 安装\n\n有两种安装方式：\n\n1. 从 [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=naomi233.crayon-box) 安装。\n2. 在 vscode 里搜索 `naomi233.crayon-box`。\n\n## 配置项\n\n### 全局配置\n\n| 名称                  |   类型    | 默认值 | 描述         |\n| :-------------------- | :-------: | :----: | :----------- |\n| `crayon-box.enabled`  | `boolean` | `true` | 插件是否启用 |\n| `crayon-box.interval` | `number`  | `5000` | 数据刷新间隔 |\n\n### binance 配置\n\n通过 `crayon-box.binance` 设置虚拟币数据的配置，交易数据来自币安（binance）\n\n| 名称         |    类型    |              默认值               | 描述                                                                              |\n| :----------- | :--------: | :-------------------------------: | :-------------------------------------------------------------------------------- |\n| `symbols`    | `string[]` |           `[\"BTCUSDT\"]`           | 自选代码集合                                                                      |\n| `order`      |  `number`  |                `0`                | 底部状态栏位置排序，数字越小越靠右边                                              |\n| `apiUrl`     |  `string`  | `https://data-api.binance.vision` | binance 接口 API 地址，支持配置反代 API                                           |\n| `windowSize` |  `string`  |               `1d`                | 获取数据的滑动窗口大小，可用值：'1m', '15m', '30m', '1h', '4h', '6h', '12h', '1d' |\n\n### stock 配置\n\n通过 `crayon-box.stock` 设置股票数据的配置，交易数据来自新浪财经\n\n| 名称      |    类型    |     默认值     | 描述                                 |\n| :-------- | :--------: | :------------: | :----------------------------------- |\n| `symbols` | `string[]` | `[\"sh000001\"]` | 自选代码集合                         |\n| `order`   |  `number`  |      `0`       | 底部状态栏位置排序，数字越小越靠右边 |\n\n### remind 配置\n\n通过 `crayon-box.remind` 设置涨跌幅消息通知，通知间隔五分钟\n\n| 名称      |   类型   | 默认值 | 描述                                                     |\n| :-------- | :------: | :----: | :------------------------------------------------------- |\n| `symbol`  | `string` |        | 自选代码                                                 |\n| `price`   | `number` |        | 大于0时，上涨超过指定值通知；小于0时，下跌超过指定值通知 |\n| `percent` | `number` |        | 大于0时，涨幅超过指定值通知；小于0时，跌幅超过指定值通知 |\n\n### 配置示例\n\n```json\n{\n  \"crayon-box.binance\": {\n    \"symbols\": [\"BTCUSDT\", \"ETHUSDT\"],\n    \"order\": 0,\n    \"apiUrl\": \"https://data-api.binance.vision\",\n    \"windowSize\": \"1d\"\n  },\n  \"crayon-box.stock\": {\n    \"symbols\": [\"sh000001\"],\n    \"order\": 1\n  },\n  \"crayon-box.remind\": [\n    {\n      \"symbol\": \"BTCUSDT\",\n      \"price\": -80000,\n      \"percent\": -5.0\n    },\n    {\n      \"symbol\": \"sh000001\",\n      \"price\": 3000,\n      \"percent\": 0\n    }\n  ]\n}\n```\n\n## 快捷命令\n\n- `crayon-box.toggleStatusBar`：显示/隐藏底部状态栏\n- `crayon-box.addBinanceToStatusBar`: 添加自选虚拟币\n- `crayon-box.addStockToStatusBar`: 添加自选股票\n- `crayon-box.addRemind`: 添加涨跌幅消息通知\n\n## 更新日志\n\n可以从 [CHANGELOG](./CHANGELOG.md) 查看所有的变更内容\n\n## Todo\n\n- [x] 通过 GUI 配置自选虚拟币、股票\n- [x] 涨跌幅消息通知\n\n## 致谢\n\n- [leek-fund](https://github.com/LeekHub/leek-fund)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenvy-mango%2Fcrayon-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenvy-mango%2Fcrayon-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenvy-mango%2Fcrayon-box/lists"}