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).
| Path | Best For | Setup Time |
|---|---|---|
| TypeScript SDK | Standard server-side integration | ~1 day |
| Python SDK | Data pipelines, analytics, Python backends | ~1 day |
| REST API | Custom workflows, any language | ~2 days |
| React Components | Quick PoC, embedded widgets | ~1 hour |
Install the SDK and submit your first RFQ in under 5 minutes:
TypeScript
1import { TetraFi } from "@tetrafi/sdk";23const tetrafi = new TetraFi({4 apiKey: process.env.TETRAFI_API_KEY!,5 environment: "sandbox",6});78// Submit an RFQ - solvers compete for best price9const rfq = await tetrafi.rfq.create({10 pair: "USDC/USDT",11 side: "buy",12 amount: "1000000.00",13});1415// Get competing quotes16const 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
- Read the Architecture Overview to understand the settlement lifecycle
- Follow the Solver Integration Guide or Taker Integration Guide
- Explore the SDK Reference for detailed method documentation
- Set up Authentication and Webhooks for production