Skip to content

Commit

Permalink
default refresh TRUE on get_buy_rate and get_sell_Rate
Browse files Browse the repository at this point in the history
  • Loading branch information
yazeed committed Feb 11, 2020
1 parent fc29564 commit 4fedf1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def enter_positions(self) -> int:

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
Expand Down Expand Up @@ -615,7 +615,7 @@ def exit_positions(self, trades: List[Any]) -> int:

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
Expand Down

0 comments on commit 4fedf1e

Please sign in to comment.