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

# Accept Quote

> Accept a quote

Accept a quote by ID.


## OpenAPI

````yaml POST /api/v1/quotes/{id}/accept
openapi: 3.1.0
info:
  title: Lidian Protocol API
  description: REST and WebSocket API for the Lidian cross-chain stablecoin swap protocol
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.lidian.finance
    description: API
security:
  - apiKeyAuth: []
paths:
  /api/v1/quotes/{id}/accept:
    post:
      description: Accept a quote
      parameters:
        - name: id
          in: path
          description: Quote ID
          required: true
          schema:
            type: string
      requestBody:
        description: Quote acceptance parameters
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptQuoteRequest'
        required: true
      responses:
        '200':
          description: Quote accepted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptQuoteResponse'
components:
  schemas:
    AcceptQuoteRequest:
      type: object
      required:
        - quoteId
      properties:
        quoteId:
          type: string
    AcceptQuoteResponse:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            acceptedQuote:
              type: object
            quoteRequest:
              type: object
            declinedQuotes:
              type: array
              items:
                type: object
            declinedCount:
              type: number
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````