Skip to content

Dataset

Order flow datasets from trading firms for AI training

An order flow dataset is a trading firm's own record of what it did in the market: parent orders and the child orders sliced from them, with timestamps, venue, order type and limit, the amendments and cancels that followed, the fills received and the benchmark prices captured at each decision. SourceX sources these records to a buyer's spec from established businesses such as brokers, asset managers, market makers and proprietary trading firms, drawn from order and execution management systems and FIX message logs. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
A firm's own parent and child orders, amendments, cancels and fills, with the benchmark price captured at each decision
Typical systems
Order and execution management systems, such as Charles River IMS, Bloomberg AIM and FlexTRADER; FIX session logs; kdb+ tick stores
Typical history
Specified by the buyer; bounded by what the firm retained and by its release delay
Modality
Structured order, event and fill tables; raw FIX tag-value messages where the firm kept its session logs
Delivery formats
Agreed per order; Parquet or CSV per entity with shared order keys, or raw FIX logs with the firm's custom-tag dictionary
Preparation
Client, account, trader and counterparty identifiers replaced with stable keys; order notes removed; third-party quote and depth data left out unless the firm may pass it on
Licensing
Scoped to the firm's own orders and fills; client agreements and exchange and vendor data terms are points for your counsel to check; permitted use set in the license
Availability
Sourced to your spec; supply is not guaranteed, and recent periods are usually held back
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
parent_order_idstringPseudonymous ID of the instruction as given, which every child order and fill rolls up to.
instrumentobjectSymbol as traded on the day, a more stable identifier such as an ISIN or FIGI, and currency.
capacityobjectAgent, principal or riskless principal, with a pseudonymous client or desk key.
intentobjectSide, total quantity, limit or discretion, and the benchmark the order was measured against.
arrivalobjectTime the order reached the desk or algorithm and the bid and ask the firm's system recorded then, with the quote source.
strategyobjectAlgorithm or handling instruction chosen, such as VWAP or participation, with its parameters.
child_ordersarrayEach slice sent to a venue or broker with destination, order type, limit, time in force and quantity.
child_orders[].eventsarrayNew, replaced, partially filled, filled, canceled, rejected and expired events in sequence, with firm and venue timestamps.
child_orders[].routing_reasonstringWhy the router chose the destination and price, where the system logged it.
fillsarrayExecutions with price, quantity, venue code, whether liquidity was added or removed, and the venue's timestamp.
correctionsarrayTrade busts and price corrections applied afterwards, each pointing at the fill it changes.
outcomeobjectFilled and unfilled quantity, average price, child order count and why the parent order ended.
benchmarksobjectFirm-computed reference prices such as arrival mid and close, with slippage against each in basis points.
clockobjectTimestamp precision and clock synchronization method for each system in the chain.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "parent_order_id": "po_7f31c9",
  "instrument": { "symbol_on_date": "[SYMBOL]", "isin": "[ISIN]", "currency": "USD" },
  "capacity": { "type": "agency", "client_key": "cl_0412" },
  "intent": { "side": "buy", "quantity": 40000, "limit_price": 27.50, "benchmark": "arrival" },
  "arrival": { "received_at": "2023-03-14T14:02:11.482913Z", "bid": 27.31, "ask": 27.33,
               "quote_source": "firm_snapshot" },
  "strategy": { "algo": "participation", "target_rate": 0.10, "end_time": "2023-03-14T19:55:00Z" },
  "child_orders": [
    { "child_id": "co_0001", "destination": "[MIC]", "order_type": "limit", "limit_price": 27.31,
      "time_in_force": "day", "quantity": 500, "routing_reason": "join_best_bid",
      "events": [
        { "type": "new", "firm_sent_at": "2023-03-14T14:02:11.501220Z" },
        { "type": "replaced", "firm_sent_at": "2023-03-14T14:02:19.118004Z", "new_limit_price": 27.32 },
        { "type": "partial_fill", "venue_time": "2023-03-14T14:02:24.730115Z", "quantity": 300 },
        { "type": "canceled", "venue_time": "2023-03-14T14:02:41.006530Z", "leaves_quantity": 200 }
      ] }
  ],
  "fills": [
    { "fill_id": "fl_0001", "child_id": "co_0001", "venue": "[MIC]", "price": 27.32, "quantity": 300,
      "liquidity": "added", "venue_time": "2023-03-14T14:02:24.730115Z" }
  ],
  "corrections": [],
  "outcome": { "filled_quantity": 31200, "unfilled_quantity": 8800, "average_price": 27.412,
               "child_order_count": 214, "end_reason": "end_time_reached_market_above_limit" },
  "benchmarks": { "arrival_mid": 27.32, "slippage_vs_arrival_bps": 33.7, "close": 27.61,
                  "unfilled_cost_vs_close_bps": 106.1 },
  "clock": { "firm_precision": "microsecond", "sync_method": "ptp" }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Learn execution policy from measured outcomes

