kraken: `norm_trade()` now much accept an optional symcache

account_tests
Tyler Goodlet 2023-07-26 12:40:58 -04:00
parent 4436342d33
commit c00cf41541
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ from piker.accounting import (
# MktPair, # MktPair,
) )
from piker.data import ( from piker.data import (
# SymbologyCache, SymbologyCache,
Struct, Struct,
) )
from .api import ( from .api import (
@ -55,6 +55,7 @@ def norm_trade(
# processing from `.accounting`, this will be the table loaded # processing from `.accounting`, this will be the table loaded
# into `SymbologyCache.pairs`. # into `SymbologyCache.pairs`.
pairs: dict[str, Struct], pairs: dict[str, Struct],
symcache: SymbologyCache | None = None,
) -> Transaction: ) -> Transaction: