feat: improve SQL query formatting and add type hints for better clarity
CI / lint-test-build (push) Failing after 53s

This commit is contained in:
2026-06-04 19:53:32 +02:00
parent c8e3daeb57
commit 8ceca2a7e4
16 changed files with 106 additions and 150 deletions
+2 -4
View File
@@ -19,12 +19,10 @@ 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])