Skip to main content

Order Operations

An order is an instruction to exchange one currency for another at specified terms. When an order is matched, TrexWallet creates transactions that move funds and update balances. An order itself is only an intent.

Order vs Transaction

  • An order describes terms (from/to currency, amount, optional limit price, room, etc.).
  • A match (full or partial) generates one transaction per side using the ExchangeToBroker / ExchangeFromBroker transaction types.
  • Order-locked funds live in the lock_orders sub-balance until the order is filled or cancelled. See Sub-Balances.

Lifecycle

The visible states (Active → Completed / Canceled / Finished / Failed) and their numeric values are defined by OrderEnumState. Trying to walk the full lifecycle without consulting the actual values is misleading — refer to the canonical operational page for the full table:

Order Operations process — order types, states, API endpoints, exchange rooms, instant swap, rate sources.

Where fees are charged

Each order side is matched against its own tariff row at execution time. See Fees.