use pytest
This commit is contained in:
parent
df4da75535
commit
8d3a6279b2
@ -91,6 +91,7 @@ def execute_sell(trade: Trade, current_rate: float) -> None:
|
|||||||
whitelist = _CONF[trade.exchange.name.lower()]['pair_whitelist']
|
whitelist = _CONF[trade.exchange.name.lower()]['pair_whitelist']
|
||||||
|
|
||||||
profit = trade.exec_sell_order(current_rate, balance)
|
profit = trade.exec_sell_order(current_rate, balance)
|
||||||
|
if trade.pair not in whitelist:
|
||||||
whitelist.append(trade.pair)
|
whitelist.append(trade.pair)
|
||||||
message = '*{}:* Selling [{}]({}) at rate `{:f} (profit: {}%)`'.format(
|
message = '*{}:* Selling [{}]({}) at rate `{:f} (profit: {}%)`'.format(
|
||||||
trade.exchange.name,
|
trade.exchange.name,
|
||||||
|
4
setup.py
4
setup.py
@ -12,8 +12,8 @@ setup(name='freqtrade',
|
|||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
packages=['freqtrade'],
|
packages=['freqtrade'],
|
||||||
scripts=['bin/freqtrade'],
|
scripts=['bin/freqtrade'],
|
||||||
test_suite='nose.collector',
|
setup_requires=['pytest-runner'],
|
||||||
tests_require=['nose'],
|
tests_require=['pytest'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'python-bittrex==0.1.3',
|
'python-bittrex==0.1.3',
|
||||||
'SQLAlchemy==1.1.13',
|
'SQLAlchemy==1.1.13',
|
||||||
|
Loading…
Reference in New Issue
Block a user