CryptoTickerPlus for VS Code
English | 中文说明
English
A lightweight, highly customizable cryptocurrency price ticker for the VS Code status bar.
Features
- Real-time Status Bar Ticker: Displays up-to-date cryptocurrency prices in the VS Code status bar.
- Custom Timeframes: Track price changes over different intervals (1m, 15m, 1h, 1d, etc.) instead of just 24h.
- Custom Format: Freely define how the ticker looks using placeholders like
{symbol}, {price}, {change}, and {icon}.
- Click to Open Chart: Click any ticker to open the TradingView chart page directly in VS Code.
- Boss Key (Stealth Mode): Quickly hide/show the ticker using the
Ctrl+Shift+H (or Cmd+Shift+H) shortcut.
- Monochrome Mode: Disable the red/green trend colors to blend seamlessly into your editor.
- Symbol Aliases: Rename symbols to look like code metrics (e.g. rename
BTCUSDT to Build Task).
- Price Alerts: Set upper and lower bounds. If the price crosses them, a discrete VS Code notification will alert you.
- Multi-language Support: Automatically adapts to English or Simplified Chinese based on your VS Code display language.
Extension Settings
This extension contributes the following settings that can be customized in your settings.json:
| Setting Key |
Type |
Default Value |
Description |
cryptoTicker.symbols |
array |
["BTCUSDT", "ETHUSDT", "SOLUSDT"] |
List of cryptocurrency trading pairs you want to track (e.g. BTCUSDT, ETHUSDT). Must match Binance symbol format. |
cryptoTicker.format |
string |
"{symbol} {price} {icon}" |
Customize how the ticker is displayed. Available placeholders: {symbol}, {price}, {change}, {icon}. |
cryptoTicker.interval |
string |
"1d" |
Timeframe window used to calculate the price change and trend direction. Supported values: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w. |
cryptoTicker.refreshInterval |
number |
3000 |
How often the extension fetches new prices from the Binance API, in milliseconds. |
cryptoTicker.monochrome |
boolean |
false |
Enable Stealth Mode. If true, red/green trend colors and arrow icons are hidden, making the ticker blend into the default status bar text. |
cryptoTicker.alignment |
string |
"left" |
Status bar alignment. Set to "left" or "right". |
cryptoTicker.upColor |
string |
"" |
Custom hex color for price increase (e.g. #00FF00). Overrides default theme colors. |
cryptoTicker.downColor |
string |
"" |
Custom hex color for price decrease (e.g. #FF0000). Overrides default theme colors. |
cryptoTicker.enableClickToOpenChart |
boolean |
false |
Enable click on status bar items to open TradingView chart in editor. |
cryptoTicker.aliases |
object |
{} |
A mapping to rename symbols for disguise. Example: {"BTCUSDT": "Build Task"} will show "Build Task" instead of "BTCUSDT". |
cryptoTicker.alerts |
object |
{} |
Define upper (high) and lower (low) price boundaries. A VS Code warning notification will pop up if the price crosses these bounds. Example: {"BTCUSDT": {"high": 75000, "low": 60000}}. |
Example settings.json
{
"cryptoTicker.symbols": ["BTCUSDT", "ETHUSDT"],
"cryptoTicker.format": "{symbol}: {price} ({change}) {icon}",
"cryptoTicker.interval": "15m",
"cryptoTicker.refreshInterval": 5000,
"cryptoTicker.monochrome": true,
"cryptoTicker.aliases": {
"BTCUSDT": "Build",
"ETHUSDT": "Heap"
},
"cryptoTicker.alerts": {
"BTCUSDT": {
"high": 75000,
"low": 60000
}
}
}
Commands
Crypto: Refresh Prices (Manually refresh the prices)
Crypto: Toggle Boss Key (Show/Hide) (Shortcut: Ctrl+Shift+H)
中文说明
在 VS Code 状态栏展示加密货币实时行情的轻量级、高度可定制插件。
核心功能
- 状态栏实时行情:在 VS Code 状态栏展示最新的加密货币价格。
- 自定义时间窗口:支持查看不同时间段(1分钟、15分钟、1小时、1天等)的涨跌幅,不再局限于 24 小时。
- 自定义显示格式:通过
{symbol}、{price}、{change} 和 {icon} 等占位符,自由定义行情在状态栏的展示样式。
- 点击打开图表:点击状态栏的任意币种,即可在 VS Code 内打开对应的 TradingView 图表页面。
- 老板键 (一键隐藏):使用
Ctrl+Shift+H(Mac: Cmd+Shift+H)快捷键,瞬间隐藏/显示所有行情。
- 伪装模式 (Monochrome):关闭红绿色的涨跌提示,让行情数据完美融入编辑器原生的灰色字体中。
- 别名替换:可以将币种名称伪装成代码指标(例如将
BTCUSDT 重命名为 Build Task)。
- 价格预警:设置价格的上下限阈值。当价格突破该区间时,VS Code 会在右下角弹出隐蔽的通知提醒你。
- 多语言支持:根据 VS Code 界面语言自动适配中文或英文。
插件配置项
你可以通过 VS Code 的设置面板或直接修改 settings.json 来配置本插件:
| 配置键名 |
类型 |
默认值 |
说明 |
cryptoTicker.symbols |
array |
["BTCUSDT", "ETHUSDT", "SOLUSDT"] |
你想关注的交易对列表(如 BTCUSDT, ETHUSDT)。必须符合 Binance 交易对格式。 |
cryptoTicker.format |
string |
"{symbol} {price} {icon}" |
自定义状态栏展示格式。可用变量:{symbol}, {price}, {change}, {icon}。 |
cryptoTicker.interval |
string |
"1d" |
计算涨跌幅的时间窗口。支持的值:1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w。 |
cryptoTicker.refreshInterval |
number |
3000 |
轮询 Binance API 获取最新价格的间隔时间(毫秒)。 |
cryptoTicker.monochrome |
boolean |
false |
开启伪装模式。开启后将隐藏涨跌的红绿颜色和箭头图标,使文本看起来像普通的编辑器状态。 |
cryptoTicker.alignment |
string |
"left" |
状态栏对齐方式。可设置为 "left"(左侧)或 "right"(右侧)。 |
cryptoTicker.upColor |
string |
"" |
自定义上涨颜色(例如 #00FF00),设置后将覆盖默认颜色。 |
cryptoTicker.downColor |
string |
"" |
自定义下跌颜色(例如 #FF0000),设置后将覆盖默认颜色。 |
cryptoTicker.enableClickToOpenChart |
boolean |
false |
是否允许点击状态栏币种打开 TradingView 图表(默认关闭)。 |
cryptoTicker.aliases |
object |
{} |
别名映射字典。例如 {"BTCUSDT": "Build Task"} 会在状态栏显示 "Build Task" 而不是 "BTCUSDT"。 |
cryptoTicker.alerts |
object |
{} |
价格预警的上下限(high 和 low)。当价格越界时会弹出警告。例如 {"BTCUSDT": {"high": 75000, "low": 60000}}。 |
settings.json 配置示例
{
"cryptoTicker.symbols": ["BTCUSDT", "ETHUSDT"],
"cryptoTicker.format": "{symbol}: {price} ({change}) {icon}",
"cryptoTicker.interval": "15m",
"cryptoTicker.refreshInterval": 5000,
"cryptoTicker.monochrome": true,
"cryptoTicker.aliases": {
"BTCUSDT": "Build",
"ETHUSDT": "Heap"
},
"cryptoTicker.alerts": {
"BTCUSDT": {
"high": 75000,
"low": 60000
}
}
}
快捷命令
Crypto: 手动刷新行情
Crypto: 切换老板键 (隐藏/显示行情)(快捷键:Ctrl+Shift+H)
| |