Skip to main content
Traditional exchange technology forces financial institutions into a choice: use a vendor’s platform and accept permanent dependency, or build from scratch at massive cost. The Trusset Order Book eliminates this trade-off. You deploy the smart contracts. You own the infrastructure. You control the rules.

Why This Matters

You Own It

Custody and settlement contracts deploy to your instance. Control upgrades, parameters, and access. Switch providers anytime—your infrastructure stays yours.

Regulatory-Ready

Immutable audit trails. Atomic settlement. Best execution through transparent order books. Compliance enforces automatically before every trade.

Non-Custodial

Assets remain in smart contracts you control. No counterparty risk from technology providers. Users verify balances on-chain anytime.

Institutional Performance

Off-chain matching delivers sub-second order placement. On-chain settlement guarantees finality. The best of both worlds.

How It Works

The order book uses a hybrid architecture: matching happens off-chain for speed, settlement happens on-chain for security.
  1. Traders deposit tokens into the custody contract
  2. Orders route through the matching engine instantly
  3. Matched trades settle atomically on-chain
  4. Failed settlements revert completely—no partial states
Your institution operates the matching engine. The settlement operator can execute matched trades but cannot access user funds. All balances remain verifiable on-chain.

Order Types

Limit Orders execute at your specified price or better. Orders remain active until filled, cancelled, or expired. Market Orders execute immediately at the best available price. Use when speed matters more than price precision. Time-in-Force Options:
  • GTC (Good Till Cancelled)
  • IOC (Immediate or Cancel)
  • FOK (Fill or Kill)

The Custody Contract

Three balance states provide complete transparency:
StateDescription
Total BalanceAll tokens deposited by the user
Available BalanceFree for new orders or withdrawal
Locked BalanceCommitted to open orders
// Deposit to start trading
custody.deposit(tokenAddress, amount);

// Check available balance
custody.getAvailableBalance(userAddress, tokenAddress);

// Withdraw anytime from available balance
custody.withdraw(tokenAddress, amount);

Settlement

Batch settlement processes multiple trades in a single transaction:
  • Reduces gas costs significantly
  • Ensures atomic execution—all trades settle or none do
  • Cryptographic proof validates order book state
  • Invalid settlements revert automatically

Compliance Built In

The order book inherits your token’s transfer restrictions automatically. Your Identity Verification Contract validates counterparties before settlement. Non-compliant trades reject at the contract level. KYC verification, geographic restrictions, and holding limits all enforce through your existing token configuration. No additional compliance layer required.

Getting Started

1

Create Order Book

Deploy through the API or Issuers Dashboard. Pair your security token with a quote token (typically a stablecoin).
2

Configure Parameters

Set minimum order sizes, tick sizes, and fee structure. Maker/taker fees configure independently.
3

Go Live

Order book activates immediately. Integrate via REST API and WebSocket for real-time updates.

White Label Ready

Enable the Order Book module in your white label deployment for a complete trading interface:
  • Real-time order book visualization
  • TradingView charts
  • Order entry and position management
  • Wallet connection and custody deposits
Your branding. Your compliance rules. No frontend development required.

Security Architecture

FeatureBenefit
Non-custodialUsers control deposits and withdrawals
Atomic settlementTrades complete fully or revert entirely
UUPS proxy patternUpgradeable for security patches
Operator limitsSettlement operator cannot access funds
On-chain verificationAll balances verifiable via contract reads