# Getting Started

> Use SDK v2 when you want HTTP-backed GMX data or API-relayed order workflows without wiring RPC, oracle, or Subsquid connections yourself.

# Getting Started

Use SDK v2 when you want HTTP-backed GMX data or API-relayed order workflows without wiring RPC, oracle, or Subsquid connections yourself.

Install the shared SDK package first:

```bash
npm install @gmx-io/sdk
```

Then import the client from the `v2` subpath:

```typescript

const apiSdk = new GmxApiSdk({ chainId: 42161 }); // Arbitrum

const markets = await apiSdk.fetchMarkets();
const marketsInfo = await apiSdk.fetchMarketsInfo();
const marketsConfig = await apiSdk.fetchMarketsConfig();
const marketsValues = await apiSdk.fetchMarketsValues();
const tickers = await apiSdk.fetchMarketsTickers({
  symbols: ["BTC/USD [BTC-USDC]"],
});
const tokens = await apiSdk.fetchTokens();
const tokensData = await apiSdk.fetchTokensData();
const pairs = await apiSdk.fetchPairs();
const rates = await apiSdk.fetchRates({ period: "7d" });
const apy = await apiSdk.fetchApy({ period: "7d" });
const annualized = await apiSdk.fetchPerformanceAnnualized({
  period: "30d",
});
const snapshots = await apiSdk.fetchPerformanceSnapshots({
  period: "30d",
});
const positions = await apiSdk.fetchPositionsInfo({
  address: "0x9f7198eb1b9Ccc0Eb7A07eD228d8FbC12963ea33",
  includeRelatedOrders: true,
});
const orders = await apiSdk.fetchOrders({
  address: "0x9f7198eb1b9Ccc0Eb7A07eD228d8FbC12963ea33",
});
const trades = await apiSdk.fetchTrades({
  address: "0x9f7198eb1b9Ccc0Eb7A07eD228d8FbC12963ea33",
  limit: 20,
});
const jitLiquidity = await apiSdk.fetchJitLiquidityInfo({ apiVersion: "v2" });
const candles = await apiSdk.fetchOhlcv({
  symbol: "BTC",
  timeframe: "1h",
  limit: 100,
});
```

`GmxApiSdk` calls the GMX API directly — no RPC endpoint, oracle URL, or Subsquid URL required. It supports active mainnet integrations on Arbitrum, Avalanche, and MegaETH, plus Arbitrum Sepolia for testing. The constructor throws for unsupported chains.

If your app switches chains dynamically, prefer `isApiSupported(chainId)`, `getApiUrl(chainId)`, and `getApiFallbackUrls(chainId)` from `@gmx-io/sdk/configs/api` instead of hardcoding API hosts.

### GMX API deployment

The GMX API deployment exposes independent peer base URLs such as `https://{chain}.gmxapi.io/v1` and `https://{chain}.gmxapi.ai/v1`. `GmxApiSdk` builds an `HttpClientWithFallback` from the primary URL returned by `getApiUrl(chainId)` and any peers configured by `getApiFallbackUrls(chainId)`. When no peers are configured, it skips `HttpClientWithFallback` and sends every request to the primary URL.

Fallback lists are configuration, not a fixed SDK guarantee. In the current published `latest`, `2.4.0`, the packaged list is empty for every chain, so `GmxApiSdk` runs against a single host unless you supply the peer. If your integration requires peer failover, pass the second host explicitly and monitor both in your own HTTP layer.

Arbitrum Sepolia uses a separate test host returned by `getApiUrl(421614)`. Test hosts can change, so use the exported helper instead of hardcoding the URL.

`@gmx-io/sdk/v2` is an import path inside the `@gmx-io/sdk` package, not a separate npm package.

If you're using CommonJS, require the v2 client from the `v2` subpath:

```javascript
const { GmxApiSdk } = require("@gmx-io/sdk/v2");

const apiSdk = new GmxApiSdk({ chainId: 42161 });
```

TypeScript subpath resolution is supported for `@gmx-io/sdk/v2` and the SDK's utility, config, ABI, and type-only entrypoints.

## What SDK v2 covers today

