Skip to content

Commit ea9e85b

Browse files
committed
[Ticker] properly handle exchanges with MARK_PRICE_IN_TICKER
1 parent b15917e commit ea9e85b

File tree

1 file changed

+1
-1
lines changed
  • octobot_trading/exchange_data/ticker/channel

1 file changed

+1
-1
lines changed

octobot_trading/exchange_data/ticker/channel/ticker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def _push_mark_price(self, symbol: str, ticker: dict):
103103
self.channel.exchange_manager.id).get_internal_producer().push(
104104
symbol,
105105
decimal.Decimal(str(ticker[enums.ExchangeConstantsMarkPriceColumns.MARK_PRICE.value])),
106-
mark_price_source=enums.MarkPriceSources.TICKER_CLOSE_PRICE.value
106+
mark_price_source=enums.MarkPriceSources.EXCHANGE_MARK_PRICE.value
107107
)
108108
except Exception as e:
109109
self.logger.exception(e, True, f"Fail to update mark price from ticker : {e}")

0 commit comments

Comments
 (0)