Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion full_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Drakkar-Software full requirements
OctoBot-Commons[full]==1.9.91
OctoBot-Trading[full]==2.4.235
OctoBot-Trading[full]==2.4.236
OctoBot-Evaluators[full]==1.9.9
OctoBot-Tentacles-Manager[full]==2.9.19
OctoBot-Services[full]==1.6.30
Expand Down
9 changes: 9 additions & 0 deletions octobot/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import octobot_trading.exchange_channel as exchanges_channel
import octobot_trading.enums as trading_enums
import octobot_trading.api as trading_api
import octobot_trading.personal_data as personal_data

import octobot.constants as constants
import octobot.configuration_manager as configuration_manager
Expand Down Expand Up @@ -294,6 +295,14 @@ def _filter_balance(balance: dict):
}
removed_count = len(balance) - len(filtered_balance)
return trading_api.parse_decimal_portfolio(filtered_balance, False), removed_count
elif isinstance(first_value, personal_data.Asset):
filtered_balance = {
key: values
for key, values in balance.items()
if values.total
}
removed_count = len(balance) - len(filtered_balance)
return filtered_balance, removed_count
return balance, 0


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Drakkar-Software requirements
OctoBot-Commons==1.9.91
OctoBot-Trading==2.4.235
OctoBot-Trading==2.4.236
OctoBot-Evaluators==1.9.9
OctoBot-Tentacles-Manager==2.9.19
OctoBot-Services==1.6.30
Expand Down
Loading