Add pair_trades_filename

This commit is contained in:
Matthias
2019-08-14 18:58:27 +02:00
parent 6697b677dc
commit 63e87ef85b
2 changed files with 13 additions and 0 deletions

View File

@@ -173,6 +173,12 @@ def pair_data_filename(datadir: Path, pair: str, ticker_interval: str) -> Path:
return filename
def pair_trades_filename(datadir: Path, pair: str) -> Path:
pair_s = pair.replace("/", "_")
filename = datadir.joinpath(f'{pair_s}-trades.json')
return filename
def _load_cached_data_for_updating(datadir: Path, pair: str, ticker_interval: str,
timerange: Optional[TimeRange]) -> Tuple[List[Any],
Optional[int]]: