fix exchange name in currency availabily checks
This commit is contained in:
parent
16b0a0aaab
commit
1714f4483f
@ -49,7 +49,7 @@ def init(config: dict) -> None:
|
|||||||
markets = get_markets()
|
markets = get_markets()
|
||||||
for pair in config[EXCHANGE.name.lower()]['pair_whitelist']:
|
for pair in config[EXCHANGE.name.lower()]['pair_whitelist']:
|
||||||
if pair not in markets:
|
if pair not in markets:
|
||||||
raise RuntimeError('Pair {} is not available at Poloniex'.format(pair))
|
raise RuntimeError('Pair {} is not available at {}'.format(pair,EXCHANGE.name.lower()))
|
||||||
|
|
||||||
|
|
||||||
def buy(pair: str, rate: float, amount: float) -> str:
|
def buy(pair: str, rate: float, amount: float) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user