fairCT Contributors API - Specification v1.2.3 v1.2.2

1. Overview

This API is the interface between fairCT (the CTP) and data contributors (venues, APAs). Contributors submit post-trade reports and regulatory status data; fairCT returns receipts confirming that each submission is on the official tape.

In scope:

Architecture

Contributors connect to fairCT in one of two ways:

Stream A - fairCT API contributors open a long-lived TCP connection using either JSONL or SBE encoding. Trades go in on that connection; receipts come back on the same connection, matched by correlationId.

Stream B - Own-API contributors submit via their own venue systems. Trades go in through their own infrastructure; they then use the Feedback REST API to retrieve receipts via batch correlation lookup.

Stream B - Own-API ContributorsStream A - fairCT API Contributorstrades (JSONL/TCP orSBE/TCP)receiptstrades (own API)POST /receipts/lookup(batch)receipts

Venue / APA
(fairCT API)

Venue / APA
(own-API)

CT Gateway
(3 regions)

Feedback
REST API

Every submitted message - including each cancel and each amend - receives a receipt once committed to tape. The receiptId in the receipt is proof of submission - the contributor's authoritative record that the message is on the official tape.

Receipt storage obligation: Contributors MUST collect and permanently store the receiptId for every submission, of every message type. submission. The receiptId is the only proof accepted by fairCT that a submission was made. trade was submitted. Contributors affirm each day that they hold a receiptId in permanent storage for every submission trade required to be made. submitted. Any given trade may have multiple receiptIds (one per lifecycle event - new, cancel, amend), and all must be retained.


2. Datetime Format

All datetime fields use a strict subset of ISO 8601:

YYYY-MM-DDTHH:MM:SS.ssssssZ
  • Always UTC (the Z suffix is mandatory)
  • Always exactly microsecond precision (six fractional digits)
  • No timezone offsets other than Z
  • No date-only or time-only formats
  • No week dates or ordinal dates

Validating regex:

^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}Z$

Throughout this specification, "ISO 8601" means ONLY this specific format unless otherwise stated.

Valid examples: - 2026-03-24T10:30:00.000000Z - 2026-03-24T10:30:00.150000Z - 2026-01-01T00:00:00.000000Z

Invalid examples: - 2026-03-24T10:30:00Z - missing fractional digits - 2026-03-24T10:30:00.150Z - insufficient precision (3 digits instead of 6) - 2026-03-24T10:30:00.1500000Z - excess precision (7 digits instead of 6) - 2026-03-24T10:30:00.000000+01:00 - timezone offset instead of Z - 2026-03-24 - date only

All datetime fields use the Timestamp type: a signed 64-bit integer (int64) representing nanoseconds since Unix epoch (1970-01-01T00:00:00Z UTC).

  • Nanosecond precision is native to the wire format
  • Contributors should populate timestamps to at least microsecond precision
  • Null sentinel: 0x8000000000000000 (INT64_MIN) = absent
  • Maximum representable date: 11 April 2262

See SBE Reference for the full type definition.


3. Transport (fairCT API - Stream A)

Note: This section applies to Stream A contributors connecting via the fairCT API. Stream B contributors (venues using their own proprietary API where that API is compatible with fairCT) do not use this transport. Stream B contributors must use the separate fairCT Feedback API to retrieve receipts via batch correlation lookup, in order to collate the receiptIds required to prove submission. See Feedback REST API.

Contributors connect to the fairCT API via a long-lived TCP connection. Receipts flow back on the same connection. Two encodings are available - the encoding protocol is defined per venue during onboarding setup, and each encoding is served on a separate port. Ports are assigned during onboarding.

Newline-delimited JSON messages (one object per line) over TLS TCP.

Encoding:   UTF-8 JSONL - each message is one JSON object, newline-terminated (\n)
Direction:  bidirectional on same TCP connection
Heartbeat:  5s interval. Connection dropped after 3 missed heartbeats.
UAT:        contribute-uat.fairct.eu (single region)

Message Types

Inbound (contributor -> fairCT):

Type Description
auth First message after connect - identify and authenticate
trade Post-trade report
instrumentStatus Per-instrument regulatory status
tradingSystemStatus Venue-level trading system status
ping Heartbeat - sent every 5 seconds

Outbound (fairCT -> contributor):

Type Description
authAck Authentication confirmed
authError Authentication failed - connection will close
receipt Per-message acknowledgement returned after commit - non-blocking, matched to submissions via correlationId
error Hard validation failure - message rejected, not published
pong Heartbeat acknowledgement

Binary frames over TLS TCP.

Encoding:   Simple Binary Encoding (SBE) - fixed-width block, optional variable-length tail
Direction:  bidirectional on same TCP connection
Heartbeat:  5s interval. Connection dropped after 3 missed heartbeats.
UAT:        contribute-uat.fairct.eu (single region)

TCP Framing

Every SBE message on the wire:

| frameLength (uint32 LE) | blockLength (uint16 LE) | templateId (uint16 LE) | schemaId (uint16 LE) | version (uint16 LE) | ... message body ... |
  • frameLength: total bytes following (header + body). Does not include its own 4 bytes.
  • SBE message header immediately follows and is always 8 bytes.

SBE Message Header

Field Type Size Description
blockLength uint16 LE 2 Length of the fixed-width block (excludes trailing variable-length data)
templateId uint16 LE 2 Message type, also called the template. See Template IDs and Block Lengths for all template IDs.
schemaId uint16 LE 2 Always 1
version uint16 LE 2 Schema version. 2 - see Version Negotiation.

Schema and Versioning

  • schemaId = 1 (fixed). version = 2.
  • The version is fixed for the session. A message carrying a different version closes the connection - see Version Negotiation.
  • Reserved bytes at end of each block are zero-filled. Future fields occupy those bytes and increment the schema version.
  • Contributors must ignore unknown trailing bytes when version is higher than expected.
  • Template IDs and per-message layouts: Message Formats and Template IDs and Block Lengths.

Multi-Region Connectivity

