USDCx directly against Edel’s Spot order book without creating an Edel trading account or pre-depositing collateral.
Every swap settles atomically on Canton using CIP-0112 V2 user allocations:
- Zero Edel account required: authenticate with your Canton party (
senderPartyIdand optionalreceiverPartyId). - Firm short-lived quotes: quotes lock indicative pricing and depth for 20 seconds.
- Slippage protection: default
maxSlippageBpsis 100 bps (1.0%), configurable per quote, order, or submission (1to5000bps), alongside an explicitminAmountOutAtomsfloor. - Fast atomic settlement: end-to-end fill and Canton settlement typically completes in under 30 seconds.
- Integrator markup: wallets and routers can pass
integratorIdandintegratorFeeBps(up to500bps) and track accrued and settled earnings via/v2/swaps/earnings.
Swap lifecycle
Each swap order transitions through deterministic lifecycle states, visible both viaGET /v2/swaps/orders/{swapId} and in real time on the swap.order WebSocket channel:
quoted: firm quote issued byPOST /v2/swaps/quotes(valid for 20 seconds).awaiting_lock: quote accepted viaPOST /v2/swaps/orders; waiting for the user’s signed CIP-0112 V2 Canton allocation.locked: signed user allocation received byPOST /v2/swaps/orders/{swapId}/submitand verified on Canton.filled: Edel executes the swap leg against the live Spot order book within yourmaxSlippageBpsandminAmountOutAtomsbounds.settled: atomic Canton V2 settlement completes andsettlementTxIdis recorded.expired/refunded: terminal fallback states if the quote or allocation window expires before fill or if the circuit breaker halts execution and refunds the user allocation.
REST API flow
Explore and test every endpoint interactively in the Swaps REST API.1. Discover pairs and book depth
pairId, spotMarketId, baseAsset, quoteAsset (USDCx), bestBidPriceAtoms, bestAskPriceAtoms, maxSellBaseAtoms, maxBuyBaseAtoms, maxBuyQuoteAtoms, spotTakerFeeBps, rfqFeeBps and networkFeeAtoms.
2. Request a firm quote
maxSlippageBps is omitted, Edel defaults to 100 bps (1.0%). Quotes expire after 20 seconds.
3. Accept the quote idempotently
idempotencyKey safely replays the created order ("replayed": true) without creating a duplicate swap.
4. Submit the signed Canton V2 allocation
After the user signs the CIP-0112 V2 allocation on Canton, submit the allocation contract IDs and expiry timestamp:order, the Canton settlementTxId, and circuitBreakerTripped.
5. Track status and integrator earnings
- Read a single swap:
GET /v2/swaps/orders/{swapId} - List swaps:
GET /v2/swaps/orders - Read integrator markup earnings:
GET /v2/swaps/earnings
Real-time WebSocket channels
Subscribe over the Edel realtime WebSocket (see the WebSockets overview for connection details) instead of polling REST:swap.quote
Public market-scoped stream of indicative Spot swap quotes, best bid/ask,
available book depth and fee parameters per pair.
swap.order
Public stream of per-swap RFQ lifecycle transitions (
quoted,
awaiting_lock, locked, filled, settled, expired, refunded) keyed
by swapId.RealtimeSwapQuotePayload and RealtimeSwapOrderPayload) and AsyncAPI specification.