Parent orders with their slicing, timing and cost against arrival price show how an instruction was worked and what it cost.

Model fill probability and venue choice

Fills and misses per destination, with order type, price and liquidity flag, support models that predict whether an order will trade and where to send the next slice.

Estimate trading cost before the trade

Order size, strategy, duration and realized slippage are the inputs for pre-trade cost models and transaction cost analysis.

Train agents to explain an execution

The event chain is the evidence for why an order cost what it did, with the firm's own benchmark figures as the reference answer.

Detect erroneous and abusive order patterns

Sequences of orders, amendments and cancels support models that flag fat-finger entries or layering-like behavior, where the firm also releases its alert outcomes.

Use-case guides: Finance and accounting agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Parent-to-child linkage

Every child order and fill resolves to a parent order through the management system, not by inference from timing.

Misses kept

Unfilled, canceled, rejected and expired orders are present, so the data shows what did not trade.

Arrival price recorded at the time

The benchmark was stamped by the firm's system at the decision, with its source named, not rebuilt later.

Two clocks

Firm send times and venue times both appear on events, with precision and synchronization method stated.

Complete amendment chains

Each cancel-replace links to the order it replaced, through every reprice.

Corrections as events

Busts and corrections are separate records pointing at the original fill, not silent overwrites.

License terms

Order flow dataset

This page covers proprietary order and execution data.Illustrative

The order lifecycle is the part no exchange feed contains

An exchange's order-by-order depth feed publishes each order added, replaced, canceled and executed. It rarely names the sender, apart from quotes a market maker chooses to show under its own name, and it does not link one firm's orders to each other. From outside, a purchase of 40,000 shares worked over an afternoon is a few hundred small orders mixed in with everyone else's. The firm holds what turns those prints into a decision: the size and limit it was given, the moment the order reached the desk, the benchmark, the algorithm chosen and each slice that algorithm sent. No public feed carries that intent.

The record takes work to assemble. In FIX, an order begins as a NewOrderSingle with a ClOrdID. Each amendment is an OrderCancelReplaceRequest carrying a new ClOrdID and the OrigClOrdID of the order it replaces, so an order repriced ten times has eleven identifiers to chain before it is one order again. The parent-to-child link is not in the messages a venue sees. It sits in the order or execution management system's own tables or in a custom tag, and a delivery cut from street-side session logs alone loses it.

The label comes from the same place. Implementation shortfall measures an execution against the price when the decision was made, in practice the arrival price stamped when the order reached the desk, and counts the cost of the quantity that never traded. Only the firm knows when its order arrived. Orders that missed are the negative examples: a passive order left behind when the price ran away, an immediate-or-cancel that came back empty. A fills-only extract, such as an allocation or trade file, drops them, and a model trained on fills alone learns that waiting passively is free.

What the firm owns and what it only received

