feat: split audit logs into live/dryrun subdirs, add catlog --dry-run, list all kline intervals

- Write live trades to logs/live/ and dry-run trades to logs/dryrun/
- Add -d/--dry-run flag to catlog to read dry-run audit logs
- List all 16 Binance kline interval options in --help and docs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 10:27:22 +08:00
parent e37993c8b5
commit cf26a3dd3a
5 changed files with 31 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ class TradeServiceTestCase(unittest.TestCase):
def test_spot_market_buy_dry_run_does_not_call_client(self):
events = []
with patch.object(
trade_service, "audit_event", side_effect=lambda event, payload: events.append((event, payload))
trade_service, "audit_event", side_effect=lambda event, payload, **kwargs: events.append((event, payload))
):
client = FakeSpotClient()
payload = trade_service.execute_spot_trade(