Skip to main content
@lifi/perps-sdk trades across multiple perpetual venues through a single, unified interface. Each venue is integrated as a provider with its own setup, signing scheme, and market data; you pick one per call via the provider argument and the SDK handles the venue-specific details transparently. Each provider tracks its setup and trading signer independently. Currently supported venues:
  • Hyperliquid — an order-book perpetuals exchange on its own L1. Trades are signed by an SDK-managed agent wallet the user approves once, so orders execute without a per-trade wallet popup.
  • Lighter — a ZK-rollup perpetuals exchange. Trades are signed by a Lighter-native API key the SDK registers on-chain once, likewise avoiding per-trade wallet prompts.
See each venue’s Providers section for its signing model, setup, trading actions, and streaming protocol.