Bulk trade posting

Booking high volumes of OMS executions and allocations into Avaloq in batches, without losing ordering, duplicating trades or leaving a block half-booked.

The problem

A discretionary wealth manager rebalances a model portfolio. One decision becomes one block order in the OMS, which fills in several executions and is then allocated across hundreds or thousands of client portfolios. Every allocation has to become a correctly priced, correctly charged booking in Avaloq, ideally within minutes and certainly before settlement deadlines.

Posting each allocation as its own real-time call works at low volume. At rebalance volume it causes queues, timeouts and retries, and retries are where duplicate bookings come from. Bulk posting groups bookings into batches so the back office can absorb the burst. The cost is new failure modes, and the pattern exists to handle them.

How it works

Sequence: the OMS sends a block and allocations to the integration layer, which validates, groups and posts batches to Avaloq, receives per-item results, parks and retries rejects, and returns booking status to the OMS, followed by scheduled reconciliation.
Bulk posting via an integration layer. The key property is that every item carries a stable identity end to end.
  1. The OMS releases the block and its allocations. Each allocation carries a stable, unique business identifier that never changes on resend.
  2. The integration layer validates and enriches before anything is sent: instrument and account static data, charges and taxes, settlement details. Items that will certainly fail are stopped here, where they’re cheap to fix.
  3. Items are grouped into batches within the interface’s limits. Grouping follows business dependencies, not just arrival time.
  4. Avaloq returns a result for each item. A batch is a transport container, not a unit of success.
  5. Rejected items are parked and retried individually by their identifier, after correction where needed.
  6. Status flows back to the OMS per allocation, so the front office and operations see the same truth.
  7. Reconciliation confirms that positions and cash agree, independently of the message flow.

Design decisions that matter

Identity and idempotency

Everything depends on it. If the same allocation is sent twice, after a timeout or a middleware restart, the second send must be recognised and must not create a second booking. Decide early which identifier is the idempotency key, where it’s stored on the Avaloq side, and what “already booked” looks like in the response.

Grouping and batch size

Batch size is a trade-off between throughput and blast radius. Larger batches move more per call but take longer to process and to diagnose. A useful rule: keep a block’s allocations together where you can. When a block is too large for one batch, post it in a controlled sequence with a shared parent reference, so the back office and operations can still see it as one decision.

Ordering and dependencies

An amendment that overtakes its original, or a cancel that arrives before the booking exists, creates breaks that are tedious to unpick. Concurrency is fine across unrelated blocks. Within one block or one allocation, events must be applied in order. Partition by block (or by account) to get both.

Partial failure

Expect most batches to come back mixed. Design for three outcomes per item: booked, rejected – fixable (for example missing static data) and rejected – needs a human. Only the second should be retried automatically, and only once the cause is fixed.

Timing windows

Bulk posting adds latency by design. Check it against the operational day: overnight batch cut-offs, settlement instruction deadlines and, from 11 October 2027, UK T+1 settlement, which leaves far less slack between trade date and settlement.

Anti-patterns

Retrying the whole batchIf one item fails and the whole batch is re-sent, every item that already succeeded is offered again. Without strict idempotency, that's how duplicate bookings happen.
Batching by clock alone"Send whatever has arrived every 30 seconds" splits blocks across batches at random and lets amendments race their originals.
Treating batch acceptance as success"Batch received" is not "trades booked". If the integration doesn't consume item-level results, failures surface days later as reconciliation breaks.
Fixing data downstreamRepairing static data or charges inside the back office after rejection, instead of validating upfront, turns a systemic problem into daily manual work.
Bulk for everythingUsing batches for flows that need immediate confirmation, such as availability checks or urgent single trades, buys throughput nobody needed and adds latency where it hurts.

OMS-specific details

  • Partial fills and average pricing. Decide whether allocations are booked per execution or at a block average price. That choice drives fees, tax lots and client reporting.
  • Late amendments. Allocation changes after booking need a correction path (reverse and rebook, or amend). It has to be designed and tested, not left as an afterthought.
  • Multi-currency. Allocations in a currency different from the account’s reference currency bring in FX booking. Make sure rates and the timing of the FX leg are explicit.
  • Charges. Commission, stamp duty or SDRT, and other levies must be calculated once, in one agreed place.

How to test it

A minimum regression set for bulk posting:

Scenario What you’re proving
Large rebalance block, many allocations Throughput, grouping, no orphaned allocations
One bad allocation in a batch The rest book. The bad one parks and retries cleanly
Duplicate send after a simulated timeout No double booking
Amend and cancel racing the original Order is preserved and the final state is correct
Multi-currency and partially filled block Pricing, FX and charges are correct
End-of-day reconciliation after all of the above OMS and Avaloq agree

This page describes vendor-neutral architecture based on delivery experience. It deliberately doesn’t reproduce Avaloq interface specifications, documentation or training material.