- Home
- Developers
Developers
Every surface is public.
Aftermath is a set of Move packages on Sui with typed clients in front of them. Read prices and books over HTTP, build transactions with the SDK, or call the contracts directly — the same code paths the app uses.
- npm package
- aftermath-ts-sdk
- License
- Apache-2.0
- Public reads
- No API key
- Perps API
- CCXT-compatible
- Networks
- Mainnet, testnet
Choose your path
Pick the surface that fits the job.
Four jobs cover almost every integration. Start at the row that matches yours.
- 01
You are building a UI or a wallet integration
TypeScript SDK
One typed provider covers the router, perpetuals, pools, staking, farms, DCA, and limit orders. Builders return transactions your wallet signs.
TypeScript SDK - 02
You are running a bot or making markets
CCXT or REST
CCXT ships an Aftermath exchange integration, so stock CCXT talks to the perpetuals API. Everything else is plain HTTP against a documented OpenAPI spec.
REST & CCXT API - 03
You are indexing or streaming market data
REST + WebSockets
Read history over REST — candles, funding, order history, 24h stats — and subscribe to the perpetuals WebSocket for live orderbook, trade, candle, and position updates.
Streams and endpoints - 04
You are forking, reading, or auditing the AMM
Move packages
The AMM implementation is public Move source. Deployed mainnet package and object IDs are listed here and resolvable on the Sui explorer.
Contract addresses
Integration surfaces
Six ways in, plus the source.
Nothing here is gated. There is no partner program, no waitlist, and no key to request before you can read the book.
First call
Two lines to a live quote.
Install the SDK and hit a public endpoint. Both work against mainnet with no credentials, on the first try.
import { Aftermath } from "aftermath-ts-sdk";
const sdk = await Aftermath.create({ network: "MAINNET" });
const supportedCoins = await sdk.Router().getSupportedCoins();
console.log(supportedCoins);# Public reads need no key, and CORS is open.
curl https://aftermath.finance/api/perpetuals/markets
# The OpenAPI document behind aftermath.finance/docs
curl https://aftermath.finance/api/openapi/spec.jsonOpen source
Read the code, not the pitch.
The AftermathFinance org publishes the SDKs, the AMM implementation, and the agent skills. Clone what you need.
Also public in the org
- sui-move-inline
- move-interfaces
- native-bridge-widget
- move-session-design-pattern
- af-sui-decorators
- rust-sui-grpc-events-example
Star counts and descriptions change; the org page is the current list.
What you are integrating
The protocols behind the endpoints.
Perpetual futures on an onchain central limit order book, market-making vaults, a smart-order router across every connectable Sui DEX, multi-asset AMM pools, reward farms, and afSUI liquid staking. Each has its own accessor in the SDK, its own REST group, and its own package onchain.
FAQ
Frequently asked questions
Start with the SDK.
The generated reference covers every accessor, argument, and return type in aftermath-ts-sdk. The Swagger UI covers every REST route.