Contributors must maintain long-lived connections to all three fairCT regions simultaneously and submit every trade to all three regions. Contributors must connect to each of the three endpoints to ensure timely submissions in disconnection situations. Individual disconnections are not considered failures - disconnection issues are considered fully covered by maintaining connections to, and submitting all trades to, all 3 regions.

Region Endpoint
Frankfurt (europe-west3) contribute-de.fairct.eu
Netherlands (europe-west4) contribute-nl.fairct.eu
Zurich (europe-west6) contribute-ch.fairct.eu

Credential details are covered in the key management document (forthcoming).

Each region processes independently and issues its own receipt. Receipts for identical submissions carry the same receiptId - contributors may store any one as proof.

A venue is considered offline only if none of the three regions are receiving heartbeats. A single active region is sufficient to keep the venue online.

Partial outage

If a contributor is connected to fewer than three regions, this is reported as a partial outage on the contributor side. fairCT monitors regional connection health per venue. Contributors must connect to all three regions at all times.


4. Authentication

Auth is the first and only authentication message on a connection. The connection is dropped if auth is not received within 5 seconds. A second auth attempt on a connection is not allowed.

The authMethod field declares the authentication mechanism:

Environment authMethod Behaviour
UAT null Authentication bypassed - any venueId accepted
Production "api-key" Contributor must supply the provisioned API key

Authentication uses a pre-shared API key provisioned to each contributor by fairCT - a static UUID v4 credential (e.g. 550e8400-e29b-41d4-a716-446655440000) delivered out-of-band by the fairCT ops team during onboarding. A separate key management document will be published covering credential lifecycle, rotation, and revocation procedures.

In production, secret is required. A missing or empty secret is rejected with UNAUTHORIZED.

UAT request:

JSON
{"type": "auth","venueId": "XMIL","authMethod": null}

Production request:

JSON
{"type": "auth","venueId": "XMIL","authMethod": "api-key","secret": "<provisioned-api-key>","version": "1.2"}

Field reference:

Field Type Required Description
type string Required Always "auth"
venueId string Required ISO 10383 MIC of the contributor venue
authMethod string Required null in UAT. In production, always "api-key".
secret string Conditional Required in production, omitted in UAT. The provisioned API key; a missing or empty value is rejected with UNAUTHORIZED.
version string Optional Requested protocol version. Omit to select the latest version, currently "1.2".

Success:

JSON
{"type": "authAck","venueId": "XMIL","sessionId": "sess-abc123","connectedAt": "2026-03-24T09:00:00.000000Z","version": "1.2"}

Field reference:

Field Type Required Description
type string Required Always "authAck"
venueId string Required Echo of the authenticated venue MIC
sessionId string Required Server-assigned opaque identifier for this connection session
connectedAt datetime Required Session establishment time
version string Required Protocol version granted for this session

sessionId is a server-assigned opaque identifier for this connection session. Use it when contacting fairCT support or in your own operational logs to identify the specific session. It has no effect on trade processing.

Failure:

JSON
{"type": "authError","code": "AUTH_FAILED","detail": "Invalid credentials for venue XMIL"}

Field reference:

Field Type Required Description
type string Required Always "authError"
code enum Required AUTH_FAILED | UNAUTHORIZED | PROTOCOL_MISMATCH. See Authentication error codes.
detail string Required Human-readable explanation of the failed authentication

Requesting a version that is not served returns an error:

JSON
{"type": "authError","code": "PROTOCOL_MISMATCH","detail": "Version 1.4 is not served"}

Auth (templateId=1), blockLength=77:

Offset Size Type Field Notes
0 4 char[4] venueId ISO 10383 MIC, null-padded
4 1 uint8 authMethod 0 = UAT (no credential check), 1 = API_KEY
5 64 char[64] secret API key, null-padded. Send all zeros for UAT.
69 4 - reserved Zero-fill
73 4 uint32 crc32c See SBE Message Integrity.

AuthAck (templateId=2), blockLength=56:

Offset Size Type Field Notes
0 4 char[4] venueId Echo of the authenticated venue
4 36 char[36] sessionId Server-assigned session identifier (opaque)
40 8 Timestamp connectedAt Session establishment time
48 2 uint16 version Schema version granted for this session. Echo of the version in the Auth header.
50 2 - reserved Zero-fill
52 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 56 bytes.

AuthError (templateId=3), blockLength=9:

Offset Size Type Field Notes
0 1 uint8 code 1=AUTH_FAILED, 2=UNAUTHORIZED, 3=PROTOCOL_MISMATCH
1 4 - reserved Zero-fill
5 4 uint32 crc32c See SBE Message Integrity.

Followed by variable-length data: detail - uint16 length prefix (bytes) + UTF-8 string. The connection is closed immediately after AuthError is sent.

Version Negotiation

The protocol version is fixed for the life of a connection. It is chosen at login, confirmed by fairCT, and cannot change without reconnecting.

The versions fairCT serves at any time are communicated out of band.

How the version is chosen

The version field on the auth message. If it is absent, the latest version is served, currently 1.2.

The version field in the message header. The field is mandatory, so there is no default.

How the version is confirmed

fairCT echoes the granted version in the version field of the acknowledgement.

A request for a version fairCT does not serve fails the login with PROTOCOL_MISMATCH. No other version is substituted.


5. Message Formats

5.1 Trade Report

JSON
{ "type": "trade", "correlationId": "venue-assigned-unique-id", "executionTime": "2026-03-24T10:30:00.000000Z", "contributorReceivedTime": "2026-03-24T10:30:00.050000Z", "contributorPublishedTime": "2026-03-24T10:30:00.100000Z", "isin": "XS1234567890", "currency": "EUR", "price": 98.75, "priceType": "PERCENTAGE", "notionalAmount": 1000000, "notionalCurrency": "EUR", "executionVenue": "XMIL", "publicationVenue": "XFCT", "transactionId": "XMIL-20260324-000001234", "tradingSystemType": "CLOB", "tradeFlags": [] }
Optional fields

Fields marked as optional in this specification should be omitted from the submission rather than sent as null. Whether a particular field must be provided for any given trade depends on the applicable regulations.

