Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit ebed5e0

Browse files
committed
[PositionsUpdater] Fix should_run check
1 parent 7f86f09 commit ebed5e0

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.5.10] - 2026-01-29
8+
### Fixed
9+
[PositionsUpdater] Missing is_option is should_run check
10+
711
## [2.5.9] - 2026-01-29
812
### Fixed
913
[PositionValueHolder] Fix futures get_holdings_ratio position margin handling

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OctoBot-Trading [2.5.9](https://github.com/Drakkar-Software/OctoBot-Trading/blob/master/CHANGELOG.md)
1+
# OctoBot-Trading [2.5.10](https://github.com/Drakkar-Software/OctoBot-Trading/blob/master/CHANGELOG.md)
22
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/903b6b22bceb4661b608a86fea655f69)](https://app.codacy.com/gh/Drakkar-Software/OctoBot-Trading?utm_source=github.com&utm_medium=referral&utm_content=Drakkar-Software/OctoBot-Trading&utm_campaign=Badge_Grade_Dashboard)
33
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Trading.svg)](https://pypi.python.org/pypi/OctoBot-Trading/)
44
[![Coverage Status](https://coveralls.io/repos/github/Drakkar-Software/OctoBot-Trading/badge.svg?branch=master)](https://coveralls.io/github/Drakkar-Software/OctoBot-Trading?branch=master)

octobot_trading/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# License along with this library.
1616

1717
PROJECT_NAME = "OctoBot-Trading"
18-
VERSION = "2.5.9" # major.minor.revision
18+
VERSION = "2.5.10" # major.minor.revision

octobot_trading/personal_data/portfolios/portfolio_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ async def resolve_pending_portfolio_update_events_if_any(self):
407407
f"{self.pending_portfolio_update_events}"
408408
)
409409
else:
410-
self.logger.info("No pending portfolio update events: stopping expected portfolio update checker")
410+
self.logger.debug("No pending portfolio update events: stopping expected portfolio update checker")
411411
await self.stop_expected_portfolio_update_checker()
412412

413413
def has_pending_portfolio_update_events(self) -> bool:

octobot_trading/personal_data/positions/channel/positions_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def fetch_and_push(self):
129129
await asyncio.sleep(self.TIME_BETWEEN_POSITIONS_REFRESH)
130130

131131
def _should_run(self):
132-
return self.channel.exchange_manager.is_future
132+
return self.channel.exchange_manager.is_future or self.channel.exchange_manager.is_option
133133

134134
def _is_relevant_position(self, position_dict):
135135
return position_dict and position_dict.get(enums.ExchangeConstantsPositionColumns.SYMBOL.value, None) \

0 commit comments

Comments
 (0)