default refresh TRUE on get_buy_rate and get_sell_Rate

This commit is contained in:
Yazeed Al Oyoun 2020-02-11 16:05:44 +01:00
parent fc29564974
commit 4fedf1e564

View File

@ -234,7 +234,7 @@ class FreqtradeBot:
return trades_created
def get_buy_rate(self, pair: str, refresh: bool = False, tick: Dict = None) -> float:
def get_buy_rate(self, pair: str, refresh: bool = True, tick: Dict = None) -> float:
"""
Calculates bid target between current ask price and last price
:return: float: Price
@ -615,7 +615,7 @@ class FreqtradeBot:
return trades_closed
def get_sell_rate(self, pair: str, refresh: bool = False) -> float:
def get_sell_rate(self, pair: str, refresh: bool = True) -> float:
"""
Get sell rate - either using get-ticker bid or first bid based on orderbook
The orderbook portion is only used for rpc messaging, which would otherwise fail