feat(cli): preserve optional full trade timestamps - #4
Merged
Merged
Conversation
公开交易 CLI 现在支持可选的 ISO 执行时间,并原样保存到现有 traded_at 字段;没有可靠时间时仍可只使用日期。日期筛选、行情查询、交易列表和 review 输出保持向后兼容。 验证: - pnpm test - pnpm typecheck - pnpm build - git diff --check - CLI buy/sell --help smoke test 范围:仅公开 core/CLI、测试和文档;不包含个人数据、截图或私有脚本。
Disable the normal price-deviation warning in timestamp persistence tests so CI verifies timestamp behavior without depending on the runner's live historical quote.
Commander exposes `--no-quote` and `--no-warn` as `quote=false` and `warn=false`. Read those canonical option fields so non-interactive trade tests and callers bypass market lookup/warnings as documented.
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.
Summary
--traded-at <ISO timestamp>to publictrade buyandtrade sell.transactions.traded_atfield.--dateworkflows valid; derive quote lookup date from--traded-atonly when needed.Example
Test plan
pnpm testpnpm typecheckpnpm buildgit diff --checkbuyandsellhelp outputThis PR contains only public code, tests, and public documentation. It does not include personal databases, screenshots, or private operator scripts.