Field reference:

Field Type Required Description
type string Required Always "trade"
correlationId string Required Contributor-assigned identifier for this message, echoed in receipts and errors. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE. A value longer than 36 characters cannot be carried and is also rejected with INVALID_TYPE.
executionTime datetime Required When the trade was executed. Must include microsecond precision. Should not be in the future. Contributors are required to synchronise business clocks in accordance with C(2025) 3102 Articles 11-16.
contributorReceivedTime datetime Required When the contributor received the trade data. Should not be before executionTime.
contributorPublishedTime datetime Required When the contributor published the trade. Should not be before contributorReceivedTime.
isin string Required 12-character ISIN. Regex: ^[A-Z]{2}[A-Z0-9]{9}[0-9]$
currency string Optional ISO 4217 currency code (3-letter). The currency in which price is expressed.
price decimal Conditional Trade price. Expected unless missingPriceCode is set. Should be positive. Not expected alongside missingPriceCode.
priceType enum Optional Notation of the price field. See Enumeration Values.
missingPriceCode enum Conditional Set only when price cannot be provided. "PNDG" (pending, expected via amendment) | "NOAP" (not applicable). Not expected alongside price.
notionalAmount decimal Required Notional value of the trade. Should be positive.
notionalCurrency string Optional ISO 4217 currency code for notionalAmount.
executionVenue string Required ISO 10383 MIC of the execution venue (4 characters). Use XOFF for off-venue trades.
thirdCountryVenue string Conditional ISO 10383 MIC of the third-country execution venue. Only valid when executionVenue is XOFF. Omit when not applicable.
publicationVenue string Required MIC of the APA or CTP publishing the trade. Contributors submitting to fairCT as CTP should use the fairCT MIC (XFCT - confirm once ESMA completes CTP registration).
transactionId string Required The venue's native transaction identifier for this trade (TVTIC - Trading Venue Transaction Identification Code). Assigned by the trading venue, format varies per venue. Max 52 characters. Persistent across the trade lifecycle: new, cancel, and amend messages all carry the same transactionId.
tradingSystemType enum Conditional Expected unless executionVenue is SINT or XOFF. See Enumeration Values.
tradeFlags array of enum Optional Zero or more RTS post-trade transparency flags. See Enumeration Values.
deferral enum Optional Post-trade deferral flag. See Enumeration Values.
supplementaryDeferral enum Optional Supplementary deferral code. See Enumeration Values.
transactionCount integer Conditional Required only for aggregated sovereign debt deferred publication. Omit otherwise.
amendment enum Optional "CANCEL" | "AMEND". Absent = new trade. See trade lifecycle below.

Trade (templateId=10), blockLength=184:

Offset Size Type Field Notes
0 36 char[36] correlationId Contributor-assigned correlation ID, null-padded. An all-zero value is accepted and echoed back as empty. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE.
36 8 Timestamp executionTime Nanoseconds since Unix epoch
44 8 Timestamp contributorReceivedTime Nanoseconds since Unix epoch
52 8 Timestamp contributorPublishedTime Nanoseconds since Unix epoch
60 12 char[12] isin 12-character ISIN, null-padded
72 2 CurrencyCode currency ISO 4217 numeric (e.g. EUR=978). 0 = absent
74 2 CurrencyCode notionalCurrency ISO 4217 numeric. 0 = absent
76 9 Decimal price mantissa INT64_MIN = absent (use missingPriceCode)
85 1 uint8 priceType 0=PERCENTAGE, 1=MONETARY, 2=YIELD, 3=BASIS_POINTS, 0xFF=absent
86 1 uint8 missingPriceCode 0=absent, 1=PNDG, 2=NOAP
87 9 Decimal notionalAmount Should be positive
96 4 char[4] executionVenue ISO 10383 MIC
100 4 char[4] thirdCountryVenue All zeros = absent
104 4 char[4] publicationVenue ISO 10383 MIC
108 52 char[52] transactionId Venue transaction identifier, null-padded
160 1 uint8 tradingSystemType See enum in Enumeration Values. 0xFF = absent
161 8 uint64 tradeFlags Bitset - see tradeFlags for bit assignments. 0 = no flags.
169 1 uint8 deferral 0=absent, 1=MLF1, 2=MIF2, 3=LLF3, 4=LIF4, 5=VLF5, 6=VIF5
170 1 uint8 supplementaryDeferral 0=absent, 1=VOLUME_OMISSION, 2=FULL_VOLUME_DETAILS, 3=FOUR_WEEK_AGGREGATION, 4=FULL_AGGREGATION_DETAILS
171 4 uint32 transactionCount 0xFFFFFFFF = absent
175 1 uint8 amendment 0=new trade, 1=CANCEL, 2=AMEND
176 4 - reserved Zero-fill
180 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 184 bytes. No variable-length data follows the fixed block for this message type.

Transaction ID reuse is required, not an error
Transaction ID reuse is required

Cancel and amend messages carry the same transactionId as the original trade. Each message receives its own receiptId.

Trade corrections (RTS 2 Article 7): Two lifecycle patterns are valid:

Both patterns are valid. Each message in the lifecycle (new, cancel, amend) receives a distinct receiptId. A receiptId is required for EACH SUBMISSION - not just each trade. Any given trade may therefore have several receiptIds, and venues must permanently store each of them for any reconciliation queries.

Deduplication key: The unique key for deduplication is the receiptId. Resubmitting an identical message after a disconnect returns the same receiptId and does not create a duplicate record. A message with different content receives a new receiptId and is published as a distinct record. A trade can be cancelled and amended any number of times; each message receives its own receiptId.

Cancel-only lifecycle: A CANCEL message without a subsequent AMEND is valid - it represents a trade voided with no replacement. The cancellation is published to tape.

A trade with transactionId "T1" and amendment absent (new) is a different record from transactionId "T1" with a CANCEL amendment. Both are valid and both receive distinct receiptIds.

Resubmission policy: If a venue does not have a receiptId for a submission, they should resubmit. The fairCT system is idempotent - the submission time is recorded at the time of the first submission, so a venue cannot suffer from a resubmission. Venues MUST NOT resubmit when they DO have a valid receiptId.

