API Reference
SDK
SDK modules and usage examples for FluxPerp.
The TypeScript SDK wraps REST, WebSocket, and account helpers.
npm install @fluxperp/sdkimport { 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
| Module | Purpose |
|---|---|
markets | Market metadata and tick sizes |
orders | Place, cancel, and query orders |
positions | Read and close positions |
streams | Subscribe to fills and book updates |