FluxPerpdocs
Technical

Integration Guide

Build trading integrations with the FluxPerp SDK.

Use the SDK when you need signed trading operations, account reconciliation, and stream subscriptions from one client.

Install

npm install @fluxperp/sdk

Connect

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

const client = new FluxClient({
  network: "mainnet",
  wallet,
});
  1. Fetch market metadata.
  2. Subscribe to account and fill streams.
  3. Submit signed order intents.
  4. Reconcile fills against positions and margin state.
Tip

For raw HTTP endpoints, see REST Endpoints.

On this page