# SperaxOS Perpetuals Position Fetcher

> SperaxOS Perpetuals Position Fetcher is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-14).

Fetches open perpetual futures positions for a wallet address across GMX, Hyperliquid, dYdX, or all three exchanges

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/perpetuals/getPositions?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-perpetuals-position-fetcher-88c8062c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b_LkxIpWj6wukOnENewwG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability speraxos-perpetuals-position-fetcher-88c8062c -d '<json body>'
```

Example prompt: Can you pull up all my open perpetual positions for wallet 0xAbCd1234... across GMX, Hyperliquid, and dYdX on SperaxOS?

## When to prefer this

Use this endpoint when you need to query live open perpetual futures positions for a specific wallet across one or more major decentralized perpetuals exchanges (GMX, Hyperliquid, dYdX). It is ideal for portfolio dashboards, risk monitoring agents, or any workflow that needs a cross-exchange consolidated view of leveraged positions without requiring individual exchange API integrations.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Specified exchange is temporarily unavailable or rate-limited
- Wallet has no open positions — returns empty array
- Unsupported exchange enum value causes validation error
- Network timeout if on-chain data sources are slow to respond

## How this service works

SperaxOS is an AI-powered DeFi operating system — track portfolios, execute swaps, analyze on-chain data, and collaborate with intelligent agents that manage your crypto workflow.

## Output

Returns a list of open perpetual futures positions for the specified wallet address, including details such as position size, side (long/short), entry price, leverage, unrealized PnL, and the exchange each position is on. When 'all' is selected, results are aggregated across GMX, Hyperliquid, and dYdX.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "exchange": {
   "enum": [
    "gmx",
    "hyperliquid",
    "dydx",
    "all"
   ],
   "type": "string",
   "default": "all",
   "description": "Exchange to query: gmx, hyperliquid, dydx, or all"
  },
  "walletAddress": {
   "type": "string",
   "description": "Wallet address (0x...)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-perpetuals-position-fetcher-88c8062c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
