Edel Swaps (RFQ) lets any Canton wallet or aggregator swap tokenized equities and 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 (senderPartyId and optional receiverPartyId).
  • Firm short-lived quotes: quotes lock indicative pricing and depth for 20 seconds.
  • Slippage protection: default maxSlippageBps is 100 bps (1.0%), configurable per quote, order, or submission (1 to 5000 bps), alongside an explicit minAmountOutAtoms floor.
  • Fast atomic settlement: end-to-end fill and Canton settlement typically completes in under 30 seconds.
  • Integrator markup: wallets and routers can pass integratorId and integratorFeeBps (up to 500 bps) and track accrued and settled earnings via /v2/swaps/earnings.
Use the venue base URLs for TestNet or MainNet from the platform introduction.

Swap lifecycle

Each swap order transitions through deterministic lifecycle states, visible both via GET /v2/swaps/orders/{swapId} and in real time on the swap.order WebSocket channel:
  1. quoted: firm quote issued by POST /v2/swaps/quotes (valid for 20 seconds).
  2. awaiting_lock: quote accepted via POST /v2/swaps/orders; waiting for the user’s signed CIP-0112 V2 Canton allocation.
  3. locked: signed user allocation received by POST /v2/swaps/orders/{swapId}/submit and verified on Canton.
  4. filled: Edel executes the swap leg against the live Spot order book within your maxSlippageBps and minAmountOutAtoms bounds.
  5. settled: atomic Canton V2 settlement completes and settlementTxId is recorded.
  6. 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

Each pair returns pairId, spotMarketId, baseAsset, quoteAsset (USDCx), bestBidPriceAtoms, bestAskPriceAtoms, maxSellBaseAtoms, maxBuyBaseAtoms, maxBuyQuoteAtoms, spotTakerFeeBps, rfqFeeBps and networkFeeAtoms.

2. Request a firm quote

If maxSlippageBps is omitted, Edel defaults to 100 bps (1.0%). Quotes expire after 20 seconds.

3. Accept the quote idempotently

Re-sending the same 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:
The response returns the updated 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.
Both channels are also defined in the published realtime-streams.proto (RealtimeSwapQuotePayload and RealtimeSwapOrderPayload) and AsyncAPI specification.