Files
PolyTraderSharp/agentspace/analytics/parse_log.py
T
bergmandClaude Opus 4.8 475d396f80 Baseline: Ausgangszustand vor Modularisierung
Erster Commit des bestehenden monolithischen WinForms-Copytraders,
inklusive der Alt-Backups (*.bak), damit diese dauerhaft in der
Historie rekonstruierbar bleiben. Threema-Lib unter libs/ wurde
vendored (nested .git entfernt).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 13:16:16 +02:00

16 lines
799 B
Python

import json
log_path = r"J:\Softwareprojekte\PolytraderSharp\PolyTraderSharp\bin\Debug\net8.0-windows7.0\Logs\28-03-2026-Debug.log"
with open(log_path, 'r', encoding='utf-8', errors='ignore') as f:
for line in f:
if "14:15:" in line or "14:16:" in line or "14:17:" in line:
if "CLOB-PAYLOAD" in line:
try:
json_str = line.split("->")[1].strip()
payload = json.loads(json_str)
order = payload.get("order", {})
print(f"[{line[:10]}] SIDE: {order.get('side')} | MAKER: {order.get('makerAmount')} | TAKER: {order.get('takerAmount')} | TYPE: {order.get('signatureType')} | TOKEN: {str(order.get('tokenId'))[:10]}...")
except Exception as e:
pass