refactor: improve SQL query formatting and enhance readability across multiple files
CI / lint-test-build (push) Failing after 56s

This commit is contained in:
2026-06-04 20:16:58 +02:00
parent 8ceca2a7e4
commit 170f59eb89
10 changed files with 127 additions and 67 deletions
+4 -2
View File
@@ -19,10 +19,12 @@ def _resolve_fee_rate(fee_rate: float | None, db_path: str | None = None) -> flo
if db_path is not None:
try:
conn = duckdb.connect(db_path)
row = conn.execute("""
row = conn.execute(
"""
SELECT maker_fee FROM kraken_account_snapshots
ORDER BY snapshot_at DESC LIMIT 1
""").fetchone()
"""
).fetchone()
conn.close()
if row is not None and row[0] is not None:
return float(row[0])