Skip to main content

Protocol tables

Numeric identifiers are stable wire values. Your connection bundle lists the protocols enabled for your account.

Reject registry​

HTTP status is the canonical error mapping. TCP is the legacy numeric adapter; a dash means no mapping. FIX uses extension tag 9101. FIXP uses its business-reject category, which can be coarser. WebSocket execution events carry the event's rejectCode unchanged.

Canonical codeHTTPTCP adapterFIX 9101FIXP reason
max_fills_per_action_exceeded400-10007
app_attribution_rejected40320610577
app_limit_exceeded42910710587
sandbox_environment403-10597
risk_would_exceed_available_usdc400-10017
insufficient_spot_asset400-10027
insufficient_shares400-10037
insufficient_usdc400-10047
nonce_below_floor4092032037
nonce_outside_window4092052057
nonce_replayed4092042047
nonce_mismatch4092012017
post_only_requires_passive_limit_order400-10097
post_only_would_cross400-10107
fok_not_filled400-10117
reduce_only_qty_exceeds_position400-10127
reduce_only_invalid_side400-10137
spot_notional_below_minimum400-10147
price_must_be_positive400-10157
qty_must_be_positive400-10167
price_not_aligned_to_tick400-10177
qty_not_aligned_to_lot400-10187
qty_exceeds_max400-10197
fee_exceeds_notional400-10207
duplicate_order_id409-10217
idempotency_key_conflict409-10227
trading_halted5031031037
unauthorized_cancel403-10237
order_not_open400-10247
invalid_amend400-10257
account_market_open_order_cap_exceeded400-10267
account_open_order_cap_exceeded400-10277
price_level_order_cap_exceeded400-10287
book_depth_exceeded400-10297
insufficient_balance400-10307
self_trade_prevented400-10317
order_not_found404-10327
rate_limited4291011017
backpressure5031001007
runtime_unavailable503-10337
invalid_stp_mode400-103412
unknown_variant400-10351
unknown_field400-10361
missing_field400-10371
schema_violation400-10381
invalid_signature40120020011
market_not_found4043003007
timestamp_out_of_window400106010607
expired400-10397
engine_rejected400-10007
auth_required40120020011
permission_denied403-104211
invalid_request400-10431
unknown_reject400-10447
risk_credit_limit400-10457
open_order_limit400-10467
duplicate_or_stale409-10477
machine_auth_replay409-10487
invalid_order_entry_credentials40120020011
nonce_reservation_failed409-10497
duplicate_nonce4092012017
session_expired40120020011
ledger_degraded5031041047
invalid_magic400117
unsupported_version400227
idempotency_replay4091021027
session_violation4002022027
account_not_found4043013017
cross_account403-10502
duplicate_client_order_id409-10513
unknown_original_client_order_id404-10524
unresolved_order_id404-10535
session_not_established401-10546
empty_mass_quote400-10559
status_not_found404-105610

Binary rejection numbers​

Numbers emitted directly by binary order entry. A code that appears in both tables has the same meaning.

Wire nameNumber
InvalidMagic1
UnsupportedVersion2
BackpressureFull100
RateLimitExceeded101
IdempotencyReplay102
TradingHalted103
LedgerDegraded104
AppLimitExceeded107
AppAttributionRejected206
AuthFailed200
NonceReuse201
SessionViolation202
NonceBelowFloor203
NonceSpent204
NonceAboveWindow205
MarketUnknown300
AccountUnknown301
InternalError500
TimestampOutOfWindow1060

InternalError reports an internal admission failure. It does not identify a client session violation. Decoders must handle code 500.

Reading a reject​

A rejected order returns the canonical code over HTTP, in 9101 on FIX and as the reason on FIXP. For example, a post-only order that would cross the book returns HTTP 400 with post_only_would_cross, FIX 9101=1010 and FIXP reason 7.

Other 503 codes are transient. Retry with backoff and check GET /api/v1/readiness. If a 503 arrives after you sent an order, do not resend it blindly: reconcile by idempotency key through the order receipt first.

SBE Order Entry schema​

Schema ID 1, schema version 3, semantic version 1.2. FIXP session messages use this schema; field IDs and enum values follow it, not FIX tag semantics. Fixed payload integers are little-endian; the SOFH envelope is big-endian. GET /api/v1/fixp/schema returns the schema XML.

SOFH envelope​

Total length includes this 6-byte prefix. Encoding type is 0x5BE0. Both prefix fields are big-endian; the SBE header and body follow.

FieldOffsetBytes
messageLength04
encodingType42

messageHeader​

FieldOffsetBytes
blockLength02
templateId22
schemaId42
version62

groupSizeEncoding​

FieldOffsetBytes
blockLength02
numInGroup22

varString​

FieldOffsetBytes
length02
varData2variable

Side​

ValueEncoding
Bid1
Ask2

OrdType​

ValueEncoding
Market1
Limit2

TimeInForce​

ValueEncoding
Gtc1
Ioc3
Fok4
PostOnly5

StpMode​

ValueEncoding
CancelMaker1
CancelTaker2
Reject3
SkipSelf4

Book​

ValueEncoding
Yes1
No2

ExecType​

ValueEncoding
New0
Trade1
Canceled2
Replaced3
PendingNew4
PendingReplace5
Rejected6
Restated7
OrderStatus8
PendingCancel9

OrdStatus​

ValueEncoding
New0
PartiallyFilled1
Filled2
Canceled4
Replaced5
Rejected8

FlowType​

ValueEncoding
NoneFlow0
Unsequenced1
Idempotent2
Recoverable3

NegotiationRejectCode​

ValueEncoding
Unspecified0
Credentials1
FlowTypeNotSupported2
AlreadyNegotiated3

EstablishmentRejectCode​

ValueEncoding
Unspecified0
Credentials1
Unnegotiated2
AlreadyEstablished3
KeepaliveInterval4

TerminationCode​

ValueEncoding
Finished0
UnspecifiedError1
ReRequestOutOfBounds2
ReRequestInProgress3
Unnegotiated4
Unestablished5
KeepaliveExpired6

Scalar types​

TypePrimitiveBytesNull value
AccountIduint820-
OrderIduint832-
MarketIduint648-
Priceuint64818446744073709551615
Qtyuint648-
Timestampuint648-
ClOrdIdchar64-
ExecIdchar24-
RefMsgTypechar2-
RefIduint3244294967295
Reason16uint162-
BoolByteuint81-
SessionIduint816-
SeqNouint648-
KeepaliveMsuint648-
ControlEpochuint648-

NewOrderSingle (template 1)​

Available since schema version 0. Fixed block: 122 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
account1AccountId64200-
marketId55MarketId8480-
price44Price928018446744073709551615
orderQty38Qty10080-
expireTime126Timestamp10880-
side54Side11610-
ordType40OrdType11710-
timeInForce59TimeInForce11810-
book9100Book11910-
stpMode7928StpMode12010-
reduceOnly9101BoolByte12110-

OrderCancelRequest (template 2)​

Available since schema version 0. Fixed block: 188 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
origClOrdId41ClOrdId64640-
orderId37OrderId128320-
account1AccountId160200-
marketId55MarketId18080-

OrderCancelReplaceRequest (template 3)​

Available since schema version 0. Fixed block: 209 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
origClOrdId41ClOrdId64640-
cancelOrderId37OrderId128320-
account1AccountId160200-
marketId55MarketId18080-
price44Price1888018446744073709551615
orderQty38Qty19680-
side54Side20410-
ordType40OrdType20510-
timeInForce59TimeInForce20610-
book9100Book20710-
stpMode7928StpMode20810-

OrderMassCancelRequest (template 4)​

Available since schema version 0. Fixed block: 93 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
account1AccountId64200-
massCancelRequestType530BoolByte8410-
expectedCompletedPurgeEpoch9102ControlEpoch8583-

Repeating group targets (ID 552), entry block 9 bytes:

FieldIDTypeOffsetBytesSince versionNull value
marketId55MarketId080-
side54Side810-

OrderStatusRequest (template 5)​

Available since schema version 0. Fixed block: 116 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
account1AccountId64200-
orderId37OrderId84320-

MassQuoteRequest (template 6)​

Available since schema version 2. Fixed block: 92 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
account1AccountId64200-
marketId55MarketId8480-

