FluxPerpdocs
API Reference

SDK

SDK modules and usage examples for FluxPerp.

The TypeScript SDK wraps REST, WebSocket, and account helpers.

npm install @fluxperp/sdk
import { FluxClient } from "@fluxperp/sdk";

const client = new FluxClient({
  network: "mainnet",
  wallet,
});

await client.placeOrder({
  market: "SOL-PERP",
  side: "long",
  type: "market",
  size: 1,
  leverage: 10,
});

Modules

ModulePurpose
marketsMarket metadata and tick sizes
ordersPlace, cancel, and query orders
positionsRead and close positions
streamsSubscribe to fills and book updates

On this page