CTP transaction identification code: the CTP also assigns its own transaction identification code on output. This is a CTP-generated identifier used in all subsequent CTP-to-contributor communications; it does not replace the contributor's transactionId.


5.2 Instrument Status

JSON
{ "type": "instrumentStatus", "correlationId": "venue-assigned-unique-id", "isin": "XS1234567890", "currency": "EUR", "venue": "XMIL", "tradingSystem": "CLOB", "status": "ACTIVE", "statusStartTime": "2026-03-24T09:00:00.000000Z" }

status values: ACTIVE | SUSPENDED | REMOVED | HALTED | RESUMED

Field reference:

Field Type Required Description
type string Required Always "instrumentStatus"
correlationId string Required Contributor-assigned identifier for this message, echoed in receipts and errors. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE. A value longer than 36 characters cannot be carried and is also rejected with INVALID_TYPE.
isin string Required 12-character ISIN
currency string Required ISO 4217 currency code (3-letter)
venue string Required ISO 10383 MIC
tradingSystem enum Required See tradingSystem / tradingSystemType
status enum Required ACTIVE | SUSPENDED | REMOVED | HALTED | RESUMED
statusStartTime datetime Required When the status took effect

InstrumentStatus (templateId=11), blockLength=72:

Offset Size Type Field Notes
0 36 char[36] correlationId Contributor-assigned correlation ID, null-padded. An all-zero value is accepted and echoed back as empty. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE.
36 12 char[12] isin 12-character ISIN, null-padded
48 2 CurrencyCode currency ISO 4217 numeric
50 4 char[4] venue ISO 10383 MIC
54 1 uint8 tradingSystem 0=CLOB, 1=QUOTE_DRIVEN, 2=AUCTION_DRIVEN, 3=RFQ, 4=VOICE, 5=HYBRID, 6=OTHER
55 1 uint8 status 1=ACTIVE, 2=SUSPENDED, 3=REMOVED, 4=HALTED, 5=RESUMED
56 8 Timestamp statusStartTime Nanoseconds since Unix epoch
64 4 - reserved Zero-fill
68 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 72 bytes.

When to send: Send an instrument status message (a) on session connect - one message per actively traded instrument to snapshot current status, (b) whenever an instrument's status changes during the session, and (c) on reconnect - resend the current status for all instruments.


5.3 Trading System Status

JSON
{ "type": "tradingSystemStatus", "correlationId": "venue-assigned-unique-id", "venue": "XMIL", "tradingSystem": "CLOB", "status": "ACTIVE", "statusStartTime": "2026-03-24T08:00:00.000000Z" }

status values: ACTIVE | OUTAGE | PARTIAL_OUTAGE | UNKNOWN | CLOSED

JSON
{ "type": "tradingSystemStatus", "correlationId": "venue-assigned-unique-id", "venue": "XMIL", "tradingSystem": "CLOB", "status": "CLOSED", "statusStartTime": "2026-06-18T17:30:00.000000Z", "expectedReopen": "2026-06-19T07:00:00Z" }

expectedReopen is an ISO 8601 UTC datetime. It is expected when status is CLOSED and otherwise omitted. Resolution is to the minute; any sub-minute component is ignored. It should be in the future and should be the time of the next scheduled uptime.

Field reference:

Field Type Required Description
type string Required Always "tradingSystemStatus"
correlationId string Required Contributor-assigned identifier for this message, echoed in receipts and errors. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE. A value longer than 36 characters cannot be carried and is also rejected with INVALID_TYPE.
venue string Required ISO 10383 MIC
tradingSystem enum Required See tradingSystem / tradingSystemType
status enum Required ACTIVE | OUTAGE | PARTIAL_OUTAGE | UNKNOWN | CLOSED
statusStartTime datetime Required When the status took effect
expectedReopen datetime Conditional Required when status is CLOSED, otherwise omitted

TradingSystemStatus (templateId=12), blockLength=58:

Offset Size Type Field Notes
0 36 char[36] correlationId Contributor-assigned correlation ID, null-padded. An all-zero value is accepted and echoed back as empty. A value must not be reused for a different message, or for different versions of the same trade. Resubmissions of the same message reuse the same value. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to. Contributors must use only A-Z, a-z, 0-9, -, _ and .; a value containing any other character is rejected with INVALID_TYPE.
36 4 char[4] venue ISO 10383 MIC
40 1 uint8 tradingSystem 0=CLOB, 1=QUOTE_DRIVEN, 2=AUCTION_DRIVEN, 3=RFQ, 4=VOICE, 5=HYBRID, 6=OTHER
41 1 uint8 status 1=ACTIVE, 2=OUTAGE, 3=PARTIAL_OUTAGE, 4=CLOSED, 5=UNKNOWN
42 8 Timestamp statusStartTime Nanoseconds since Unix epoch
50 4 uint32 expectedReopen Minutes since Unix epoch (UTC). Populated only when status=4 (CLOSED); 0xFFFFFFFF = absent.
54 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 58 bytes.

UNKNOWN status

When to send: Send a trading system status message (a) on session connect - one message per trading system to snapshot current status, (b) whenever the trading system status changes during the session, and (c) on reconnect - resend current status for all trading systems. When the venue has no active fairCT connection, fairCT determines status from heartbeat absence - see Heartbeat.

Venues can (and must) self-declare as offline when they are connected to the CT and the venue's trading system is down, by sending a trading system status message with status OUTAGE.


5.4 Receipt (outbound)

Returned on the same TCP connection after the message has been committed to tape. Non-blocking - contributors can continue submitting messages without waiting for receipts. Receipts are matched to submissions using the correlationId field.

A receipt is returned for every accepted submission - trade reports, instrument status messages and trading system status messages alike. The correlationId in the receipt echoes the correlationId that the contributor provided when submitting the message. trade. This allows contributors to match each receipt to the specific submission that generated it.

