Skip to content

Commit

Permalink
Update hummingbot/strategy/amm_arb/amm_arb.py
Browse files Browse the repository at this point in the history
Co-authored-by: vic-en <[email protected]>
  • Loading branch information
gyozajiro and vic-en authored Mar 31, 2021
1 parent 91ef5d6 commit 2ce5660
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hummingbot/strategy/amm_arb/amm_arb.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ async def format_status(self) -> str:
sell_price = await market.get_quote_price(trading_pair, False, self._order_amount)

# check for unavailable price data
buy_price = float(buy_price) if buy_price is not None else '-'
sell_price = float(sell_price) if sell_price is not None else '-'
mid_price = float((buy_price + sell_price) / 2) if '-' not in [buy_price, sell_price] else '-'
buy_price = Decimal(str(buy_price)) if buy_price is not None else '-'
sell_price = Decimal(str(sell_price)) if sell_price is not None else '-'
mid_price = ((buy_price + sell_price) / 2) if '-' not in [buy_price, sell_price] else '-'

data.append([
market.display_name,
Expand Down

0 comments on commit 2ce5660

Please sign in to comment.