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

# Quote a trade

> Builds an unsigned buy or sell transaction for a Veto coin, on the bonding curve or on PumpSwap after graduation. The user's wallet is the fee payer. Sign and send it yourself.

Rate limited to 60 per minute.




## OpenAPI

````yaml /api-reference/openapi.yaml post /api/trade/quote
openapi: 3.1.0
info:
  title: Veto API
  version: 1.0.0
  description: >-
    Public API behind veto.fun. Coins, payouts, wallets, launches, trades and
    vetoes.
servers:
  - url: https://api.veto.fun
    description: Production
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Platform
  - name: Coins
  - name: Payouts
  - name: Veto
  - name: Launch and trade
paths:
  /api/trade/quote:
    post:
      tags:
        - Launch and trade
      summary: Quote a trade
      description: >
        Builds an unsigned buy or sell transaction for a Veto coin, on the
        bonding curve or on PumpSwap after graduation. The user's wallet is the
        fee payer. Sign and send it yourself.


        Rate limited to 60 per minute.
      operationId: quoteTrade
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TradeRequest'
      responses:
        '200':
          description: The transaction and expected amounts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradeQuoteResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    TradeRequest:
      type: object
      required:
        - mint
        - wallet
        - side
        - amount
      properties:
        mint:
          type: string
        wallet:
          type: string
          description: The trader's wallet. Pays for and signs the transaction.
        side:
          type: string
          enum:
            - buy
            - sell
        amount:
          type: number
          exclusiveMinimum: 0
          description: >-
            Amount of the pair asset to spend when buying, whole tokens to sell
            when selling.
        slippageBps:
          type: integer
          minimum: 10
          maximum: 5000
          default: 500
    TradeQuoteResponse:
      type: object
      required:
        - transaction
        - inAmount
        - outAmount
        - minOut
      properties:
        transaction:
          type: string
          description: Base64 unsigned versioned transaction.
        inAmount:
          type: number
          description: Pair asset in for buys, tokens in for sells.
        outAmount:
          type: number
          description: Expected tokens out for buys, pair asset out for sells.
        minOut:
          type: number
          description: The least you'll receive after slippage.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A message you can show to users as-is.
  responses:
    BadRequest:
      description: The request is invalid. The message names the field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'symbol: Ticker can only use letters and numbers'
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Token not found
    RateLimited:
      description: Too many requests from this IP. Wait and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

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