A trading system's tick store mixes two kinds of record. The firm's orders, amendments and fills are its own business records. The consolidated quotes and depth captured beside them, often in the same kdb+ database, were received from exchanges and data vendors under agreements that commonly restrict redistribution and often cover derived data. What the firm only received is not its to license unless those agreements say so. Some fields sit between the two: the bid and ask stamped on an order at arrival, benchmarks computed from a vendor's tick history, and prices other dealers returned to a request for quote. Have counsel read the data agreements against each such field.

So specify the dataset as firm activity keyed to public timestamps. Each event carries the instrument as it traded that day, the venue's market identifier code and the venue's own timestamp, and you join those keys to market data you license separately. The join has known traps. Firm and venue clocks differ by latency and clock error, so ask for both timestamps, their precision and how the firm's clocks were synchronized. A log stamped to the millisecond cannot order events inside a burst. Ticker symbols are changed and reused, so ask for a stable identifier such as an ISIN or FIGI and whether prices are adjusted for corporate actions.

A broker's agency flow records what its clients did, and a large order in a thinly traded name can be recognized from its size and time after client keys are replaced. The firm has recordkeeping and market-abuse obligations a release must respect, so ask who in its compliance function approved it. Recent flow also shows positions and logic the firm still trades on, so a firm that agrees to license its order data will want a delay. State the shortest delay you can accept.

What to check before licensing

  • Ask whether the delivery includes parent orders and the parent-to-child link from the management system, or only street-side FIX messages, where that link does not exist.
  • Confirm that unfilled, canceled, rejected and expired orders are included, and check on the sample that some parent orders ended with quantity left unfilled.
  • Ask where each arrival price and benchmark came from: stamped by the firm's system at the time, or rebuilt later from a vendor's tick history, and under which data agreement.
  • Have counsel review exchange and vendor redistribution terms for every quote, depth or benchmark field in the delivery, including values derived from licensed feeds.
  • For agency flow, ask what the client agreements allow, how client and account keys were replaced, and whether large orders in thinly traded instruments were removed or coarsened.
  • Ask what release delay the firm applies, who in its compliance function approved the release, and how the release sits with its recordkeeping and market-abuse obligations.
  • Test the sample's timestamps for precision, clock source and venue times on fills, and rebuild every cancel-replace chain.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is an order flow dataset different from exchange market data?

Exchange market data shows what every participant did, mostly without names, while an order flow dataset shows what one firm did and why. A depth feed lists orders and trades with no link between one firm's orders. The firm's record adds the parent instruction, the slicing, the routing choice, the amendments and the cost against arrival price.

Does the dataset include the order book around each order?

Usually not. Quotes and depth that a firm captured from exchanges or vendors generally stay under those providers' data agreements, so the firm cannot pass them on freely. The delivery is specified as the firm's own activity with instrument, venue and timestamp keys, and you join it to market data you license yourself.

Can I get raw FIX logs or only normalized tables?

Either can be requested, depending on what the firm kept. Raw session logs preserve every message and custom tag but need the firm's tag dictionary, and they lose the parent order unless the management system's tables come with them. Normalized tables load easily and hide how they were built. Ask for both on a sample.

Which asset classes can this cover?

It depends on the firm, and the record differs by market. Equities, futures and listed options trade mostly on order books, so the record is orders, amendments and fills by venue. Foreign exchange and bonds trade largely by request for quote and streamed prices, so the record is the quotes requested, the responses and the one accepted.

How recent can the data be?

Expect a delay, set by the firm. Recent order flow reveals positions, signals and algorithm behavior still in use, so firms that agree to license it usually hold back the latest period and may coarsen strategy names. State in your request the most recent date you need and the minimum delay you can accept.

Can historical order flow evaluate a new execution agent?

Partly. The data gives real instructions, real conditions and the cost the firm achieved, which makes a fair baseline. It cannot say what would have happened had the agent traded differently, because the market would have reacted to different orders. Counterfactual testing needs a simulator or a market-impact model on top of the data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies