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

# Quote an order

> The order to sign, and the Permit2 permit to sign when the allowance does not cover every live order of the owner for this token. Keys with standing orders on. Robinhood Chain.



## OpenAPI

````yaml openapi.yaml GET /orders/quote
openapi: 3.1.0
info:
  title: Route API
  version: '2026-10-30'
  summary: >-
    Best-price swaps. One request returns the quote and a ready-to-sign
    transaction.
  description: >
    Robinhood Chain (chain ID 4663) at the root. Other EVM chains use the same
    `/quote`, `/tokens` and `/health` under a chain

    prefix, for example `https://partners.route.fun/base/quote` (see the chains
    page). Solana is under `/solana` with its own

    fields (see the Solana pages); it is not described in this file.


    Access: the public tier needs no key (`/quote` and `/health`; per-IP limits;
    CORS allowed). A partner key (`rk_...`, DM

    @rapidssh) is sent as `Authorization: Bearer rk_...` from a backend. Submit
    and track, gasless swaps, standing orders,

    delegated execution and partner fees are switched on per key; when off they
    return 403.


    Conventions: the native token is the zero address. Amounts are raw token
    units as decimal strings. Every response has an

    `x-request-id` header; send your own (1 to 64 characters of `A-Za-z0-9._:-`)
    to trace a request.


    Route contracts are source-verified on Sourcify. None has had a formal
    third-party audit.
  contact:
    name: '@rapidssh'
    url: https://x.com/rapidssh
servers:
  - url: https://partners.route.fun
security:
  - {}
  - partnerKey: []
tags:
  - name: Swaps
  - name: Submit and track
  - name: Gasless
  - name: Standing orders
  - name: Delegated execution
paths:
  /orders/quote:
    get:
      tags:
        - Standing orders
      summary: Quote an order
      description: >-
        The order to sign, and the Permit2 permit to sign when the allowance
        does not cover every live order of the owner for this token. Keys with
        standing orders on. Robinhood Chain.
      operationId: ordersQuote
      parameters:
        - name: owner
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Address'
        - name: in
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Address'
          description: Input token (ERC-20).
        - name: out
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Address'
        - name: totalIn
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Uint'
          description: Total input over all fills, raw units.
        - name: sliceIn
          in: query
          schema:
            $ref: '#/components/schemas/Uint'
          description: >-
            Input per fill. Default `totalIn` (one fill). Worth at least 20 gas
            fees.
        - name: minRate
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Uint'
          description: >-
            Output per input over each slice, raw units, 1e18 scale, gas fee
            included.
        - name: interval
          in: query
          schema:
            type: integer
            default: 0
          description: Seconds between fills.
        - name: startAt
          in: query
          schema:
            type: integer
          description: Unix seconds. Default now.
        - name: expiry
          in: query
          required: true
          schema:
            type: integer
          description: Unix seconds, at most 365 days out.
        - name: recipient
          in: query
          schema:
            $ref: '#/components/schemas/Address'
          description: Default the owner.
      responses:
        '200':
          description: What to sign.
          content:
            application/json:
              schema:
                type: object
                properties:
                  contract:
                    $ref: '#/components/schemas/Address'
                  order:
                    type: object
                  typedData:
                    type: object
                    description: EIP-712 order to sign.
                  hash:
                    type: string
                  permit:
                    type:
                      - object
                      - 'null'
                    description: '`{ typedData }` of a Permit2 permit to sign, or null.'
                  approval:
                    type: object
                    description: >-
                      `{ ok: true }`, `{ erc2612: <typed data> }` or `{
                      needsApproval: true }` (approve Permit2).
                  feePerFill:
                    $ref: '#/components/schemas/Uint'
                  sponsored:
                    type: boolean
                  marketRate:
                    type:
                      - string
                      - 'null'
                    description: Route's rate for one slice now, same scale as minRate.
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          description: Standing orders are not on for this key.
      security:
        - partnerKey: []
components:
  schemas:
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
    Uint:
      type: string
      pattern: ^[0-9]+$
      description: Unsigned integer as a decimal string.
    Error:
      type: object
      required:
        - error
      properties:
        requestId:
          type: string
        error:
          type: string
        requote:
          type: boolean
  responses:
    BadRequest:
      description: >
        Invalid request, for example `Invalid quote parameters`, `Same token: in
        and out must differ ...`, `Invalid recipient`,

        `Invalid slippageBps`, `Invalid deadline`, `Invalid minOut`, `Invalid
        exclude: ...`, or

        `Parameter not available for this key: <name>`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    partnerKey:
      type: http
      scheme: bearer
      description: >-
        Partner key: `Authorization: Bearer rk_...`. DM @rapidssh. Leave it out
        for the public tier.

````

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