Skip to content

Commit

Permalink
Merge pull request hummingbot#6976 from cCurious/development
Browse files Browse the repository at this point in the history
fix/strategy base on directional_strategy_base uses status command will occured error "position_executer has no attritube 'position_config' "
  • Loading branch information
nikspz authored Apr 26, 2024
2 parents a04d8d2 + 9fd264e commit da7c676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hummingbot/strategy/directional_strategy_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def format_status(self) -> str:
if len(self.stored_executors) > 0:
lines.extend(["\n################################## Closed Executors ##################################"])
for executor in self.stored_executors:
lines.extend([f"|Signal id: {executor.position_config.timestamp}"])
lines.extend([f"|Signal id: {executor.config.timestamp}"])
lines.extend(executor.to_format_status())
lines.extend([
"-----------------------------------------------------------------------------------------------------------"])
Expand All @@ -217,7 +217,7 @@ def format_status(self) -> str:
lines.extend(["\n################################## Active Executors ##################################"])

for executor in self.active_executors:
lines.extend([f"|Signal id: {executor.position_config.timestamp}"])
lines.extend([f"|Signal id: {executor.config.timestamp}"])
lines.extend(executor.to_format_status())
if self.all_candles_ready:
lines.extend(["\n################################## Market Data ##################################\n"])
Expand Down

0 comments on commit da7c676

Please sign in to comment.