Skip to content

feat(python): expose AccountEvent types #270

@aecs4u

Description

@aecs4u

Summary

Expose AccountEvent and AccountEventKind as Python types for observing execution events.

Types to expose

  • PyAccountEvent with exchange and kind fields
  • PyAccountEventKind variants:
    • Trade — fill with id, order_id, instrument, strategy, side, price, quantity, fees, time
    • BalanceSnapshot — asset balance update
    • OrderSnapshot — order state change
    • OrderCancelled — cancel confirmation

Use case

Currently, positions and balances are visible in the EngineState snapshot, but individual account events (fills, cancellations) are not accessible. This would let users build custom analytics, execution logs, or reconciliation tools.

Status: TODO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions