Skip to content

Commit 34157b7

Browse files
Neal Chambersmacanudo527
Neal Chambers
authored andcommitted
Correct Comments
1 parent a9c2504 commit 34157b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dali/abstract_ccxt_pair_converter_plugin.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1060,17 +1060,17 @@ def _process_alternative_markets(
10601060
alternative_market = alt_markets[asset]
10611061

10621062
if already_optimized[asset] != current_neighbors and alternative_market in already_optimized[asset]:
1063-
# If all the neighbors are padding, delete the asset if an alternative market exists
1063+
# If all the neighbors are padding, delete the asset if an alternative market exists.
10641064
if all(volume == PADDING_VOLUME for _, volume in neighbors.items()):
10651065
self._logger.debug("Deleting Padding %s with %s", asset, neighbors.keys())
10661066
timestamp_assets_to_delete.setdefault(timestamp, []).append(asset)
10671067
else:
10681068
deletable_market[asset] = alternative_market
10691069
elif asset in deletable_market and deletable_market[asset] == current_neighbors[0]:
10701070
self._logger.debug("Deleting alternative market for %s at %s", asset, timestamp)
1071-
# Note this deletes the asset from the snapshot and all its neighbors not just the alternative market
1072-
# This will work in most cases, but if the asset has multiple alternative markets, it will delete all of them
1073-
# Currently there are no assets with multiple alternative markets
1071+
# Note this deletes the asset from the snapshot and all its neighbors not just the alternative market.
1072+
# This will work in most cases, but if the asset has multiple alternative markets, it will delete all of them.
1073+
# Currently there are no assets with multiple alternative markets.
10741074
timestamp_assets_to_delete.setdefault(timestamp, []).append(asset)
10751075

10761076
# isolated for testing

0 commit comments

Comments
 (0)