JSON
{ "type": "receipt", "correlationId": "venue-assigned-unique-id", "receiptId": "9f2c81a4d6be07351cfa92e8b4d70a6c", "status": "ACCEPTED" }

The correlationId value "venue-assigned-unique-id" above is the same identifier the contributor included in the original trade submission. It is echoed back unchanged.

Field reference:

Field Type Required Description
type string Required Always "receipt"
correlationId string Required Echo of the correlationId supplied on the submission
receiptId string Required 32 lowercase hexadecimal characters. Always populated. See Receipt ID.
status enum Required Always ACCEPTED.

Rejections are reported via the Error message.

Receipt2 (templateId=22), blockLength=61:

Offset Size Type Field Notes
0 36 char[36] correlationId Echo of the contributor's correlationId from the original submission
36 16 byte[16] receiptId 128-bit receipt identifier. Always populated. See Receipt ID.
52 1 uint8 status Always 1 (ACCEPTED).
53 4 - reserved Zero-fill
57 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 61 bytes.

See Receipt ID for what the receiptId means and how to handle it.


5.5 Error (outbound)

Sent when a message fails hard validation and is rejected (not published to tape).

JSON
{ "type": "error", "correlationId": "venue-assigned-unique-id", "code": "INVALID_ISIN", "detail": "ISIN format invalid: must be 12 characters, 2-letter ISO country code prefix", "rejectedAt": "2026-03-24T10:30:00.051000Z" }

Field reference:

Field Type Required Description
type string Required Always "error"
correlationId string Required Echo of the correlationId supplied on the submission
code enum Required See Error Codes
detail string Optional Human-readable explanation of the rejection
rejectedAt datetime Required Time of rejection

Error (templateId=21), blockLength=53:

Offset Size Type Field Notes
0 36 char[36] correlationId Echo of the contributor's correlationId
36 1 uint8 code Error code - see Error Codes for the uint8 mapping
37 8 Timestamp rejectedAt Time of rejection
45 4 - reserved Zero-fill
49 4 uint32 crc32c See SBE Message Integrity.

Total fixed block: 53 bytes. Followed by variable-length data: detail - uint16 length prefix (bytes) + UTF-8 string.


5.6 Heartbeat

Contributors are responsible for sending a ping every 5 seconds on each regional connection. fairCT responds with a pong.

JSON
{"type": "ping","ts": "2026-03-24T10:30:00.000000Z"} {"type": "pong","ts": "2026-03-24T10:30:00.001000Z"}

Field reference:

Field Type Required Description
type string Required Always "ping" for contributor heartbeats or "pong" for fairCT acknowledgements
ts datetime Required Send timestamp on ping; echoed timestamp on pong

Ping (templateId=30), blockLength=16:

Offset Size Type Field Notes
0 8 Timestamp ts Send timestamp - nanoseconds since Unix epoch
8 4 - reserved Zero-fill
12 4 uint32 crc32c See SBE Message Integrity.

Pong (templateId=31), blockLength=16:

Offset Size Type Field Notes
0 8 Timestamp ts Echo of the ping ts
8 4 - reserved Zero-fill
12 4 uint32 crc32c See SBE Message Integrity.

Contributor obligation: If the contributor stops receiving pong responses for 3 consecutive heartbeat intervals, treat the connection as dead and reconnect immediately.

Missed heartbeats trigger a trading system outage report

If fairCT receives no ping from a venue across all three regional connections for 3 consecutive heartbeat intervals, the venue is classified as offline and this is reported as a trading system outage to tape subscribers and regulators. Heartbeat handling must be reliable on every regional connection - a venue is only considered offline when all three regions go silent.

Exception: a venue that has declared status=CLOSED with a future expectedReopen (see Trading System Status) is exempt from this rule until expectedReopen plus grace. During that window, heartbeat absence shows CLOSED.


6. Validation Rules

These rules apply to every submission regardless of encoding. They are stated once here rather than against each field, so that both encodings are held to the same conditions.

All submissions:

Rule
correlationId must use only the characters A-Z, a-z, 0-9, -, _ and .; any other character is rejected with INVALID_TYPE
correlationId must not exceed 36 characters; a longer value is rejected with INVALID_TYPE

Trade report:

Rule
executionTime should not be in the future
contributorReceivedTime should not be before executionTime
contributorPublishedTime should not be before contributorReceivedTime
price is expected unless missingPriceCode is set
price should be positive
notionalAmount should be positive
thirdCountryVenue is valid only when executionVenue is XOFF; omit otherwise
tradingSystemType is expected unless executionVenue is SINT or XOFF
transactionCount is set only for aggregated sovereign debt deferred publication

Trading system status:

Rule
expectedReopen is expected when status is CLOSED, and omitted otherwise
expectedReopen should be in the future, and is the time of the next scheduled uptime

Resolution of expectedReopen is to the minute; any finer component is ignored.


7. Receipt ID

The receiptId is an opaque identifier issued by fairCT after a submitted message has been committed to the tape. It is the contributor's proof of submission - the authoritative record that the submission trade is on the official tape.

Receipt storage obligation

Contributors MUST collect and permanently store the receiptId for every submission. The receiptId is the only proof accepted by fairCT that a submission was made. This applies to every message type - trade reports, instrument status and trading system status. trade was submitted. Contributors affirm each day that they hold a receiptId in permanent storage for every submission trade required to be made. submitted.

What the receiptId means:

Format: 32 lowercase hexadecimal characters, fixed width. Example: 9f2c81a4d6be07351cfa92e8b4d70a6c

The receiptId is a 128-bit value. It is an opaque token with no internal structure. Store and return it exactly as issued. It is always populated.

The identifier is delivered as 16 bytes. The text form used by the REST endpoints is the lowercase hexadecimal rendering of those 16 bytes in wire order, byte 0 first, two characters per byte. No separators, no truncation, no byte reversal in either direction. Both forms are the same value and either may be stored.

PYTHON
receipt_text = raw_16_bytes.hex() # wire form -> text form for REST raw_16_bytes = bytes.fromhex(receipt_text) # text form -> wire form

Receipt Verification and Batch Correlation Lookup accept and return the text form only. An identifier that is not exactly 32 hexadecimal characters is rejected with MALFORMED_RECEIPT_ID, distinct from a well-formed identifier that is not on the tape.

Additional properties:

7.1 6.1 Receipt Verification

Contributors can verify that their stored receiptIds are valid and on tape. This endpoint is available to both Stream A and Stream B contributors.

POST /receipts/verify
Authorization: Bearer {api_key}
Content-Type: application/json

{"venueId": "XMIL", "receiptIds": ["9f2c81a4d6be07351cfa92e8b4d70a6c"]}

Request field reference:

Field Type Required Description
venueId string Required ISO 10383 MIC of the contributor venue
receiptIds array of string Required Receipt identifiers to verify, each in the 32-character lowercase hexadecimal text form. See Receipt ID.

Response:

JSON
{ "results": [ { "receiptId": "9f2c81a4d6be07351cfa92e8b4d70a6c", "valid": true } ] }

Response field reference:

Field Type Required Description
results array Required Verification result for each requested receipt identifier
results[].receiptId string Required The submitted 32-character receipt identifier
results[].valid boolean Required true when the identifier is on the tape; false when it is well-formed but not on the tape

The endpoint accepts the 32-character text form. An identifier that is not exactly 32 hexadecimal characters is rejected with MALFORMED_RECEIPT_ID; valid: false means the identifier is well-formed but not on the tape.

Receipt verification is provided by fairCT. Use this to confirm that receiptIds in your permanent storage correspond to valid tape entries.


8. Feedback REST API (Own-API Contributors - Stream B)

For Stream B contributors who submit trades via their own venue systems and are not connected via JSONL/TCP or SBE/TCP. This API delivers their receiptIds via batch correlation lookup. Correlation identifiers from any message type may be looked up, including instrument status and trading system status submissions.

Base URL: https://feedback.fairct.eu/v1 Auth: Bearer token - API key provisioned during onboarding. See key management document (forthcoming) for credential details. UAT: https://feedback-uat.fairct.eu/v1

In Sandbox/UAT, the bearer token is not validated.

Security

Bearer token over TLS is the standard security model for financial REST APIs. For contributors with specific network isolation requirements (e.g. dedicated infrastructure or managed connectivity), VPN connectivity is available on request - contact fairCT connectivity onboarding. VPN is not required to use this API.

Receipt storage obligation

Own-API contributors MUST permanently store all receiptIds retrieved via this API. The receiptId is the reconciliation and support mechanism for investigations. Every submission submitted trade must have a corresponding receipt. Gaps indicate either a rejected submission trade or a submission failure. Contributors should implement automated reconciliation as part of their submission pipeline.

8.1 Batch Correlation Lookup

Look up receipts for a batch of correlation IDs in a single request. No cursors, no server-side state.

A request carries a maximum of 100 correlation identifiers. One request at a time per contributor.

POST /receipts/lookup
Authorization: Bearer {api_key}
Content-Type: application/json

{"venueId": "XMIL", "correlationIds": ["corr-1", "corr-2", "corr-3"]}

Request field reference:

Field Type Required Description
venueId string Required ISO 10383 MIC of the contributor venue
correlationIds array of string Required Contributor correlation identifiers to look up, in the format defined for correlationId on submission (see Trade Report). Maximum 100 per request.

Response:

JSON
{ "results": [ { "correlationId": "corr-1", "receiptIds": ["9f2c81a4d6be07351cfa92e8b4d70a6c"], "status": "ACCEPTED" }, { "correlationId": "corr-2", "receiptIds": ["4b7de0913ca6852f1e08b3d95c2f4a71"], "status": "ACCEPTED" }, { "correlationId": "corr-3", "status": "NOT_FOUND" } ] }

Response field reference:

Field Type Required Description
results array Required Lookup result for each requested correlation identifier
results[].correlationId string Required The requested contributor correlation identifier
results[].status enum Required ACCEPTED | NOT_FOUND
results[].receiptIds array Required 32-character receipt identifiers, present when status is ACCEPTED

ACCEPTED means the submission is on the tape. NOT_FOUND means it is not. This endpoint does not report why a submission is not on the tape.


9. Enumeration Values

tradingSystem / tradingSystemType

Regulatory definitions from CDR 2025/1246 (amended RTS 2).

Value RTS Code Meaning SBE Value
CLOB CLOB Central limit order book 0
QUOTE_DRIVEN QDTS Quote driven market 1
AUCTION_DRIVEN PATS Auction driven market 2
RFQ RFQT Quote negotiation / RFQ 3
VOICE VOIC Voice negotiation 4
HYBRID HYBR Hybrid market 5
OTHER OTHR Other 6
- - Not supplied 0xFF

Instrument status

Value RTS Code Meaning SBE Value
ACTIVE ACTV Active, no previous status 1
SUSPENDED SUSP Suspended 2
REMOVED RMOV Delisted / removed 3
HALTED HALT Trading halt 4
RESUMED ACTV (from prior state) Resumed 5

Trading system status

Value RTS Code Meaning SBE Value
ACTIVE ACTV Open / active 1
OUTAGE OTAG Full outage 2
PARTIAL_OUTAGE POTG Partial outage 3
CLOSED CLSD Planned closure / not trading. 4
UNKNOWN - Status is not known 5

priceType

Value RTS Code Meaning SBE Value
PERCENTAGE PERC Percentage of par 0
MONETARY MONE Fixed amount (absolute monetary value) 1
YIELD YIEL Yield 2
BASIS_POINTS BAPO Basis points 3
- - Not supplied 0xFF

tradeFlags

Post-trade transparency flags. Zero or more flags may be present per trade. Flag set aligned with CDR 2025/1246 (amended RTS 2 Annex II Table 3).

