Status¶
- class hokohoko.entities.Status(value)¶
Bases:
Enum
Indicates the outcome for the given Order/Position.
- PENDING = 0¶
The Position is awaiting activation (still an Order).
- OPEN = 1¶
The Position is open (active).
- CLOSED = 2¶
The Position was closed either manually or automatically.
- CLOSED_TAKE_PROFIT = 3¶
The Position closed when its
take_profit
condition was met.
- CLOSED_STOP_LOSS = 4¶
The Position closed when its
stop_loss
condition was met.
- NOT_TAKEN = 5¶
The Order was deliberately not taken in Benchmark mode.