agent0.core.base.policies.no_action

Policy that takes no actions.

Classes

NoActionPolicy

NoOp class policy

Module Contents

class agent0.core.base.policies.no_action.NoActionPolicy(policy_config: Config)

Bases: agent0.core.base.policies.base.BasePolicy[agent0.core.base.policies.base.MarketInterface, agent0.core.base.policies.base.Wallet]

NoOp class policy

action(interface: agent0.core.base.policies.base.MarketInterface, wallet: agent0.core.base.policies.base.Wallet) tuple[list[agent0.core.base.types.Trade], bool]

Returns an empty list, indicating no action

Parameters:
  • interface (MarketInterface) – The trading market interface.

  • wallet (Wallet) – The agent’s wallet.

Returns:

A tuple where the first element is a list of actions, and the second element defines if the agent is done trading

Return type:

tuple[list[MarketAction], bool]

classmethod description() str

Describe the policy in a user friendly manner that allows newcomers to decide whether to use it.

Returns:

A description of the policy.

Return type:

str