agent0.core.hyperdrive.policies.zoo

Policies for expert system trading bots.

Classes

PolicyZoo

All policies in agent0.

Module Contents

class agent0.core.hyperdrive.policies.zoo.PolicyZoo

Bases: NamedTuple

All policies in agent0.

random
random_hold
smart_long
simple_lp
lp_and_arb
deterministic
describe(policies: list | str | None = None) str

Describe policies, either specific ones provided, or all of them.

Parameters:

policies (list | str | None, optional) – A policy name string or list of policy names to describe. If not provided, then all available policies are described.

Returns:

A string containing the policy descriptions joined by new-lines.

Return type:

str