One order's whole path: it commits before it rests, can match without being delivered, and passes each token's own compliance path before anything is final.
A venue is a tenant's own exchange with its own members, calendar, fee schedule and on-chain identity, and a tenant runs as many venues as it needs. An instrument is one trading line inside a venue, so the same pair listed on two venues has two separate books and prices.
Listing grants no custodian role to the venue contract or any platform account. Both legs settle through the venue's escrow for DALP tokens and plain ERC-20s alike, and an approved bust lends the operations signer a temporary custodian role only to reverse a delivered trade.
A fill is not delivery. With a positive holding period, both legs stay locked in escrow until delivery runs. With a holding period of zero, delivery happens inside the fill transaction.
Why trading needs a venue
Issuance is a single event. A primary offering sells newly created units once, and the register then closes to that offer. What a holder does with the position afterward is a separate question the sale itself never resolves.
An institutional buyer prices that exit gap in before subscribing. An instrument nobody can exit is worth less to hold than one that trades, and that discount lands on the offering itself. A venue turns a single sale into an instrument with an ongoing secondary market.
Trading sits downstream of issuance inside the same working life. Asset Lifecycle places trade settlement in the Service stage beside paying coupons, freezing holdings and collecting fees, following the contract-governed first sale in Primary Offering. Venue journey traces one security from listing to session close.
Why the venue runs on the platform
Running a venue beside the asset platform creates a seam between the exchange's eligibility list and the issuer's token rules. Every mid-trade custody hop between seller and buyer introduces a point where the venue can accept a trade that the token's compliance contract would refuse.
DALP removes that seam by holding traders' units in one venue-controlled escrow that pays out only through each token's own transfer function. The seller's deposit into escrow runs the token's sender-side checks, and delivery out of escrow runs the buyer's recipient checks. Rules scoped to the seller as sender judge the (seller, buyer) pair when the trade fills, and a refused pair fails the fill. A trade with a holding period is not judged on its pair again at delivery. A delivered trade lands in the asset's own ledger beside coupons, freezes and fee collections.
If the token refuses a recipient at delivery, the trade is not undone: the refused leg sits in the recipient's free escrow balance until the recipient passes compliance again. Reversing a delivered trade uses custodian forced transfers, which bypass on-chain compliance, so DALP pre-checks the reversal transfers before accepting the bust. A platform administrator or organisation owner sets each instrument's maker and taker fees and fee account on chain with a venue operator signer.
What a venue is, and what an instrument is inside it
A venue is a tenant's own exchange, run under its own admission policy, calendar, fee schedule and on-chain identity. A tenant can operate separate venues for retail members, institutional desks or jurisdictions. Private instruments narrow admission further to named participants, while the token's compliance contract still decides every delivery.
In the Console, operators manage venues and instruments from Asset lifecycle → Venues, and traders place orders from My assets → Trading. Venue operations and Trading cover those screens.
The trading venue is the “Secondary market” licensed module and ships disabled by default. When disabled for the deployment, venue routes return not found and the Console hides venue screens. When disabled for one organisation, reads stay available while writes fail with HTTP 403 platform.module.DISABLED (DALP-20531, data.module set to tradingVenue). FIX drop copy also requires the surveillance module.
An instrument is one trading line on one venue: a base token, a quote token, an order book, a price band, a fee schedule and a holding period. Listing the same pair on two venues creates two independent instruments, so halting one leaves the other trading.
At most one instrument per token on each system acts as that token's reference instrument, sending its official close to the token's price feed. Each instrument calculates its close by either the last trade price or a volume-weighted average over a configured pre-close window. Sessions without a settled trade fall back to the auction price and then the previous close, or straight to the previous close, according to the instrument's “No-trade fallback” setting.
A venue contains instruments, and only a token's reference instrument sends its official close to the token's price feed.
Listing: what a venue gets and what stays with the issuer
Listing grants no custodian role to the venue contract or any platform account. The venue instructs its escrow only to lock, unlock, relock and pay out units that owners committed. A venue admin can also sweep surplus units sent to the escrow outside any owner's balance. No path in the venue contract reaches a forced transfer, address freeze or recovery on a listed token.
The venue and its escrow follow their factory implementation, so a system manager or add-on registry can upgrade their code together. The escrow exposes two emergency exits:
- Custodian transfer (DALP tokens): Any holder of the token's custodian role can move an owner's free and locked escrow units through an ordinary token transfer, so the recipient must still pass compliance. On a plain ERC-20, no contract path can force a transfer.
- Identity recovery: Any account can move a lost wallet's free escrow balance to the replacement wallet named in the identity registry.
Temporary custodian lending for trade busts
A bust of a delivered trade always requires a second operator's approval. Once approved or resumed, DALP temporarily lends the custodian role on the base and quote tokens to the organisation's operations signer, using the listing signer to grant the role only where the operations signer does not already hold it.
An hourly background check renounces any lent role left open after concurrent busts finish, while never touching a role that a token admin granted directly. If renouncing fails or the operations signer changes before renouncing completes, a token admin revokes the role on the token's Permissions page. Trade busts covers the operator steps.
How the venue escrow holds committed units
Every listed token uses the venue's escrow add-on, which tracks free and locked balances per owner and token. When a trader places an order, the venue checks the signature, pulls only the shortfall not covered by free balance and locks the order amount.
The trader grants one ERC-20 approval to the escrow, for DALP tokens and plain ERC-20s alike, and orders covered by free balance need no pull. The escrow carries its own on-chain identity with a dalpEscrow claim on the compliance bypass list, so deposits run sender-side checks while payouts run full recipient checks. Tokens with holding rules exempt the dalpEscrow claim.
Listing preconditions
A platform administrator or organisation owner can list a token when four conditions hold: the listing signer has the venue operator role, the organisation has an on-chain operations signer, the venue has a recorded submitter wallet, and that wallet has the venue submitter role. Listing requires no hold feature and no reserver authorisation from the issuer.
A newly listed instrument stays pending until its go-live checks complete: an active data feed for the base token, an eligible fee account, a trading schedule, a trading model, a valuation price, any required floor price and matching venue listing rules. Any venue-contract revert returns the contract error name so the caller sees which rule failed.
The venue contract moves units only through its escrow, and the path toward a forced transfer, a freeze or a recovery ends before it reaches the token.
What the venue limits for every instrument, and what it only suggests
A venue can cap the order types and time-in-force values that its instruments accept. That ceiling applies to existing and new instruments alike, though orders already resting stay on the book. Saving a cap that would leave any listed instrument with no valid order type or time in force is refused.
A venue can also store defaults for maker and taker fees, the fee account, the market-order protection band and the holding period. The listing wizard copies these defaults once when opened, and later venue changes do not modify listed instruments. A venue admin edits both on Listing rules, subject to maker-checker approval when enabled. See Listing rules.
Settlement: a fill is not delivery
Settlement starts from a fill. Trading on a venue explains how a resting order becomes one.
A matched trade is reported, priced and published straight away. With a positive holding period, both legs stay locked in escrow until the window ends, when each token's compliance checks run at delivery. With a holding period of zero, delivery executes atomically inside the fill transaction, so any later bust reverses a delivered trade with custodian forced transfers.
Undoing a trade before delivery
Before delivery, nothing has moved between wallets, so an undo unlocks both legs back to their owners' free escrow balances without moving tokens or refunding fees. Three triggers fire the same DeliveryUndone event:
- Approved bust: An operator proposes a bust within 24 hours and a second operator approves it before delivery.
- Outside cause at delivery (
refused): A paused token, a custodian-shrunk trade lock, or a frozen sending account or escrow. A receiver added to the compliance bypass list during the holding period is delivered to when the token admits it. - Automatic undo (
reserver-removed): The settlement submitter undoes a pending trade automatically without a bust proposal.
An outside-cause undo corrects the reported price, removes the trade from clean history and notifies both counterparties.
Delivery gas stipends and parked legs
Each paid leg at delivery receives its own gas budget, the delivery gas stipend (1,030,000 gas by default, configurable between 500,000 and 1,143,000 gas). Delivery calls sent with insufficient gas to cover every leg revert with Insufficient and change nothing.
Any receiver-caused refusal at delivery, including exhausting the stipend or dropping an identity claim during the holding period, does not undo the trade. Instead, the venue pays every eligible leg and books each refused leg to its receiver's free escrow balance as a parked leg, emitting DeliveryLegParked.
Each leg (base, quote and fees) is judged independently, and the trade counts as delivered. Parked units stay in the receiver's free balance until the receiver passes compliance and withdraws them. While unverified or frozen, the receiver cannot withdraw them or place orders against them (MakerCannotReceiveToken).
A buyer or seller whose wallet identity recovery marked lost is never paid by a fill or a delivery, in any token. A delivery books that receiver's leg to its free escrow balance, and an immediate fill to it fails as a refused transfer. The lost wallet cannot withdraw a parked leg. Anyone can move it to the replacement wallet with the escrow's token recovery, as Recovering a lost wallet describes. Fee legs go to accounts the venue operator configures, so neither a fill nor a delivery checks them.
A bust lets an operator undo an erroneous trade within 24 hours: unlocking both legs before delivery, or reversing both legs with custodian forced transfers after delivery. See Trade busts.
One event, two triggers: an operator's bust and an outside cause at delivery both fire the identical undo, with identical bookkeeping.
Market data: what an instrument publishes
An instrument records its own prices from settled trades: an official close per session, a ticker, candles and live streams. Undone trades drop out of tickers and candles as well as the ledger. Every instrument follows a trading calendar and delivers venue events to each participant's notification list.
See Venue market data for closes, streams, watchlists, price alerts, the trading calendar and how a participant hears about an order.
Announcements
A venue operator publishes an announcement to the whole venue or to one instrument, and an issuer can publish one about its own security, which waits for a venue operator's approval. Announcements covers scheduling, attachments, issuer announcements, history and publication windows.
Controls and evidence
Admission is checked at order intake: the maker must be admitted to the venue and, on a private instrument, admitted to that instrument. An order's recipient, the wallet that receives what the trade delivers, is the maker unless an API order names another wallet. When it does, intake also refuses the order with ineligible-wallet if that wallet is blocked on the venue, barred from the instrument, not admitted to the venue or, on a private instrument, not a listed participant, and with invalid-order if one of those checks cannot be read. Blocking a wallet, or barring it from an instrument, cancels the open orders it placed and those that name it as recipient. An order another maker placed is cancelled with “The order's recipient can no longer receive trades on this venue” rather than the operator's reason. Revoking venue admission leaves existing resting orders on the book until cancelled on Orders, whereas removing a wallet from a private instrument cancels its open orders, and those that name it as recipient, in one batch. An instrument denial bars one wallet from one instrument with a recorded reason while leaving other instruments open.
Access profiles and book depth
Every instrument has a default access profile (“Full access” on public instruments, “Watchlist only” on private ones) governing order placement, watchlist visibility, order book depth and permitted instrument groups. An organisation owner or platform administrator can set per-participant overrides with a reason and wallet verification. Missing override fields fall back to the profile, and denials always win.
Orders from a participant whose allowed instrument groups exclude both the instrument's group and all fail with instrument-. Depth visibility depends on entitlement:
Depth reads and stream snapshots include depthAccess (allowed, top-of-book or none). Operators can query a participant's full venue access view, including admission, blocks, freezes, memberships and desk limits. Querying a non-participant returns 404 TRADING_.
Audit trail, trading members and surveillance
Evidence is identity-linked, sequenced and venue-scoped, covering signed orders, book events, session transitions, fills, deliveries and undos. DALP replays this trail to rebuild book state, FIX drop-copy reports and daily surveillance files. Order commits, fills, deliveries and undos also land on chain, and the retention policy archives expired records.
Every order records a trading member: the broker assigned to the participant at the time of the order, or the participant itself when unassigned. Changing a broker affects only subsequent orders, and only venue operators see the member field, though on-chain trade events still expose buyer and seller wallets.
Configuration changes require the corresponding venue role and maker-checker approval while the Trading venues switch under Approvals is enabled. See Venue controls for who can change a running venue and who must agree, FIX drop copy and daily surveillance files.
The integration contract
The Trading Venue exposes its routes under /. Chain-writing administration calls can return 202 with a status URL to poll.
Placing or amending an order returns 200 with the order ID and hash once its escrow commitment confirms on chain. If confirmation is still pending or the caller requested asynchronous execution, the route returns 202 with a Location header pointing to the order-placement status route until it resolves to placed or failed.
An order's own status and a trade's delivery status are two separate tracks, and reading one for the other is the mistake that costs an integrator a real position. The figure below omits one open state: suspended, which an instrument that suspends orders outside its price band uses between working and a close or a return to the book. It counts as open, so the order still holds its reservation.
An order's own status: its open states, closing into one of five terminal states.
A trade's delivery status, tracked separately from the order's own status: pending until the due delivery runs, then delivered or undone.
In the API, a trade's status is pending-delivery, delivered or undone, and an undone trade carries an undoReason of bust, refused or reserver-removed. refused means an outside cause blocked delivery. Any other refusal parks the refused leg, and the trade is delivered. reserver-removed marks the settlement submitter's automatic undo of a pending trade, which needs no bust proposal. An order also carries a settlementStatus that rolls up its trades: none, pending-settlement, partially-settled, completed or settlement-failed.
The full contract, every status, every field, every error, is in the API reference.
Place a signed order, treat it as working only after its commitment confirms, and treat units as received only after the trade reports delivered.
Frequently asked questions
What is the difference between a venue and an instrument?
A venue is a tenant's own exchange: its own on-chain identity, access manager, admission policy, calendar, and escrow, and a tenant runs as many as it needs. An instrument is one trading line on one venue. The same pair listed on two venues is two instruments, with separate order books, reservations, trade histories, and prices, and halting one leaves the other trading.
What does an issuer give up by listing a token on a venue?
Listing grants no custodian role to the venue contract and requires no hold feature or reserver authorisation. Traders grant ERC-20 approval to the venue escrow, which moves only committed order amounts and carries an exempted dalpEscrow identity claim. The organisation's operations signer receives a temporary custodian role only when an approved bust must reverse a delivered trade, and renounces it afterward.
Who holds the assets while an order is working?
The venue's escrow holds committed units for DALP tokens and plain ERC-20s alike, separating free balances from locked order amounts. Delivery transfers locked units out, while an unlock returns them to the owner's free balance for withdrawal. Owners can reclaim locks after order expiry or cancel orders directly on chain without DALP.
A venue operator or submitter can cancel individual orders or bulk-cancel a trader's orders by incrementing their cancel epoch by one per call. Identity recovery uses the submitter's bulk cancel for every wallet it recovers, so a lost wallet's orders stop matching and their locks return to its escrow balance, which the recovery pays to the replacement wallet. Because epochs never decrease, two concurrent bulk cancels against the same epoch race and the second reverts, so clients read the current epoch immediately before sending. The remaining escrow exits are admin surplus sweeps, custodian transfers on DALP tokens and identity recovery of a lost wallet's free balance.
Can the operator reverse a trade?
Only through a bust, proposed within 24 hours of the trade once neither of its orders is still open: before delivery it unlocks both legs to their owners' free balances, and after delivery it reverses the trade with custodian forced transfers. Trade busts covers who approves a bust and how each kind runs.
Is an undo the same as a refund?
No. A refund returns something that was paid. Before delivery, nothing has been paid: both legs are still locked in the escrow, so an undo unlocks them back to their owners' free balances and moves nothing. A bust of a delivered trade is different: forced transfers move both legs, both fees and any VAT paid on chain back, which reverses the delivery itself.
Who sets trading fees and who receives them?
Each instrument sets its own maker and taker fees in basis points of the quote leg (zero is valid) and its fee account at listing. A platform administrator or organisation owner updates them with a venue operator signer.
Fees move at delivery inside the same transaction to the instrument's fee account or an explicit settlement fee route of up to eight recipients (Invalid rejects longer routes), capped at the order's signed maximum. Each fill pays the fee in force at the fill on its own quote amount, so a fee change never charges or refunds an earlier fill of the same order. The cap grows with the order's filled quantity: an order's fees so far, including the fixed fees it already paid, may not pass its signed maximum rate on the quantity filled so far, so a small first fill cannot use up the whole order's fee allowance. A held trade pays its fees to the fee account the instrument had when the trade filled, even if the operator changes the fee account during the holding period.
An explicit fee route pays only accounts on the venue's allowed fee-recipient list, and the venue reverts a route that pays any other account (FeeRecipientNotAllowed). DALP keeps that list in step with the fee types of every fee schedule in force or scheduled to start, and with the on-chain VAT recipient. When an approved fee schedule change or VAT policy change adds or drops a recipient, the venue operator who applies it signs one list write. A fee schedule change is recorded only once that write confirms on chain, and DALP waits for the confirmation before it answers. If the write is still unconfirmed when that wait runs out, DALP returns the change as approved, with the schedule pending and no version, until an operator reconciles the approval. When the venue's on-chain approval rules require a second approver for the list write, DALP proposes it on the venue's access manager instead and the change waits for on-chain approval (VENUE_). Once a second holder of the role approves the proposal, applying the same change again sends the approved write. An account leaves the list once no fee schedule in force or scheduled pays it and it is not the VAT recipient. The instrument's fee account is not added to the list by itself. A venue with an empty list settles no explicit route, and DALP holds a fill whose route pays an unlisted account until the list write confirms and an operator retries it.
Does the venue provide liquidity or market makers?
No. The venue matches and settles orders, and it never supplies capital or acts as a counterparty. Convening liquidity stays a decision for the operator.