Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Conversation

@jmoreira-valory
Copy link
Collaborator

Update trader to stop after staking KPI met

export WXDAI_ADDRESS="0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"
export DISABLE_TRADING=false
export STOP_TRADING_IF_STAKING_KPI_MET=true
export RESET_PAUSE_DURATION=300
Copy link
Collaborator Author

@jmoreira-valory jmoreira-valory Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this admissible? (300s = 5 minutes)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want to override this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ensures that the trader waits 5 minutes before restarting the cycle, to avoid unnecessary cycles, excessive logging, etc.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would also slow down the trades though.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only affect the agents in staked services? That would be acceptable, and it can always be changed.

If it also affects the non-staked agents, then this would be unnecessary long IMO

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It affects all agents. The rational is that waits for some time before trying to go through the trading cycle. Feel free to modify with a lower value / remove it, if you find it appropriate.

Copy link
Collaborator

@dagacha dagacha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After tests confirmed it works as expected.

LGTM

@dagacha dagacha merged commit 59ab08f into develop Apr 15, 2024
@DavidMinarsch DavidMinarsch deleted the feat/update_trader_stop_trading_conditions branch April 23, 2024 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants