Skip to content

Commit 5115f7e

Browse files
authored
Merge pull request #2606 from Drakkar-Software/dev
Dev merge
2 parents ce59237 + 1a5b616 commit 5115f7e

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
*It is strongly advised to perform an update of your tentacles after updating OctoBot. (start.py tentacles --install --all)*
88

9+
## [1.0.10] - 2024-04-19
10+
### Fixed
11+
- [Tentacles download] Fix a rare issue related to SSL certificates when downloading tentacles
12+
- [DeathAndGoldenCrossEvaluator] Now only trigger right after crosses
13+
914
## [1.0.9] - 2024-04-18
1015
### Added
1116
- [DigitalOcean] Added in marketplace and handle one click deployment

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OctoBot [1.0.9](https://octobot.click/gh-changelog)
1+
# OctoBot [1.0.10](https://octobot.click/gh-changelog)
22
[![PyPI](https://img.shields.io/pypi/v/OctoBot.svg?logo=pypi)](https://octobot.click/gh-pypi)
33
[![Downloads](https://pepy.tech/badge/octobot/month)](https://pepy.tech/project/octobot)
44
[![Dockerhub](https://img.shields.io/docker/pulls/drakkarsoftware/octobot.svg?logo=docker)](https://octobot.click/gh-dockerhub)

octobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
PROJECT_NAME = "OctoBot"
1818
AUTHOR = "Drakkar-Software"
19-
VERSION = "1.0.9" # major.minor.revision
19+
VERSION = "1.0.10" # major.minor.revision
2020
LONG_VERSION = f"{VERSION}"

octobot/commands.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import octobot_commons.logging as logging
2727
import octobot_commons.constants as commons_constants
2828
import octobot_commons.errors as commons_errors
29+
import octobot_commons.aiohttp_util as aiohttp_util
2930

3031
import octobot_tentacles_manager.api as tentacles_manager_api
3132
import octobot_tentacles_manager.cli as tentacles_manager_cli
3233

33-
import octobot
3434
import octobot.api.strategy_optimizer as strategy_optimizer_api
3535
import octobot.logger as octobot_logger
3636
import octobot.constants as constants
@@ -142,7 +142,9 @@ async def install_or_update_tentacles(config):
142142
async def install_all_tentacles(tentacles_url=None):
143143
if tentacles_url is None:
144144
tentacles_url = configuration_manager.get_default_tentacles_url()
145-
async with aiohttp.ClientSession() as aiohttp_session:
145+
async with aiohttp_util.ssl_fallback_aiohttp_client_session(
146+
commons_constants.KNOWN_POTENTIALLY_SSL_FAILED_REQUIRED_URL
147+
) as aiohttp_session:
146148
for url in [tentacles_url] + (
147149
constants.ADDITIONAL_TENTACLES_PACKAGE_URL.split(constants.URL_SEPARATOR)
148150
if constants.ADDITIONAL_TENTACLES_PACKAGE_URL else []

octobot/octobot.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import asyncio
1717
import time
1818
import uuid
19-
import aiohttp
2019

2120
import octobot_commons.constants as commons_constants
2221
import octobot_commons.enums as commons_enums
@@ -27,6 +26,7 @@
2726
import octobot_commons.tree as commons_tree
2827
import octobot_commons.os_clock_sync as os_clock_sync
2928
import octobot_commons.system_resources_watcher as system_resources_watcher
29+
import octobot_commons.aiohttp_util as aiohttp_util
3030

3131
import octobot_services.api as service_api
3232
import octobot_trading.api as trading_api
@@ -222,6 +222,7 @@ async def stop(self):
222222
self.logger.info("Stopped, now shutting down.")
223223

224224
async def _start_tools_tasks(self):
225+
await self._init_aiohttp_session()
225226
self._init_community()
226227
await self.task_manager.start_tools_tasks()
227228

@@ -280,7 +281,11 @@ def run_in_main_asyncio_loop(self, coroutine, log_exceptions=True,
280281
def set_watcher(self, watcher):
281282
self.task_manager.watcher = watcher
282283

283-
def get_aiohttp_session(self):
284+
async def _init_aiohttp_session(self):
284285
if self._aiohttp_session is None:
285-
self._aiohttp_session = aiohttp.ClientSession()
286+
self._aiohttp_session = await aiohttp_util.get_ssl_fallback_aiohttp_client_session(
287+
commons_constants.KNOWN_POTENTIALLY_SSL_FAILED_REQUIRED_URL
288+
)
289+
290+
def get_aiohttp_session(self):
286291
return self._aiohttp_session

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Drakkar-Software requirements
2-
OctoBot-Commons==1.9.43
2+
OctoBot-Commons==1.9.44
33
OctoBot-Trading==2.4.78
44
OctoBot-Evaluators==1.9.5
5-
OctoBot-Tentacles-Manager==2.9.10
5+
OctoBot-Tentacles-Manager==2.9.11
66
OctoBot-Services==1.6.13
77
OctoBot-Backtesting==1.9.7
88
Async-Channel==2.2.1

0 commit comments

Comments
 (0)