changes some tests to use usdt values
This commit is contained in:
parent
90ad178932
commit
cad444faea
@ -301,7 +301,8 @@ def get_default_conf(testdatadir):
|
|||||||
"ETH/BTC",
|
"ETH/BTC",
|
||||||
"LTC/BTC",
|
"LTC/BTC",
|
||||||
"XRP/BTC",
|
"XRP/BTC",
|
||||||
"NEO/BTC"
|
"NEO/BTC",
|
||||||
|
"ADA/USDT"
|
||||||
],
|
],
|
||||||
"pair_blacklist": [
|
"pair_blacklist": [
|
||||||
"DOGE/BTC",
|
"DOGE/BTC",
|
||||||
@ -370,6 +371,33 @@ def ticker_sell_down():
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def ticker_usdt():
|
||||||
|
return MagicMock(return_value={
|
||||||
|
'bid': 1.99,
|
||||||
|
'ask': 2.0,
|
||||||
|
'last': 1.99,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def ticker_usdt_sell_up():
|
||||||
|
return MagicMock(return_value={
|
||||||
|
'bid': 2.19,
|
||||||
|
'ask': 2.2,
|
||||||
|
'last': 2.19,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def ticker_usdt_sell_down():
|
||||||
|
return MagicMock(return_value={
|
||||||
|
'bid': 2.01,
|
||||||
|
'ask': 2.0,
|
||||||
|
'last': 2.01,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def markets():
|
def markets():
|
||||||
return get_markets()
|
return get_markets()
|
||||||
@ -402,6 +430,31 @@ def get_markets():
|
|||||||
},
|
},
|
||||||
'info': {},
|
'info': {},
|
||||||
},
|
},
|
||||||
|
'ADA/USDT': {
|
||||||
|
'id': 'ethbtc',
|
||||||
|
'symbol': 'ADA/USDT',
|
||||||
|
'base': 'USDT',
|
||||||
|
'quote': 'ADA',
|
||||||
|
'active': True,
|
||||||
|
'precision': {
|
||||||
|
'price': 8,
|
||||||
|
'amount': 8,
|
||||||
|
'cost': 8,
|
||||||
|
},
|
||||||
|
'lot': 0.00000001,
|
||||||
|
'limits': {
|
||||||
|
'amount': {
|
||||||
|
'min': 0.01,
|
||||||
|
'max': 1000,
|
||||||
|
},
|
||||||
|
'price': 500000,
|
||||||
|
'cost': {
|
||||||
|
'min': 0.0001,
|
||||||
|
'max': 500000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'info': {},
|
||||||
|
},
|
||||||
'TKN/BTC': {
|
'TKN/BTC': {
|
||||||
'id': 'tknbtc',
|
'id': 'tknbtc',
|
||||||
'symbol': 'TKN/BTC',
|
'symbol': 'TKN/BTC',
|
||||||
@ -1814,6 +1867,22 @@ def open_trade():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="function")
|
||||||
|
def open_trade_usdt():
|
||||||
|
return Trade(
|
||||||
|
pair='ADA/USDT',
|
||||||
|
open_rate=2.0,
|
||||||
|
exchange='binance',
|
||||||
|
open_order_id='123456789',
|
||||||
|
amount=30.0,
|
||||||
|
fee_open=0.0,
|
||||||
|
fee_close=0.0,
|
||||||
|
stake_amount=60.0,
|
||||||
|
open_date=arrow.utcnow().shift(minutes=-601).datetime,
|
||||||
|
is_open=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def saved_hyperopt_results():
|
def saved_hyperopt_results():
|
||||||
hyperopt_res = [
|
hyperopt_res = [
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user