Repeating group quoteEntries (ID 295), entry block 117 bytes:

FieldIDTypeOffsetBytesSince versionNull value
origClOrdId41ClOrdId0640-
cancelOrderId37OrderId64320-
price44Price968018446744073709551615
orderQty38Qty10480-
side54Side11210-
ordType40OrdType11310-
timeInForce59TimeInForce11410-
book9100Book11510-
stpMode7928StpMode11610-

OrderMassStatusRequest (template 7)​

Available since schema version 2. Fixed block: 93 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
account1AccountId64200-
marketId55MarketId8480-
side54Side92100

ExecutionReport (template 10)​

Available since schema version 0. Fixed block: 203 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
orderId37OrderId0320-
clOrdId11ClOrdId32640-
execId17ExecId96240-
marketId55MarketId12080-
price44Qty12880-
orderQty38Qty13680-
lastQty32Qty14480-
cumQty14Qty15280-
leavesQty151Qty16080-
avgPx6Qty16880-
transactTime60Timestamp17680-
execType150ExecType18410-
ordStatus39OrdStatus18510-
side54Side18610-
feeMicros9102Qty18782-
transactTimeNs9103Timestamp19582-

Variable field text (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

OrderCancelReject (template 11)​

Available since schema version 0. Fixed block: 164 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
clOrdId11ClOrdId0640-
origClOrdId41ClOrdId64640-
orderId37OrderId128320-
cxlRejReason102Reason1616020-
ordStatus39OrdStatus16210-
cxlRejResponseTo434BoolByte16310-

Variable field text (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

BusinessMessageReject (template 12)​

Available since schema version 0. Fixed block: 10 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
refMsgType372RefMsgType020-
businessRejectRefId379RefId2404294967295
businessRejectReason380RefId6404294967295

Variable field text (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

Negotiate (template 100)​

Available since schema version 0. Fixed block: 25 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
timestamp60Timestamp1680-
clientFlow39002FlowType2410-

Variable field credentials (ID 39003) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

NegotiationResponse (template 101)​

Available since schema version 0. Fixed block: 25 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
requestTimestamp39004Timestamp1680-
serverFlow39005FlowType2410-

NegotiationReject (template 102)​

Available since schema version 0. Fixed block: 25 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
requestTimestamp39004Timestamp1680-
code39006NegotiationRejectCode2410-

Variable field reason (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

Establish (template 103)​

Available since schema version 0. Fixed block: 40 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
timestamp60Timestamp1680-
keepaliveMs39007KeepaliveMs2480-
nextSeqNo39008SeqNo3280-

Variable field credentials (ID 39003) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

EstablishmentAck (template 104)​

Available since schema version 0. Fixed block: 40 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
requestTimestamp39004Timestamp1680-
keepaliveMs39007KeepaliveMs2480-
nextSeqNo39008SeqNo3280-

EstablishmentReject (template 105)​

Available since schema version 0. Fixed block: 25 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
requestTimestamp39004Timestamp1680-
code39009EstablishmentRejectCode2410-

Variable field reason (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

Sequence (template 106)​

Available since schema version 0. Fixed block: 8 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
nextSeqNo39008SeqNo080-

RetransmitRequest (template 107)​

Available since schema version 0. Fixed block: 40 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
timestamp60Timestamp1680-
fromSeqNo39010SeqNo2480-
count39011SeqNo3280-

Retransmission (template 108)​

Available since schema version 0. Fixed block: 40 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
requestTimestamp39004Timestamp1680-
nextSeqNo39008SeqNo2480-
count39011SeqNo3280-

Terminate (template 109)​

Available since schema version 0. Fixed block: 17 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
sessionId39001SessionId0160-
code39012TerminationCode1610-

Variable field reason (ID 58) follows the fixed content: little-endian uint16 UTF-8 byte length, then exactly that many bytes.

FinishedSending (template 110)​

Available since schema version 0. Fixed block: 8 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.

FieldIDTypeOffsetBytesSince versionNull value
nextSeqNo39008SeqNo080-

FinishedReceiving (template 111)​

Available since schema version 0. Fixed block: 0 bytes. Offsets are relative to this block, excluding SOFH and SBE headers.