feat(dashboard): Issue #156 MVP format with comfy-table#157
Merged
Conversation
- New format_dashboard_mvp() function using comfy-table - --compact flag to skip RECENT TRADES section - Output format matches Issue #156 spec: - Header with refresh time - TICKERS row with price changes - ACCOUNT row - POSITIONS section - ORDER BOOK + ACTIVE ORDERS - RECENT TRADES (optional with --compact) Usage: standx dashboard standx dashboard --compact standx dashboard --symbol BTCUSDT standx dashboard --watch 5
- Fetch recent trades from API and display in MVP format - Fix time format (HH:MM:SS from ISO timestamp) - Add trades to DashboardSnapshot model
Use is_buyer_taker field to determine trade direction: - is_buyer_taker=true → BUY - is_buyer_taker=false → SELL
- Fetch order book via get_depth API - Show top 3 asks and bids in ORDER BOOK section - Format: price (qty)
…ut formatting - Consolidated dashboard command handling by removing the DashboardCommands enum. - Enhanced the dashboard output format to dynamically adjust column width based on terminal size. - Added support for displaying 24h change percentage in the dashboard. - Improved the handling of symbol filtering and error management in dashboard data fetching. - Updated the dashboard display to show order book and active orders more clearly. This refactor aligns with the MVP format and addresses issues related to user experience and data presentation.
- Updated watch mode to default to a 5-second refresh interval when no value is provided. - Improved dashboard output functions to return rendered strings instead of void, allowing for better handling of output. - Adjusted time format in dashboard header to include seconds for improved clarity. - Refactored dashboard and portfolio output functions to streamline data rendering and error handling. These changes enhance user experience and ensure more consistent output across commands.
- Updated dashboard command to utilize WebSocket for real-time trade updates, improving responsiveness. - Introduced a new function to format trade timestamps, ensuring consistent display of trade times. - Refactored dashboard output to prioritize WebSocket-fed trades over API polling, enhancing performance. - Improved overall structure of trade data handling within the dashboard. These changes significantly enhance the user experience by providing timely trade information and clearer output formatting.
…ting - Changed agent model from claude-4.6-opus-high-thinking to gpt-5.3-codex for improved performance. - Introduced a new formatting function for account balance, cross-available funds, and 24h PnL to ensure consistent decimal representation. - Updated dashboard output to utilize the new formatting function, enhancing clarity in financial data presentation. These changes improve the accuracy and readability of account information in the dashboard.
- Modified the time formatting functions to convert timestamps to the local timezone instead of UTC, enhancing the relevance of displayed times for users. - Updated the dashboard output to reflect the current local time, improving user experience by providing contextually accurate time information. These changes ensure that all time-related outputs are more user-friendly and aligned with local settings.
- Updated the order display in the dashboard to include a more descriptive representation of order quantities, showing "All" for zero quantities. - Improved the formatting of order side information for better clarity in the output. These changes enhance the readability and user experience of the dashboard's order information.
…clarity - Moved the display of POSITIONS and ACTIVE ORDERS to the bottom of the dashboard output for better logical flow. - Introduced RECENT TRADES section to provide timely trade information, enhancing user experience. - Updated formatting for clearer presentation of trade details and order information. These changes improve the overall structure and readability of the dashboard output.
- Changed the label for the refresh time in the dashboard output from "refresh" to "REFRESH" for improved visibility and emphasis. - This minor adjustment enhances the clarity of the dashboard display, ensuring users can easily identify the refresh time.
- Updated the dashboard output to improve the formatting of order book and recent trades sections, ensuring clearer presentation of data. - Introduced a two-column layout for order book and recent trades when space allows, enhancing readability. - Refactored functions for truncating text and formatting prices and quantities, improving overall output consistency. These changes enhance the user experience by providing a more organized and visually appealing dashboard display.
- Implemented a mechanism to allow users to stop watch mode gracefully using Ctrl+C, improving user experience. - Updated the rendering logic to ensure the output is displayed correctly before exiting, reducing flicker during updates. These changes enhance the usability of the watch mode by providing a clear and responsive way to terminate the process.
- Updated the dashboard command to fetch recent trades with an increased limit of 7, enhancing the data available for display. - Refactored the portfolio command to improve readability by formatting the command initialization. - Streamlined the dashboard output formatting for better clarity and consistency in displaying trade and portfolio information. These changes enhance the overall user experience by providing more comprehensive data and improving code readability.
4 tasks
- Changed the dashboard output to display unrealized profit and loss (uPnL) instead of 24-hour profit and loss (PnL) for better clarity in financial reporting. - This adjustment enhances the accuracy of account information presented to users, ensuring a more informative dashboard experience.
- Updated the dashboard output to include realized profit and loss (rPnL) alongside total balance and available funds for a more comprehensive financial overview. - This change improves the clarity and usefulness of account information presented to users, ensuring they have a complete understanding of their financial status.
- Changed the dashboard title to dynamically include the current version of the StandX CLI, enhancing user awareness of the software version in use. - This update improves the overall user experience by providing relevant version information directly within the dashboard display.
wjllance
approved these changes
Mar 4, 2026
Owner
🧪 本地编译测试结果测试环境
检查结果
测试详情单元测试: 68 passed
集成测试: 13 passed
E2E 测试: 2 passed, 2 ignored
警告汇总(非阻塞)共 23 个警告,均为以下类型:
这些警告不影响功能,可在后续迭代中清理。 结论✅ PR 编译测试通过,可以合并 代码结构良好,测试覆盖完整,新增依赖 和 编译正常。 |
Owner
🖥️ Dashboard 手动测试结果测试命令及输出1. ✅ Dashboard 基础命令$ standx dashboard --symbols BTC-USD输出结果:
2. ✅ Dashboard 多币种 + 紧凑模式$ standx dashboard --symbols BTC-USD,ETH-USD --compact输出结果:
3. ✅ Portfolio 命令$ standx portfolio输出结果:
4. ✅ Dry-run 模式$ standx dashboard --dry-run输出结果:
界面评估
发现的问题
结论✅ Dashboard 功能工作正常,输出格式正确
|
wjllance
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Update version to 0.7.0-rc.1 - Add CHANGELOG entries for Dashboard MVP (#157) Highlights: - Complete dashboard redesign with comfy-table formatting - Real-time order book depth display - Recent trades panel with BUY/SELL activity - Enhanced watch mode with graceful exit handling - Local timezone support for timestamps
wjllance
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Update version to 0.7.0-rc.1 (Cargo.toml, version.json) - Add CHANGELOG entries for Dashboard MVP (#157) - Update Skill metadata (openclaw/SKILL.md, clawhub-publish/SKILL.md) - Create RELEASE_NOTES_v0.7.0-rc.1.md - Remove old clawhub metadata files (_meta.json, package.json) Highlights: - Complete dashboard redesign with comfy-table formatting - Real-time order book depth display - Recent trades panel with BUY/SELL activity - Enhanced watch mode with graceful exit handling - Local timezone support for timestamps - Command short aliases support
wjllance
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Update version to 0.7.0-rc.1 (Cargo.toml, version.json) - Add CHANGELOG entries for Dashboard MVP (#157) - Update Skill metadata (openclaw/SKILL.md, clawhub-publish/SKILL.md) - Create RELEASE_NOTES_v0.7.0-rc.1.md - Remove old clawhub metadata files (_meta.json, package.json) Highlights: - Complete dashboard redesign with comfy-table formatting - Real-time order book depth display - Recent trades panel with BUY/SELL activity - Enhanced watch mode with graceful exit handling - Local timezone support for timestamps - Command short aliases support
wjllance
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Update version to 0.7.0-rc.1 (Cargo.toml, version.json) - Add CHANGELOG entries for Dashboard MVP (#157) - Update Skill metadata (openclaw/SKILL.md, clawhub-publish/SKILL.md) - Create RELEASE_NOTES_v0.7.0-rc.1.md - Remove old clawhub metadata files (_meta.json, package.json) Highlights: - Complete dashboard redesign with comfy-table formatting - Real-time order book depth display - Recent trades panel with BUY/SELL activity - Enhanced watch mode with graceful exit handling - Local timezone support for timestamps - Command short aliases support
wjllance
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Update version to 0.7.0-rc.1 (Cargo.toml, version.json) - Add CHANGELOG entries for Dashboard MVP (#157) - Update Skill metadata (openclaw/SKILL.md, clawhub-publish/SKILL.md) - Create RELEASE_NOTES_v0.7.0-rc.1.md - Remove old clawhub metadata files (_meta.json, package.json) Highlights: - Complete dashboard redesign with comfy-table formatting - Real-time order book depth display - Recent trades panel with BUY/SELL activity - Enhanced watch mode with graceful exit handling - Local timezone support for timestamps - Command short aliases support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usage:
standx dashboard
standx dashboard --compact
standx dashboard --symbol BTCUSDT
standx dashboard --watch 5