| Workflow | Status | Notes |
| -------- | ------ | ----- |
| Read market catalogs, configuration, values, tickers, trading capacity, and token data over HTTP | ✅ | Available through `fetchMarkets()`, `fetchMarketsInfo()`, `fetchMarketsConfig()`, `fetchMarketsValues()`, `fetchMarketsTickers()`, `getTradingCapacity()`, `fetchTokens()`, and `fetchTokensData()` |
| Read pairs, rates, APY, performance, GM pool yield/PnL analytics, and GM LP fee earnings over HTTP | ✅ | Available through `fetchPairs()`, `fetchRates()`, `fetchApy()`, `fetchPerformanceAnnualized()`, `fetchPerformanceSnapshots()`, `fetchGmPoolYieldPnl()`, and `fetchGmUserEarnings()` |
| Read one account's positions and orders over HTTP | ✅ | Available through `fetchPositionsInfo()` and `fetchOrders()` |
| Read trade history over HTTP | ✅ | Available through `fetchTrades()` and `searchTrades()` |
| Read OHLCV candles over HTTP | ✅ | Available through `fetchOhlcv()` |
| Read protocol buyback stats over HTTP | ✅ | Available through `fetchBuybackWeeklyStats()` |
| Read protocol-wide stats over HTTP | ✅ | Available through the standalone `fetchApiProtocolStatsSummary()`, `fetchApiProtocolStatsTimeseries()`, and `fetchApiProtocolStatsSources()` exports. See [Protocol stats helpers](#protocol-stats-helpers) |
| Read JIT liquidity over HTTP | ✅ | Available through `fetchJitLiquidityInfo()` |
| Read staking power over HTTP | ✅ | Available through `fetchStakingPower()` |
| Read USDC and USDG conversion routes, fee tiers, quotes, and orders over HTTP | ✅ | Available on Arbitrum through `fetchTransitRoutes()`, `fetchTransitFeeTier()`, `fetchTransitAuthorization()`, `fetchTransitQuote()`, `fetchTransitOrder()`, and `fetchTransitOrders()` |
| Read deposit whitelists and the USDG launch boost rate over HTTP | ✅ | Available through `fetchWhitelists()` and `fetchUsdgBoostApr()` |
| Read wallet balances and allowances over HTTP | ✅ | Available through `fetchWalletBalances()` and `fetchAllowances()` |
| Build approval transaction calldata | ✅ | Available through `buildApproveTransaction()`, `buildErc20ApproveTxn()`, and `executeErc20Approve()` |
| GMX Account deposits and withdrawals | ✅ | Available through same-chain deposit/withdraw helpers and cross-chain deposit/withdraw helpers |
| Submit, edit, cancel, or track orders | ✅ | Signed order intents are posted to the GMX API, which submits express orders through GMX Relay. [SDK v1](../v1/readme.mdx) and direct contracts remain available for integrations that prefer RPC. |
| One-click-trading subaccount helpers | ✅ | Available through `generateSubaccount()`, `activateSubaccount()`, `refreshSubaccountState()`, `clearSubaccount()`, `fetchSubaccountStatus()`, `prepareSubaccountApproval()`, and `signSubaccountApproval()` |

See [Order Examples](./examples.md) for runnable code showing how to open, close, edit, cancel, and track orders, including TP/SL, TWAP, classic mode, and one-click trading flows.

Use [SDK Overview](../overview.md) if you want a quick capability comparison before wiring an integration.

## Methods

`GmxApiSdk` exposes the following methods. All of them call the GMX API directly -- no RPC, oracle, or Subsquid connection is required.

| Method | Parameters | Returns | Notes |
| ------ | ---------- | ------- | ----- |
| `fetchMarkets()` | -- | `MarketWithTiers[]` | Market catalog data from `/markets` |
| `fetchMarketsInfo()` | -- | `RawMarketInfo[]` | Market definitions and pricing from `/markets/info` |
| `fetchMarketsConfig()` | -- | `RawMarketConfig[]` | Slower-changing market configuration from `/markets/config` |
| `fetchMarketsValues()` | -- | `RawMarketValues[]` | Frequently changing market state from `/markets/values`; each row includes its least-recent component timestamp in `updatedAt` |
| `fetchMarketsTickers(params?)` | `addresses?: string[]`, `symbols?: string[]` | `MarketTickerWithCapacity[]` | Filterable market tickers from `/markets/tickers`, each optionally carrying JIT-aware `capacityLong`/`capacityShort` |
| `getTradingCapacity(params)` | `symbol: string`, `direction: "long" \| "short"` | `TradingCapacity` | Validated capacity for one market side from `/markets/trading-capacity` |
| `fetchTokens()` | -- | `Token[]` | Static token catalog from `/tokens` |
| `fetchTokensData()` | -- | `TokenData[]` | Token metadata and current prices from `/tokens/info` |
| `fetchPairs()` | -- | `Pair[]` | Pair-level summary data from `/pairs` |
| `fetchRates(params?)` | `period?: ApiParameterPeriod`, `averageBy?: "1d" \| "7d" \| "30d"`, `address?: string` | `MarketRates[]` | Hourly funding and borrowing rate snapshots from `/rates`. For near-live rates, use `/markets/info` or `fetchMarketsInfo()` instead |
| `fetchApy(params?)` | `period?: ApiParameterPeriod` | `ApyResponse` | Market and GLV APY data from `/apy` |
| `fetchPerformanceAnnualized(params?)` | `period?: ApiParameterPeriod`, `address?: string` | `PerformanceAnnualized[]` | Annualized performance summaries from `/performance/annualized` |
| `fetchPerformanceSnapshots(params?)` | `period?: ApiParameterPeriod`, `address?: string` | `PerformanceSnapshots[]` | Historical performance snapshot series from `/performance/snapshots` |
| `fetchGmPoolYieldPnl(params?)` | `pools?: string[]`, `period?: ApiParameterPeriod`, `includeComponents?: boolean` | `GmPoolsYieldPnlResponse` | Fee-only APY plus trader-perspective PnL per GM pool from `/yield/gm-pools` |
| `fetchGmUserEarnings(params)` | `account: string` | `GmUserEarningsResponse` | Lifetime and 7-day fee earnings (`lifetimeFeeUsd`, `recent7dFeeUsd`, 30-decimal USD strings) for each GM pool an LP account has held, from `/yield/gm-user-earnings`. Only GM held in the wallet on this chain counts; GM in a GMX Account or bridged to another chain doesn't |
| `fetchPositionsInfo(params)` | `address: string`, `includeRelatedOrders?: boolean` | `ApiPositionInfo[]` | Position objects for an address; optionally includes related orders |
| `fetchOrders(params)` | `address: string` | `ApiOrderInfo[]` | Active order objects for an address |
| `fetchTrades(params)` | `address: string`, `symbol?: string`, `marketAddress?: string`, `since?: number`, `until?: number`, `actions?: TradeEventName[]`, `limit?: number`, `cursor?: string` | `TradesListResponse` | Account trade history from `/trades`. `since` and `until` are Unix timestamps in whole seconds; the API returns `400` for fractional or millisecond values |
| `searchTrades(params)` | `address?: string`, `forAllAccounts?: boolean`, `fromTimestamp?: number`, `toTimestamp?: number`, `marketsDirections?: MarketDirectionFilter[]`, `orderEventCombinations?: OrderEventCombination[]`, `showDebugValues?: boolean`, `limit?: number`, `cursor?: string` | `TradesListResponse` | Advanced trade-history search from `/trades/search`. `fromTimestamp` and `toTimestamp` are also whole seconds |
| `fetchOhlcv(params)` | `symbol: string`, `timeframe: string`, `limit?: number`, `since?: number` | `OhlcvCandle[]` | OHLCV candle data from `/prices/ohlcv`. Pass a token symbol such as `"BTC"` or a full market symbol such as `"BTC/USD [BTC-USDC]"`; `"BTC/USD"` returns `400`. `since` and each candle's `timestamp` are in milliseconds |
| `fetchBuybackWeeklyStats()` | -- | `BuybackWeeklyStatsResponse` | Weekly (`weeks`) and monthly (`months`) buyback accrual data and a cumulative summary from `/buyback/weekly-stats` |
| `fetchJitLiquidityInfo(params?)` | `apiVersion?: "v1" \| "v2"` | `JitLiquidityMap` | JIT liquidity map from `/{apiVersion}/jit/liquidity_info`. `apiVersion` defaults to `"v1"`. A `v1` response has one merged list of GLV shift params per market, which the SDK returns for both sides, so pass `apiVersion: "v2"` to read them per side. To size an increase, use `getTradingCapacity()` instead |
| `fetchStakingPower(params)` | `address: string` | `StakingPowerResponse` | Staking power, loyalty ratio, and reward share data for an address from `/staking/power` |
| `fetchTransitRoutes(params?)` | `filter?: string`, `feeTier?: TransitFeeTier` | `TransitRoute[]` | Paxos conversion routes, each with its `sourceChainId`, `destinationChainId`, `offerAsset`, `wantAsset`, and `minOrderSize`, from `/paxos/transit/routes`. The list isn't limited to USDC and USDG on Arbitrum: it also includes other chains and tokens, so filter it by chain ID and token address. `minOrderSize` depends on `feeTier`, which defaults to `"standardFee"`. Only the Arbitrum API serves the `/paxos/transit` routes |
| `fetchTransitFeeTier(params)` | `userAddress: string` | `TransitFeeTierResponse` | The address's fee tier (`"zeroFee"` or `"standardFee"`) and `zeroFeeCapacity`, the USDC amount that can still convert to USDG at zero fee, from `/paxos/transit/fee-tier`. All zero-fee addresses share this capacity, and it's `0n` for a `"standardFee"` address and while zero fee is unavailable. From SDK 2.4.0, the response also includes `isZeroFeeAvailable`, which is always `false` for a `"standardFee"` address, and `zeroFeeExpectedReopenAt`, the Unix time in seconds when zero fee is expected back, or `undefined` when that isn't known |
| `fetchTransitAuthorization(params)` | `userAddress: string`, `tokenAddress: string`, `spenderAddress: string`, `amount: bigint`, `chainId: number` | `TransitAuthorizationResponse` | Whether the spender is already approved (`alreadyApproved`) and the available approval methods, an EIP-2612 permit or an ERC-20 approval transaction, from `/paxos/transit/authorization` |
| `fetchTransitQuote(params)` | `userAddress: string`, `offerAsset: string`, `wantAsset: string`, `offerAmount: bigint`, `sourceChainId: number`, `destinationChainId: number`, `permitSignature?: string`, `permitDeadline?: number`, `responseFormat?: TransitResponseFormat`, `feeTier?: TransitFeeTier` | `TransitQuote` | Conversion quote with `amountOut`, the fee breakdown, and the `transaction` to send, from `/paxos/transit/orders/quote`. `feeTier` defaults to `"standardFee"`. A `"zeroFee"` quote fails with `403` and code `ZERO_FEE_NOT_WHITELISTED` for an address outside the zero-fee tier, `400` and code `ZERO_FEE_UNSUPPORTED_ROUTE` for any route other than USDC to USDG on Arbitrum, `409` and code `ZERO_FEE_PAUSED` when zero fee is unavailable, including when its status can't be read or shortly before a scheduled closure, and `409` and code `ZERO_FEE_NO_CAPACITY` when `offerAmount` is above the capacity; request the quote again with `"standardFee"` |
| `fetchTransitOrder(params)` | `orderId: string` | `TransitOrder` | One conversion order and its `status` from `/paxos/transit/orders/{orderId}` |
| `fetchTransitOrders(params)` | `userAddress: string`, `pageSize?: number`, `pageToken?: string`, `filter?: string` | `TransitOrdersResponse` | An address's conversion orders from `/paxos/transit/orders`. Pass the returned `nextPageToken` as `pageToken` to read the next page |
| `fetchWhitelists(params)` | `address: string` | `AccountWhitelists` | For each GM pool (`deposit.markets`) and GLV vault (`deposit.glvs`) that limits deposits to whitelisted addresses, whether the address can deposit, from `/whitelists` |
| `fetchUsdgBoostApr()` | -- | `UsdgBoostAprResponse` | [USDG launch boost](../../usdg-launch-boost.md#boost-rates) rate of each pool and of the GLV from `/incentives/usdg/boost-apr`: `{ status: "not_started" }`, or `{ status: "active", pools, glv }`. `boostApr` is a fraction (`0.05` is 5%), and `glv` is `null` until the GLV has a paid round |

### Protocol stats helpers

Protocol-wide stats aren't `GmxApiSdk` methods. `@gmx-io/sdk/v2` exports them as standalone functions that take an `{ api }` HTTP client context as the first argument. Stats are chain-agnostic and served by the Arbitrum API deployment, so build the client from `getStatsApiUrl()` in `@gmx-io/sdk/configs/api` instead of your chain's API host.

| Function | Parameters | Returns | Notes |
| -------- | ---------- | ------- | ----- |
| `fetchApiProtocolStatsSummary(ctx, params?)` | `networks?: ProtocolStatsNetwork[]`, `versions?: ProtocolStatsVersion[]` | `ProtocolStatsSummaryResponse` | Totals plus per-network (`byNetwork`) and per-version (`byVersion`) metrics from `/stats/summary` |
| `fetchApiProtocolStatsTimeseries(ctx, params)` | `metric: ProtocolStatsTimeseriesMetric`, `groupBy?: "network" \| "version" \| "none"`, `networks?`, `versions?`, `from?: number`, `to?: number` | `ProtocolStatsTimeseriesResponse` | Daily points for one metric from `/stats/timeseries`. `from` and `to` are Unix timestamps in seconds, floored to the UTC day. `groupBy` defaults to `"network"` |
| `fetchApiProtocolStatsSources(ctx)` | -- | `ProtocolStatsSourceStatus[]` | Freshness of each data source (`health`, `lagSeconds`, `lastError`) from `/stats/sources` |

`networks` accepts `"arbitrum"`, `"avalanche"`, `"megaeth"`, and `"solana"`, and `versions` accepts `"v1"` and `"v2"`.

```typescript

  fetchApiProtocolStatsSummary,
  fetchApiProtocolStatsTimeseries,
  HttpClientWithFallback,
} from "@gmx-io/sdk/v2";

const statsApiUrl = getStatsApiUrl();

if (!statsApiUrl) {
  throw new Error("Protocol stats API is not configured");
}

const statsApi = new HttpClientWithFallback([statsApiUrl]);

const summary = await fetchApiProtocolStatsSummary(
  { api: statsApi },
  { networks: ["arbitrum", "avalanche"] }
);
const dailyVolume = await fetchApiProtocolStatsTimeseries(
  { api: statsApi },
  { metric: "volume.total", groupBy: "network" }
);
```

### Account and order methods

These methods cover wallet data, approval calldata, API-relayed order workflows, and one-click-trading subaccounts.

- `fetchWalletBalances({ address })` returns wallet balances from `/balances/wallet`.
- `fetchAllowances({ address, spender })` returns token allowances from `/allowances`. `spender` is `"router"`.
- `buildApproveTransaction(params)` builds ERC-20 approval calldata for the selected chain.
- `buildErc20ApproveTxn(params)` builds ERC-20 approval calldata for any caller-supplied spender address, and `executeErc20Approve(signer, params)` sends that approval through a signer that supports `sendTransaction`.
- `buildSameChainDepositTxn(params)`, `buildSameChainWithdrawTxn(params)`, `executeSameChainDeposit(signer, params)`, and `executeSameChainWithdraw(signer, params)` cover GMX Account funding on the settlement chain.
- `buildSameChainWithdrawBridgeOutParams(params)` and `buildCrossChainWithdrawBridgeOutParams(params)` build bridge-out params used by GMX Account withdrawals.
- `prepareCrossChainDeposit(request)` and `executeCrossChainDeposit(signer, request)` cover cross-chain GMX Account deposits.
- `prepareCrossChainWithdraw(request)`, `signCrossChainWithdraw(prepared, signer)`, `submitCrossChainWithdraw(request)`, `executeCrossChainWithdraw(signer, request)`, and `getCrossChainWithdrawStatus(requestId)` cover cross-chain GMX Account withdrawals.
- `prepareOrder(request)` prepares a swap, increase, or decrease order and returns either typed data for express mode or transaction calldata for classic mode. See [Order Examples](./examples.md) for full usage.
- `signOrder(prepared, signer)` signs a prepared express order with an `IAbstractSigner`.
- `submitOrder(request)` submits a signed express order intent to `/orders/txns/submit`.
- `executeExpressOrder(request, signer)` runs the common prepare, sign, and submit flow in one call.
- `fetchOrderStatus({ requestId })` returns relay, creation, execution, cancellation, and error state for an API-relayed order request.
- `prepareEditOrder(request)`, `prepareCancelOrder(request)`, and `prepareCollateral(request)` prepare edit, cancel, collateral deposit, or collateral withdrawal order intents.
- `fetchSubaccountStatus(request)`, `prepareSubaccountApproval(request)`, and `signSubaccountApproval(prepared, signer)` support one-click-trading authorization flows.
- `generateSubaccount(mainSigner)`, `activateSubaccount(mainSigner, options?)`, `refreshSubaccountState(account)`, and `clearSubaccount()` manage the SDK's local subaccount state. `subaccountAddress`, `subaccountStatus`, `hasActiveSubaccount`, and `subaccountApprovalMessage` expose the current state.
- When an active subaccount exists, `prepareOrder()`, `prepareEditOrder()`, `prepareCancelOrder()`, `prepareCollateral()`, and `executeExpressOrder()` attach the current subaccount approval automatically. `signOrder()` signs prepared subaccount orders with the generated subaccount key.
- Use the `subaccountStatus` getter to read the parsed on-chain status after `refreshSubaccountState(account)`.

`PrivateKeySigner` and the `IAbstractSigner` type are exported from `@gmx-io/sdk/v2`. Lower-level signer helpers are also available from `@gmx-io/sdk/utils/signer`.

### One-click trading lifecycle

One-click trading uses three signing steps:

| Signature | Signer | When it is needed |
| --------- | ------ | ----------------- |
| Subaccount key derivation | Main wallet | When `generateSubaccount()` or `activateSubaccount()` creates the local subaccount signer |
| Subaccount approval | Main wallet | Only when the subaccount is not active on-chain, or when the requested expiry/action limit needs to be extended |
| Order signature | Subaccount signer | For each prepared subaccount order |

`activateSubaccount(mainSigner, options?)` refreshes the current on-chain subaccount status, generates the local subaccount signer if needed, and signs a new approval only when the existing on-chain authorization is not enough for the requested expiry and `maxAllowedCount`. The signed approval is kept in SDK memory and submitted with the next subaccount order.

After an approval-bearing order is created or executed and the on-chain status is usable, `refreshSubaccountState(account)` updates `subaccountStatus` and `subaccountApprovalMessage` becomes an empty approval whose `signature` is `"0x"`. The empty approval tells the relay to use the already-active on-chain authorization, so the main wallet does not sign every trade. Per-order signatures are produced by the generated subaccount key.

Use one `GmxApiSdk` instance per active wallet account, or call `clearSubaccount()` when the wallet account changes. The SDK rejects subaccount order preparation if the stored subaccount belongs to a different account.

### Staking power timestamps

`StakingPowerResponse` includes two protocol-level timestamps that are constant across all addresses:

| Field | Type | Description |
| ----- | ---- | ----------- |
| `powerAccrualStart` | unix seconds | The moment power began accumulating for staked GMX. Set to `1772582400` (March 4, 2026 00:00:00 UTC). |
| `loyaltyTrackingStart` | unix seconds | The moment loyalty tracking became active. Before this time, unstaking did not affect the historical peak used for loyalty enforcement. Set to `1774396800` (March 25, 2026 00:00:00 UTC). |

After `loyaltyTrackingStart`, if an account's staked balance minus its pending unstake requests drops below 80% of its historical peak, accumulated power resets to zero. A request counts as soon as it's submitted. `cumulativePower`, `historicalMaxStaked`, and `loyaltyRatio` use the same net balance, while `currentStaked` stays the full staked balance. The response doesn't include the pending amount, so you can't rebuild `loyaltyRatio` from `currentStaked`. See [Rewards](../../tokenomics/rewards.md#loyalty-threshold) for the user-facing description of how the loyalty threshold works.

## When to use SDK v2

Use `GmxApiSdk` for API integrations that need market configuration and values, tickers, JIT-aware trading capacity, token, pair, rate, APY, GM-pool yield and trader PnL, GM LP fee earnings, performance, position, order, trade-history, JIT-liquidity, OHLCV, wallet-balance, allowance, buyback, or staking-power data, or API-relayed order submission, edit, cancellation, GMX Account, and subaccount flows. Use the full [`GmxSdk` (SDK v1)](../v1/readme.mdx) when you need direct RPC-backed transaction ownership.

:::note
`GmxApiSdk` is under active development and covers an expanding share of the full SDK surface, replacing the need for direct RPC, oracle, and Subsquid connections. Order submission runs through GMX Relay, the self-hosted relay behind the GMX API. The [GMX API OpenAPI Reference](/docs/category/gmx-api-openapi-reference) documents the underlying HTTP endpoints, while this page documents the typed SDK method names and signing helpers.
:::
