Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.positions.finance/llms.txt

Use this file to discover all available pages before exploring further.

The PositionsSDK is the main entry point. It requires an EIP-1193 compatible provider (like window.ethereum from Metamask, or a provider from Wagmi/RainbowKit).
import {PositionsSDK} from "@positions/sdk";
import {type EIP1193Provider} from "viem";

// Example with window.ethereum
const sdk = new PositionsSDK(window.ethereum as EIP1193Provider);

// The SDK automatically handles account changes from the provider.