> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Surf Trading Performance

> Surf Trading Performance

> **请求示例待验证。** 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode: quote`）查看预估费用。

## 请求规范

* **方法与路径:** POST /apis/v1/surf/hyperliquid/performance
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/surf/hyperliquid/performance`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi-public/zh/surf.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "post_surf_apis_v1_surf_hyperliquid_performance",
  "method": "POST",
  "path": "/apis/v1/surf/hyperliquid/performance",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "address": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "address"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 已观察到的响应结构

以下结构来自探针或抽样请求的成功结果，只反映已观察到的部分：字段和类型可能变化，不保证每次都有。已有正式响应定义优先；这里不发布真实响应值。

* **HTTP 状态 / 最近观察日期:** 200 / 2026-11-20

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "properties": {
        "data": {
          "additionalProperties": true,
          "properties": {
            "address": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "meta": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## 费用与请求规则

按实际用量收费。 当前暂无预估金额。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。

## 响应时间

* 通常 10 秒内返回。


## OpenAPI

````yaml openapi-public/zh/surf.json POST /apis/v1/surf/hyperliquid/performance
openapi: 3.1.0
info:
  description: ''
  title: Surf
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    surf:
      description: ''
      title: Surf
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d96005d64c9f96c9ed25e4a0ac8b1d46dd87c835987c88e74a39e1f863f70a2e
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/surf/dex/token/price
    - /apis/v1/surf/exchange/candles
    - /apis/v1/surf/exchange/coverage
    - /apis/v1/surf/exchange/depth
    - /apis/v1/surf/exchange/funding-history
    - /apis/v1/surf/exchange/klines
    - /apis/v1/surf/exchange/long-short-ratio
    - /apis/v1/surf/exchange/markets
    - /apis/v1/surf/exchange/perp
    - /apis/v1/surf/exchange/price
    - /apis/v1/surf/fund/detail
    - /apis/v1/surf/fund/portfolio
    - /apis/v1/surf/fund/ranking
    - /apis/v1/surf/heatscore/detail
    - /apis/v1/surf/heatscore/projects
    - /apis/v1/surf/heatscore/token-of-the-day
    - /apis/v1/surf/heatscore/token-of-week
    - /apis/v1/surf/hyperliquid/account
    - /apis/v1/surf/hyperliquid/candles
    - /apis/v1/surf/hyperliquid/fills
    - /apis/v1/surf/hyperliquid/leaderboard
    - /apis/v1/surf/hyperliquid/orders
    - /apis/v1/surf/hyperliquid/performance
    - /apis/v1/surf/hyperliquid/positions
    - /apis/v1/surf/hyperliquid/trades
    - /apis/v1/surf/hyperliquid/trades/aggregate
    - /apis/v1/surf/hyperliquid/trades/context
    - /apis/v1/surf/market/etf
    - /apis/v1/surf/market/exchange-flow/exchanges
    - /apis/v1/surf/market/fear-greed
    - /apis/v1/surf/market/futures
    - /apis/v1/surf/market/liquidation/chart
    - /apis/v1/surf/market/liquidation/exchange-list
    - /apis/v1/surf/market/liquidation/order
    - /apis/v1/surf/market/listing
    - /apis/v1/surf/market/options
    - /apis/v1/surf/market/price
    - /apis/v1/surf/market/price-indicator
    - /apis/v1/surf/market/public-sale
    - /apis/v1/surf/market/ranking
    - /apis/v1/surf/market/tge
    - /apis/v1/surf/news/detail
    - /apis/v1/surf/news/feed
    - /apis/v1/surf/onchain/bridge/ranking
    - /apis/v1/surf/onchain/dex/activity
    - /apis/v1/surf/onchain/gas-price
    - /apis/v1/surf/onchain/query
    - /apis/v1/surf/onchain/schema
    - /apis/v1/surf/onchain/sql
    - /apis/v1/surf/onchain/sql/preflight
    - /apis/v1/surf/onchain/tx
    - /apis/v1/surf/onchain/yield/ranking
    - /apis/v1/surf/prediction-market/analytics
    - /apis/v1/surf/prediction-market/correlations
    - /apis/v1/surf/prediction-market/kalshi/events
    - /apis/v1/surf/prediction-market/kalshi/markets
    - /apis/v1/surf/prediction-market/kalshi/open-interest
    - /apis/v1/surf/prediction-market/kalshi/orderbooks
    - /apis/v1/surf/prediction-market/kalshi/prices
    - /apis/v1/surf/prediction-market/kalshi/trades
    - /apis/v1/surf/prediction-market/kalshi/volumes
    - /apis/v1/surf/prediction-market/matching/daily
    - /apis/v1/surf/prediction-market/matching/pairs
    - /apis/v1/surf/prediction-market/polymarket/events
    - /apis/v1/surf/prediction-market/polymarket/leaderboard
    - /apis/v1/surf/prediction-market/polymarket/markets
    - /apis/v1/surf/prediction-market/polymarket/open-interest
    - /apis/v1/surf/prediction-market/polymarket/orderbooks
    - /apis/v1/surf/prediction-market/polymarket/positions
    - /apis/v1/surf/prediction-market/polymarket/price-ohlcv
    - /apis/v1/surf/prediction-market/polymarket/prices
    - /apis/v1/surf/prediction-market/polymarket/smart-money
    - /apis/v1/surf/prediction-market/polymarket/trades
    - /apis/v1/surf/prediction-market/polymarket/volume-split
    - /apis/v1/surf/prediction-market/polymarket/volumes
    - /apis/v1/surf/project/ai-news
    - /apis/v1/surf/project/defi/metrics
    - /apis/v1/surf/project/defi/ranking
    - /apis/v1/surf/project/detail
    - /apis/v1/surf/search/airdrop
    - /apis/v1/surf/search/airdrop/activities
    - /apis/v1/surf/search/events
    - /apis/v1/surf/search/fund
    - /apis/v1/surf/search/fundraising
    - /apis/v1/surf/search/news
    - /apis/v1/surf/search/prediction-market
    - /apis/v1/surf/search/project
    - /apis/v1/surf/search/token
    - /apis/v1/surf/search/wallet
    - /apis/v1/surf/search/web
    - /apis/v1/surf/token/dex-trades
    - /apis/v1/surf/token/holders
    - /apis/v1/surf/token/tokenomics
    - /apis/v1/surf/token/transfer-counterparties
    - /apis/v1/surf/token/transfer-stats
    - /apis/v1/surf/token/transfers
    - /apis/v1/surf/wallet/detail
    - /apis/v1/surf/wallet/history
    - /apis/v1/surf/wallet/labels/batch
    - /apis/v1/surf/wallet/net-worth
    - /apis/v1/surf/wallet/protocols
    - /apis/v1/surf/wallet/transfers
    - /apis/v1/surf/web/fetch
  x-aisa-document:
    composer_version: '31'
    facts_hash: d96005d64c9f96c9ed25e4a0ac8b1d46dd87c835987c88e74a39e1f863f70a2e
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:847874094b3b7b2971889d77245e2c1c7f830017b46b94acde2adf294ccdbbeb
    document_hash: sha256:4aaffafe04792769a375a1c1bb259b6d6faf1d02588334113a219d37633e49fb
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: surf
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/surf/hyperliquid/performance:
    post:
      tags:
        - Surf
      summary: Surf Trading Performance
      description: >-
        Surf Trading Performance


        > **请求示例待验证。**
        此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode:
        quote`）查看预估费用。
      operationId: post_surf_apis_v1_surf_hyperliquid_performance
      requestBody:
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              additionalProperties: false
              properties:
                address:
                  minLength: 1
                  type: string
              required:
                - address
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/OwnedResponse_7566538d0480bafb9d352a7895741378f1a865985ae7646a5ea40306e14d1a73
          description: Normalized successful response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    OwnedResponse_7566538d0480bafb9d352a7895741378f1a865985ae7646a5ea40306e14d1a73:
      $schema: https://json-schema.org/draft/2020-12/schema
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            data:
              $ref: >-
                #/components/schemas/OwnedDefinition_72d9e5882b76c8ee621154a824b41a77863d601e381d34b146b1b768e23eafb4
            meta:
              additionalProperties: false
              properties:
                cached:
                  description: Whether this response was served from cache
                  type: boolean
                empty_reason:
                  description: Hint explaining why the data array is empty, when applicable
                  type: string
              required:
                - cached
              type: object
          required:
            - data
            - meta
          type: object
      required:
        - data
      type: object
    OwnedDefinition_72d9e5882b76c8ee621154a824b41a77863d601e381d34b146b1b768e23eafb4:
      additionalProperties: false
      properties:
        account_value:
          description: >-
            Live PERP clearinghouse equity, USD (from the snapshot) — not total
            portfolio (spot/vault excluded; see
            /hyperliquid/account.total_value_usd). A genuinely flat/empty perp
            account returns 0 with NO errors[] entry; the field is OMITTED only
            when the snapshot section degraded (which also adds an errors[]
            entry) — so detect degradation via errors[], not a 0 value.
          format: double
          type: number
        address:
          description: Wallet address (lowercased)
          type: string
        errors:
          description: >-
            Sections whose fetch failed (gap_fill, snapshot, ledger); omitted
            when everything succeeded
          items:
            $ref: >-
              #/components/schemas/OwnedDefinition_ae959cd860f341b8462b6ec187add372c069c1e30bb39826cdd595745b7a59e7
          type:
            - array
            - 'null'
        open_positions:
          description: >-
            Live open positions from the clearinghouse snapshot (empty when the
            snapshot section degraded — see errors[])
          items:
            $ref: >-
              #/components/schemas/OwnedDefinition_1de9f2c3154ae8a9f0964351fd688463ef923e89d4067c627d5f23a613d423b5
          type:
            - array
            - 'null'
        partial:
          description: >-
            true when one or more upstream sections degraded (= errors[] is
            non-empty); the present sections are still returned
          type: boolean
        performance:
          $ref: >-
            #/components/schemas/OwnedDefinition_01cfa71fff6a3ae76285305a8999d3f5d4dfdf7b1b766c53069e8cf05ac45e3f
          description: >-
            Lifetime performance re-rolled over the warehouse aggregate + the
            live gap-fill tail; omitted when the wallet has never traded. A
            lower bound when errors[] contains gap_fill (the live tail was
            truncated or unavailable).
        total_unrealized_pnl:
          description: >-
            Sum of unrealized PnL across the live open positions, USD. Omitted
            when the snapshot section degraded (see errors[]); 0 for a flat
            account.
          format: double
          type: number
        traded_pairs:
          description: >-
            Distinct markets this wallet has closed trades in (warehouse + live
            tail), e.g. for a breadth badge. 0 when the wallet has never traded.
          format: int64
          type: integer
        watermark:
          description: >-
            Warehouse episode watermark = the boundary the live gap-fill resumes
            from (Unix SECONDS); 0 means full backfill
          format: int64
          type: integer
      required:
        - address
        - open_positions
        - traded_pairs
        - watermark
        - partial
      type: object
    OwnedDefinition_ae959cd860f341b8462b6ec187add372c069c1e30bb39826cdd595745b7a59e7:
      additionalProperties: false
      properties:
        reason:
          description: Short reason for the failure
          type: string
        section:
          description: >-
            Section that failed: perp, spot, vaults, staking, or pricing (the
            HYPE-mark lookup that values total_value_usd)
          type: string
      required:
        - section
        - reason
      type: object
    OwnedDefinition_1de9f2c3154ae8a9f0964351fd688463ef923e89d4067c627d5f23a613d423b5:
      additionalProperties: false
      properties:
        cum_funding:
          $ref: >-
            #/components/schemas/OwnedDefinition_44535917400e871623f12e5ee6c150d37cbfeb35e59d59d7ab293720b8146f63
          description: Funding paid/received, USD
        distance_to_liquidation:
          description: >-
            Fraction the mark must move to reach the liquidation price (e.g.
            0.05 = 5%), always positive — a RELATIVE fraction, not an absolute
            price/USD distance. Omitted when there is no liquidation price.
          format: double
          type: number
        entry_price:
          description: Average entry price, USD
          format: double
          type: number
        leverage_type:
          description: cross or isolated
          type: string
        leverage_value:
          description: Leverage used
          format: int64
          type: integer
        liquidation_price:
          description: >-
            Liquidation price, USD. Omitted when Hyperliquid returns none
            upstream — common for cross positions whose spot collateral
            backstops them; fall back to the account-level margin_ratio for
            proximity.
          format: double
          type: number
        margin_used:
          description: Margin on this position, USD
          format: double
          type: number
        mark_price:
          description: Current mark price, USD (= position_value / |size|)
          format: double
          type: number
        max_leverage:
          description: Max allowed leverage for this market
          format: int64
          type: integer
        position_value:
          description: Current value, USD
          format: double
          type: number
        return_on_equity:
          description: Return on equity (0.45 = 45%)
          format: double
          type: number
        side:
          description: long or short
          type: string
        size:
          description: Position size; positive = long, negative = short
          format: double
          type: number
        symbol:
          description: Market id (BTC, kPEPE, xyz:GOLD)
          type: string
        unrealized_pnl:
          description: Unrealized profit/loss, USD
          format: double
          type: number
      required:
        - symbol
        - size
        - side
        - leverage_type
        - leverage_value
        - max_leverage
        - entry_price
        - mark_price
        - position_value
        - unrealized_pnl
        - return_on_equity
        - margin_used
        - cum_funding
      type: object
    OwnedDefinition_01cfa71fff6a3ae76285305a8999d3f5d4dfdf7b1b766c53069e8cf05ac45e3f:
      additionalProperties: false
      properties:
        avg_loss:
          description: >-
            Average net_pnl of losing trades, USD (negative); omitted when there
            are no losses
          format: double
          type: number
        avg_win:
          description: >-
            Average net_pnl of winning trades, USD; omitted when there are no
            wins
          format: double
          type: number
        fees:
          description: Sum of episode fees, USD
          format: double
          type: number
        first_trade:
          description: Earliest episode close (Unix seconds); 0 when no trades
          format: int64
          type: integer
        gross_pnl:
          description: Sum of episode gross_pnl, USD
          format: double
          type: number
        last_trade:
          description: Latest episode close (Unix seconds); 0 when no trades
          format: int64
          type: integer
        losses:
          description: Episodes with net_pnl < 0
          format: int64
          type: integer
        net_pnl:
          description: Sum of episode net_pnl, USD (funding excluded)
          format: double
          type: number
        profit_factor:
          description: Total win PnL / total loss PnL; omitted when there are no losses
          format: double
          type: number
        scratches:
          description: Episodes with net_pnl == 0
          format: int64
          type: integer
        trades:
          description: Closed episodes (trades)
          format: int64
          type: integer
        volume_usd:
          description: Notional volume traded, USD
          format: double
          type: number
        win_rate:
          description: wins / trades (0-1)
          format: double
          type: number
        wins:
          description: Episodes with net_pnl > 0
          format: int64
          type: integer
      required:
        - trades
        - wins
        - losses
        - scratches
        - win_rate
        - gross_pnl
        - fees
        - net_pnl
        - volume_usd
        - first_trade
        - last_trade
      type: object
    OwnedDefinition_44535917400e871623f12e5ee6c150d37cbfeb35e59d59d7ab293720b8146f63:
      additionalProperties: false
      properties:
        all_time:
          description: Funding since the account opened, USD
          format: double
          type: number
        since_change:
          description: Funding since this position last changed, USD
          format: double
          type: number
        since_open:
          description: Funding since this position was opened, USD
          format: double
          type: number
      required:
        - all_time
        - since_open
        - since_change
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.