Skip to content

Late trade adjustments

A typical trade flow will include the following steps:

  1. A trade is booked on a certain day at a certain time
  2. At some time later, the trade is entered into a risk system. This might even be after the market has closed.

Whenever a trade arrives in our risk system we can set the valid-time (the business curated timeline) to the exact time of the trade. This backfilling of histoical data allows us to understand and report on the risk position of our trade portfolio as-of any point in the past.

For example, a set of trades entering our risk system may look something like this:

2024-01-15T16:59:00
Run
Open in xt-play

However sometimes a trade is booked right at the end of the day, after the standard End-of-Day reporting window has closed, and therefore isn’t available and processed by the system until sometime later.

Let’s say this trade was entered after the market close:

2024-01-15T19:10:00
Run
Open in xt-play

The following day sees more trades entered into the system:

2024-01-16T16:59:00
Run
Open in xt-play

We can re-run our final risk reports for yesterday, which includes the late-arriving trade, but not the new trades for today:

Run
Open in xt-play

Now our reports can be made consistent and reproducible whilst accounting for late-arriving data, great!

How would you achieve this capability without a database that allows you to query across time?

Many financial institutions build complex systems involving tagged data snapshots, exports and file processing simply to query the past. With XTDB, this extra complexity is avoided.