Binance Watcher - VS Code Extension
Real-time display of Binance trading pairs in VS Code status bar
简体中文 | English
Why I Made This
After searching through the VS Code marketplace, I couldn't find any good Binance-related extensions. So I decided to create one myself. The development was mostly AI-assisted, so if there are issues with the code, please contact me or create an issue. I'll update the extension when I have time.
Features
- Real-time display of Binance cryptocurrency prices in VS Code status bar
- Customizable trading pairs list with aliases
- Display price, 24-hour price change percentage, and volume
- Automatic price and quantity formatting based on Binance trading pair precision rules
- Using tickSize for price precision
- Using stepSize for quantity precision
- Price changes indicated with different colors
- Customizable display options for arrows and percentages
- Manual data refresh support
- Toggle visibility in status bar
- Configurable status bar position
Installation
- Search for "Binance Watcher" in the VS Code extensions panel
- Click Install
- Restart VS Code
How to Use
After installation, the extension will automatically display real-time price information for default trading pairs (BTCUSDT and ETHUSDT) on the right side of the VS Code status bar.
Configuration Options
You can customize the following settings in VS Code:
Available Commands
In the VS Code command palette (Ctrl+Shift+P / Cmd+Shift+P), you can use the following commands:
Binance Watcher: Refresh Data
- Manually refresh trading pair data
Binance Watcher: Toggle Visibility
- Toggle the display of status bar information
Trading Pair Alias Configuration Example
You can set more intuitive aliases for trading pairs to display in the status bar:
"binanceWatcher.symbolsConfigs": [
{
"symbol": "BTCUSDT",
"alias": "Bitcoin"
},
{
"symbol": "ETHUSDT",
"alias": "Ethereum"
},
{
"symbol": "BNBUSDT",
"alias": "BNB"
}
]
Technical Details
- Uses Binance official WebSocket API for real-time data
- Obtains and applies correct trading pair precision rules via Exchange Info API
- No API key required, uses public data interfaces
- Developed with TypeScript for good type support
Support the Project
- If this extension is useful to you, consider supporting its development.
License
MIT