Skip to content

Commit

Permalink
[Ticker] properly handle exchanges with MARK_PRICE_IN_TICKER
Browse files Browse the repository at this point in the history
  • Loading branch information
techfreaque committed Feb 16, 2023
1 parent 658792e commit 937f415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octobot_trading/exchange_data/ticker/channel/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def _push_mark_price(self, symbol: str, ticker: dict):
self.channel.exchange_manager.id).get_internal_producer().push(
symbol,
decimal.Decimal(str(ticker[enums.ExchangeConstantsMarkPriceColumns.MARK_PRICE.value])),
mark_price_source=enums.MarkPriceSources.TICKER_CLOSE_PRICE.value
mark_price_source=enums.MarkPriceSources.EXCHANGE_MARK_PRICE.value
)
except Exception as e:
self.logger.exception(e, True, f"Fail to update mark price from ticker : {e}")
Expand Down

0 comments on commit 937f415

Please sign in to comment.