> ## 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

# Get a quote

> Get a bridge quote for a deposit or withdrawal.

## 请求规范

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

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

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

```json theme={null}
{
  "operationId": "any_polymarket_bridge_apis_v1_polymarket_quote",
  "method": "POST",
  "path": "/apis/v1/polymarket/quote",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "example": {
          "fromAmountBaseUnit": "10000000",
          "fromChainId": "137",
          "fromTokenAddress": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
          "recipientAddress": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
          "toChainId": "137",
          "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
        },
        "schema": {
          "properties": {
            "fromAmountBaseUnit": {
              "description": "Amount of tokens to send",
              "example": "10000000",
              "type": "string"
            },
            "fromChainId": {
              "description": "Source Chain ID",
              "example": "137",
              "type": "string"
            },
            "fromTokenAddress": {
              "description": "Source token address",
              "example": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
              "type": "string"
            },
            "recipientAddress": {
              "description": "Address of the recipient",
              "example": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
              "type": "string"
            },
            "toChainId": {
              "description": "Destination Chain ID",
              "example": "137",
              "type": "string"
            },
            "toTokenAddress": {
              "description": "Destination token address",
              "example": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB",
              "type": "string"
            }
          },
          "required": [
            "fromAmountBaseUnit",
            "fromChainId",
            "fromTokenAddress",
            "recipientAddress",
            "toChainId",
            "toTokenAddress"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

公开参考价格：每次成功请求 \$0.012 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/polymarket-bridge.json POST /apis/v1/polymarket/quote
openapi: 3.1.0
info:
  description: ''
  title: Polymarket Bridge
  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:
    polymarket-bridge:
      description: ''
      title: Polymarket Bridge
      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: 59ddf77cf0f2b496a7bba01e1ff02da3017ea8e272ddcbc8f02c100c5ce708ad
        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/polymarket/deposit
    - /apis/v1/polymarket/quote
    - /apis/v1/polymarket/status/{address}
    - /apis/v1/polymarket/supported-assets
    - /apis/v1/polymarket/withdraw
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:7b658feb805583bfce754a3d80865cabf36927cceb920fd26fcd52a08ed69b26
    facts_hash: 59ddf77cf0f2b496a7bba01e1ff02da3017ea8e272ddcbc8f02c100c5ce708ad
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: polymarket-bridge
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/polymarket/quote:
    post:
      tags:
        - default
      summary: Get a quote
      description: Get a bridge quote for a deposit or withdrawal.
      operationId: any_polymarket_bridge_apis_v1_polymarket_quote
      requestBody:
        content:
          application/json:
            example:
              fromAmountBaseUnit: '10000000'
              fromChainId: '137'
              fromTokenAddress: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
              recipientAddress: '0x17eC161f126e82A8ba337f4022d574DBEaFef575'
              toChainId: '137'
              toTokenAddress: '0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB'
            schema:
              properties:
                fromAmountBaseUnit:
                  description: Amount of tokens to send
                  example: '10000000'
                  type: string
                fromChainId:
                  description: Source Chain ID
                  example: '137'
                  type: string
                fromTokenAddress:
                  description: Source token address
                  example: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
                  type: string
                recipientAddress:
                  description: Address of the recipient
                  example: '0x17eC161f126e82A8ba337f4022d574DBEaFef575'
                  type: string
                toChainId:
                  description: Destination Chain ID
                  example: '137'
                  type: string
                toTokenAddress:
                  description: Destination token address
                  example: '0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB'
                  type: string
              required:
                - fromAmountBaseUnit
                - fromChainId
                - fromTokenAddress
                - recipientAddress
                - toChainId
                - toTokenAddress
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                estCheckoutTimeMs: 25000
                estFeeBreakdown:
                  appFeeLabel: Fun.xyz fee
                  appFeePercent: 0
                  appFeeUsd: 0
                  fillCostPercent: 0
                  fillCostUsd: 0
                  gasUsd: 0.003854
                  maxSlippage: 0
                  minReceived: 14.488305
                  swapImpact: 0
                  swapImpactUsd: 0
                  totalImpact: 0
                  totalImpactUsd: 0
                estInputUsd: 14.488305
                estOutputUsd: 14.488305
                estToTokenBaseUnit: '14491203'
                quoteId: >-
                  0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5
              schema:
                $ref: '#/components/schemas/Response7A88Af0Ff8Eb_QuoteResponse'
          description: Quote retrieved successfully
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/polymarket/quote \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "fromAmountBaseUnit": "10000000",
              "fromChainId": "137",
              "fromTokenAddress": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
              "recipientAddress": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
              "toChainId": "137",
              "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
            }'
components:
  schemas:
    Response7A88Af0Ff8Eb_QuoteResponse:
      properties:
        estCheckoutTimeMs:
          description: Estimated time to complete the checkout in milliseconds
          example: 25000
          type: integer
        estFeeBreakdown:
          $ref: '#/components/schemas/Response7A88Af0Ff8Eb_FeeBreakdown'
        estInputUsd:
          description: Estimated token amount received in USD
          example: 14.488305
          type: number
        estOutputUsd:
          description: Estimated token amount sent in USD
          example: 14.488305
          type: number
        estToTokenBaseUnit:
          description: Estimated token amount received
          example: '14491203'
          type: string
        quoteId:
          description: Unique quote id of the request
          example: '0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5'
          type: string
      type: object
    Response7A88Af0Ff8Eb_FeeBreakdown:
      description: Breakdown of the estimated fees
      properties:
        appFeeLabel:
          description: Label of the app fee
          example: Fun.xyz fee
          type: string
        appFeePercent:
          description: App fees as a percentage of the total amount sent
          example: 0
          type: number
        appFeeUsd:
          description: App fees in USD
          example: 0
          type: number
        fillCostPercent:
          description: Fill cost percentage of the total amount sent
          example: 0
          type: number
        fillCostUsd:
          description: Fill cost in USD
          example: 0
          type: number
        gasUsd:
          description: Gas fee in USD
          example: 0.003854
          type: number
        maxSlippage:
          description: Maximum potential slippage as a percentage
          example: 0
          type: number
        minReceived:
          description: Amount after factoring slippage
          example: 14.488305
          type: number
        swapImpact:
          description: Swap impact as a percentage of the total amount sent
          example: 0
          type: number
        swapImpactUsd:
          description: Swap impact of the transaction in USD
          example: 0
          type: number
        totalImpact:
          description: Total impact as a percentage of the total amount sent
          example: 0
          type: number
        totalImpactUsd:
          description: Impact cost of the transaction
          example: 0
          type: number
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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