Rename parameters from pair to curr
This commit is contained in:
parent
40fe2d2c16
commit
6c2415d32f
@ -270,14 +270,14 @@ class Exchange(object):
|
|||||||
f'Pair {pair} is not available on {self.name}. '
|
f'Pair {pair} is not available on {self.name}. '
|
||||||
f'Please remove {pair} from your whitelist.')
|
f'Please remove {pair} from your whitelist.')
|
||||||
|
|
||||||
def get_valid_pair_combination(self, paira, pairb) -> str:
|
def get_valid_pair_combination(self, curr_1, curr_2) -> str:
|
||||||
"""
|
"""
|
||||||
Get valid combination of paira and pairb by trying both combinations.
|
Get valid pair combination of curr_1 and curr_2 by trying both combinations.
|
||||||
"""
|
"""
|
||||||
for pair in [f"{paira}/{pairb}", f"{pairb}/{paira}"]:
|
for pair in [f"{curr_1}/{curr_2}", f"{curr_2}/{curr_1}"]:
|
||||||
if pair in self.markets and self.markets[pair].get('active'):
|
if pair in self.markets and self.markets[pair].get('active'):
|
||||||
return pair
|
return pair
|
||||||
raise DependencyException(f"Could not combine {paira} and {pairb} to get a valid pair.")
|
raise DependencyException(f"Could not combine {curr_1} and {curr_2} to get a valid pair.")
|
||||||
|
|
||||||
def validate_timeframes(self, timeframe: List[str]) -> None:
|
def validate_timeframes(self, timeframe: List[str]) -> None:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user