Flag RTS Code Meaning SBE Bit SBE Mask
BENC BENC Benchmark trade - price derived from a benchmark rate or index rather than normal price formation 0 0x0001
NPFT NPFT Non-price forming trade - execution price not set by normal market price formation (e.g. internal transfers) 1 0x0002
TPAC TPAC Package trade - executed as part of a bundle of simultaneous transactions in multiple instruments 2 0x0004
XFPH XFPH Exchange for physical - exchange of a financial instrument position for a physical commodity 3 0x0008
PORT PORT Portfolio trade - executed as part of a portfolio of multiple instruments transacted as a package 4 0x0010
NEGO NEGO Privately negotiated trade - price agreed bilaterally, not through normal order book or quote-driven process. Valid on RM, MTF, OTF. Not valid for APA submissions. 5 0x0020
MTCH MTCH Cross as principal - venue simultaneously acts as counterparty to buyer and seller (riskless principal / matched principal). OTF only. Not valid on RM or MTF. 6 0x0040

Bits 7-63 are reserved for future flags and must be zero.

deferral

Value RTS Code Meaning SBE Value
MLF1 MLF1 Medium liquid instrument 1
MIF2 MIF2 Medium illiquid instrument 2
LLF3 LLF3 Large liquid instrument 3
LIF4 LIF4 Large illiquid instrument 4
VLF5 VLF5 Very large liquid instrument 5
VIF5 VIF5 Very large illiquid instrument 6
- - Not supplied 0 (zero byte)

supplementaryDeferral

Value RTS Code Meaning SBE Value
VOLUME_OMISSION OMIS Full volume omitted from publication 1
FULL_VOLUME_DETAILS FULO Full volume details published 2
FOUR_WEEK_AGGREGATION AGFW Aggregated over four weeks 3
FULL_AGGREGATION_DETAILS FULG Full aggregation details published 4
- - Not supplied 0 (zero byte)

CurrencyCode (SBE)

In SBE, currency is encoded as the ISO 4217 numeric code (uint16). Common values:

Currency ISO Alpha ISO Numeric
Euro EUR 978
US Dollar USD 840
Pound Sterling GBP 826
Swiss Franc CHF 756
Swedish Krona SEK 752
Danish Krone DKK 208
Norwegian Krone NOK 578
Polish Zloty PLN 985
Czech Koruna CZK 203
Hungarian Forint HUF 348
Romanian Leu RON 946

The full ISO 4217 numeric list applies. Value 0 = absent/null.


10. Error Codes

Code Description Tier SBE uint8
INVALID_ISIN ISIN format invalid Hard 1
MISSING_REQUIRED_FIELD Required field absent Hard 2
INVALID_CURRENCY Not a valid ISO 4217 code Hard 3
INVALID_MIC Not a valid ISO 10383 MIC Hard 4
INVALID_ENUM Enum value not in permitted set Hard 5
INVALID_TYPE Field value wrong type, or a value outside its documented length limit or permitted character set Hard 6
UNAUTHORIZED Auth failure or invalid key Hard 8
SERVICE_UNAVAILABLE Gateway temporarily unavailable Soft 9
INVALID_TRADE_FLAG Unknown flag code in tradeFlags Hard 10
INSUFFICIENT_TIMESTAMP_PRECISION JSONL only. Timestamp has fewer than 6 fractional digits (sub-microsecond). SBE carries a nanosecond integer, which cannot express insufficient precision - see Datetime Format. Hard 11
MALFORMED_RECEIPT_ID Receipt identifier is not 32 hexadecimal characters Hard 13

A Hard error means the message content is at fault. Correct it before you submit again. A Soft error means the submission was not processed and the content is not at fault. Submit the same message again after a short delay.

Values 7 and 12 are retired and are not reused. A submission is rejected only where it cannot be decoded into a record, or carries a value outside a register the CTP does not define. Everything else is published.

Authentication error codes

These codes apply only to authentication failures. They are a separate code space from the error codes above.

Code Description AuthError uint8
AUTH_FAILED Credentials are invalid for the requested venue 1
UNAUTHORIZED A required production credential is missing or empty 2
PROTOCOL_MISMATCH Requested protocol version is not served 3

11. Connection Lifecycle

Establishing and maintaining a fairCT connection follows these steps:

  1. TCP connect (TLS 1.3) to all three regional endpoints simultaneously.

  2. Send auth on each connection as the first message, within 5 seconds of connect or the connection is dropped.

  3. Receive the authentication acknowledgement on each connection. On an authentication error the connection closes - reconnect and investigate credentials.

  4. Submit messages (trade, instrument status, trading system status) to all three regions on each established connection.

  5. Receive receipts and errors on the same connection per region, matched to submissions via correlationId.

  6. Send ping every 5 seconds on each connection; receive pong from fairCT. A missed pong does not block further submission.

  7. Reconnect if pong stops arriving for 3 consecutive intervals - treat that regional connection as dead.

  8. Reconnect safely at any time. Resubmit any trades that did not receive receipts before the disconnect.

  9. Resend status snapshots on reconnect - after a successful authentication acknowledgement, resend current instrument status and trading system status for all instruments and trading systems.

  10. Declare planned closures before going dark. Before stopping heartbeats for a known offline period, send a trading system status of CLOSED with a future expectedReopen while still connected.

Partial outage grace period: The heartbeat mechanism provides the grace period. A partial outage is recorded only after 3 consecutive missed heartbeat intervals on that regional connection (15 seconds at the default 5s heartbeat rate). Brief TCP interruptions shorter than 3 heartbeat intervals are not recorded as partial outages.


12. SBE Reference

This section is the canonical definition of the SBE encoding. No XML schema is published; this section provides the authoritative type definitions, template IDs, and layout tables.

Type Definitions

SBE Type Size Notes
int64 8 bytes Signed 64-bit little-endian integer
uint64 8 bytes Unsigned 64-bit little-endian integer
uint32 4 bytes Unsigned 32-bit little-endian integer
uint16 2 bytes Unsigned 16-bit little-endian integer
uint8 1 byte Unsigned 8-bit integer
int8 1 byte Signed 8-bit integer
char[N] N bytes Fixed-width UTF-8 string, null-padded (zero bytes) to N. The value ends at the first zero byte; any bytes after it are ignored.
byte[N] N bytes Fixed-width opaque octet string. No padding and no byte reversal.
Timestamp 8 bytes int64 nanoseconds since Unix epoch (1970-01-01T00:00:00Z UTC)
CurrencyCode 2 bytes uint16 ISO 4217 numeric code (e.g. EUR=978, USD=840, GBP=826). Value 0 = absent.
Decimal 9 bytes int64 mantissa (8 bytes LE) + int8 exponent (1 byte). Value = mantissa x 10^exponent.

