Skip to content

Concept: Transactions

Transaction model

A transaction is the atomic financial event in Glacez. Two major families exist:

  • Order: market activity on trading pairs
  • Transfer: deposits and withdrawals

Each transaction carries timestamp, status, notes, fees, origin metadata, and optional exchange/wallet references.

Order types

  • LimitOrder: order with target price, optional lift
  • ClosedOrder: executed trade with final total
  • MarketOrder: market execution form (supported in model hierarchy)

Transfer types

  • DEPOSIT
  • WITHDRAWAL

Some deposits can be auto-generated by system coherence logic to keep history consistent.

Transaction statuses

Common statuses include:

  • TO_CONFIRM
  • TO_PLACE
  • PLACED
  • COMPLETE
  • TO_CANCEL
  • CANCELED
  • PROCESSING
  • UNKNOWN

Status progression depends on flow type (manual update, strategy-generated, or worker execution).

Tracking and events

Transactions are accompanied by:

  • Track entries (audit trail of changes)
  • Status events for user-facing visibility
  • Optional email notifications via async email jobs

Related: