Skip to main contentSkip to FAQSkip to contact

TetraFi is a non-custodial settlement protocol for institutional stablecoin OTC trading. This documentation covers everything you need to integrate - from architecture concepts to SDK reference to deployment guides.

TetraFi routes institutional-grade stablecoin orders ($1M-$10M+) to competing solvers via sealed RFQ auctions. The protocol handles compliance verification, escrow, atomic DvP settlement, and immutable audit trails - all on-chain, all non-custodial.

TetraFi never holds, controls, or has access to user funds. All settlements execute through smart contract escrow with atomic Delivery versus Payment (DvP).

PathBest ForSetup Time
TypeScript SDKStandard server-side integration~1 day
Python SDKData pipelines, analytics, Python backends~1 day
REST APICustom workflows, any language~2 days
React ComponentsQuick PoC, embedded widgets~1 hour

Install the SDK and submit your first RFQ in under 5 minutes:

TypeScript
1import { TetraFi } from "@tetrafi/sdk";
2
3const tetrafi = new TetraFi({
4 apiKey: process.env.TETRAFI_API_KEY!,
5 environment: "sandbox",
6});
7
8// Submit an RFQ - solvers compete for best price
9const rfq = await tetrafi.rfq.create({
10 pair: "USDC/USDT",
11 side: "buy",
12 amount: "1000000.00",
13});
14
15// Get competing quotes
16const quotes = await tetrafi.rfq.getQuotes(rfq.id);
17console.log(`Received {quotes.length} competing quotes`);
17 linestypescript

Before diving into integration, understand these key concepts:

  • RFQ (Request for Quote) - Takers broadcast trade requests; solvers respond with sealed bids
  • Solver - A liquidity provider (market maker) that competes to fill orders
  • Taker - An institutional client initiating trades
  • DvP (Delivery versus Payment) - Atomic settlement where both legs execute or neither does
  • ComplianceRegistry - On-chain attestation store for participant verification
  1. Read the Architecture Overview to understand the settlement lifecycle
  2. Follow the Solver Integration Guide or Taker Integration Guide
  3. Explore the SDK Reference for detailed method documentation
  4. Set up Authentication and Webhooks for production