All multi-byte integers are little-endian.

Null Sentinels

Type Null value Meaning
int64 / Timestamp 0x8000000000000000 (INT64_MIN) Absent / null
uint32 0xFFFFFFFF Absent / null
uint8 enum 0xFF Absent / null (where documented per field)
uint8 deferral / supplementaryDeferral 0x00 Absent / not set
char[N] All zero bytes Absent / null
byte[16] receiptId none No null value allowed
CurrencyCode 0 Absent / null
Decimal mantissa 0x8000000000000000 (INT64_MIN) Price absent

Template IDs and Block Lengths

templateId Message blockLength Direction
1 Auth 77 Contributor -> fairCT
2 AuthAck 56 fairCT -> Contributor
3 AuthError 9 fairCT -> Contributor
10 Trade 184 Contributor -> fairCT
11 InstrumentStatus 72 Contributor -> fairCT
12 TradingSystemStatus 58 Contributor -> fairCT
21 Error 53 fairCT -> Contributor
22 Receipt2 61 fairCT -> Contributor
30 Ping 16 Contributor -> fairCT
31 Pong 16 fairCT -> Contributor

The crc32c field occupies the last 4 reserved bytes of each block.

Receipt2 (22) carries the receiptId - see Receipt (outbound).

tradeFlags Bitset (uint64)

The tradeFlags field in the Trade message is a uint64 bitmask. Multiple flags are combined with bitwise OR.

Bit and mask assignments are listed against each flag in tradeFlags.

Flag handling in SBE:

  • Bits 7-63 are reserved. Any message with non-zero reserved bits is rejected with an INVALID_TRADE_FLAG error.

Error Code uint8 Mapping

The uint8 value carried in the Error message is listed against each code in Error Codes. The values carried in AuthError are a separate code space, listed in Authentication error codes.

SBE Message Integrity

Every message carries a CRC-32C (Castagnoli) integrity check in the crc32c field, transmitted as uint32.

The CRC is computed over the entire frame - the frameLength prefix, the 8-byte SBE header, the fixed block, and any trailing variable-length data - with the 4 crc32c bytes set to zero.

On CRC inconsistency the connection is closed.

The exact variant is the one used by iSCSI, SCTP and Google Cloud Storage - reflected input and output, initial value 0xFFFFFFFF, final XOR 0xFFFFFFFF. Reference implementation:

PYTHON
def crc32c(data: bytes) -> int: crc = 0xFFFFFFFF for byte in data: crc ^= byte for _ in range(8): crc = (crc >> 1) ^ (0x82F63B78 if crc & 1 else 0) return crc ^ 0xFFFFFFFF assert crc32c(b"123456789") == 0xE3069283

The assertion is the standard check value for this CRC. An implementation that reproduces it is compatible with fairCT.


13. Frequently Asked Questions

What do I do if I don't get a receipt?

Submit the trade again. The fairCT tape is idempotent - submitting the same trade twice returns the same receiptId and does not create a duplicate record. Do not assume a trade is on the tape unless you have its receiptId. A connection drop between submission and receipt delivery means the trade is unconfirmed - always resubmit. Once received, the venue/APA must permanently store the receiptId as proof of submission.

What if I'm only connected to one or two regions?

Submit to whichever regions you are connected to. fairCT will process the trade on those regions. However, being connected to fewer than three regions is a partial outage on your side and will be recorded as such. Reconnect to all three regions as soon as possible. Each region issues its own receipt - the receiptId will be the same across all regions for an identical submission.

How do I handle a disconnect during trading hours?

Reconnect immediately. After reconnecting, resubmit any trades that did not receive a receipt before the disconnect. The CTP is idempotent - safe to resubmit. Keep a local log of submitted trades and their receipt status to identify what needs resubmission.

Can I submit to regions in any order?

Yes. Submit to all three regions simultaneously for each trade. There is no required ordering between regions.

What is the correlationId for?

It is a contributor-assigned identifier that the CTP echoes back in receipts and errors, letting you match a receipt to the submission that produced it. For Stream B contributors it is the key for Batch Correlation Lookup. It is required on every submission, must not be reused for a different message or for different versions of the same trade, and carries up to 36 characters drawn only from A-Z, a-z, 0-9, -, _ and .. A value that is too long, or that uses any other character, is rejected with INVALID_TYPE. Uniqueness is required for all canonical messages from a contributor, so that a contributor can distinguish which message is being replied to.


14. Revision History

v1.2.3 - 2026-09-01 (Draft)

v1.2.2 - 2026-08-27 (Draft)

v1.2.1 - 2026-08-18 (Draft)

v1.2 - 2026-07-29 (Draft)

Receipt ID

Version negotiation

  • An optional version field is added to auth. Absence selects the latest version.

SBE schema version 1 -> 2

  • The receipt arrives on a new template, so an existing decoder rejects it rather than misreading the wider identifier. The two receipts are both 61 bytes - the identifier grew by 8 and acceptedAt was withdrawn, cancelling out - so a decoder reading the new receipt on the old template would find exactly the length it expects and silently take the first half of the 16-byte identifier as the whole of the old 8-byte one. The new template is what makes that fail loudly.
  • Per-message CRC-32C integrity checking, carried in existing reserved bytes. blockLength unchanged for every message.

Other

v1.1 - 2026-06-18 (Draft)

Adds the CLOSED trading-system status and expectedReopen field for declaring planned closures (backward-compatible additive extension; SBE schema version 0 -> 1, blockLength unchanged).

v1.0 - 2026-05-07

First published (approved) version of the fairCT Contributor API specification.

v0.8 - 2026-04-02 (Draft)

Initial draft circulated for review.

Document version 1.2.2 · Last updated 2026-08-27