# Accept a trading quote

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/quotes/{id}/accept:
    post:
      summary: Accept a trading quote
      deprecated: false
      description: ''
      operationId: acceptQuote
      tags:
        - REST API/Endpoints/Quotes
        - Quotes
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          example: 3c071a1d-db86-46a7-9dc0-06502b1fe55d
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Quote accepted successfully
          content:
            '*/*':
              schema:
                properties:
                  data:
                    properties:
                      quoteId:
                        type: string
                        format: uuid
                      tradeId:
                        type: string
                        format: uuid
                      status:
                        type: string
                      side:
                        type: string
                        enum:
                          - BUY
                          - SELL
                      assetId:
                        type: string
                        format: uuid
                      currencyId:
                        type: string
                        format: uuid
                      execution:
                        properties:
                          price:
                            type: string
                          priceWithFee:
                            type: string
                          fee:
                            type: string
                          quantity:
                            type: string
                          notional:
                            type: string
                          executedAt:
                            type: string
                          toEuroRate:
                            type: string
                        x-apidog-orders:
                          - price
                          - priceWithFee
                          - fee
                          - quantity
                          - notional
                          - executedAt
                          - toEuroRate
                        type: object
                      tax:
                        properties:
                          taxAmount:
                            type: string
                          pessimisticWithholding:
                            type: boolean
                        x-apidog-orders:
                          - taxAmount
                          - pessimisticWithholding
                        type: object
                      tradingBudget:
                        description: >-
                          Current trading budget status. Null fields indicate no
                          limit is configured.
                        properties:
                          buyBudgetRemaining:
                            type: number
                            description: Remaining buy budget for today
                          sellBudgetRemaining:
                            type: number
                            description: Remaining sell budget for today
                          limitCurrencyId:
                            type: string
                            format: uuid
                            description: Currency UUID in which limits are denominated
                        x-apidog-orders:
                          - buyBudgetRemaining
                          - sellBudgetRemaining
                          - limitCurrencyId
                        type: object
                    x-apidog-orders:
                      - quoteId
                      - tradeId
                      - status
                      - side
                      - assetId
                      - currencyId
                      - execution
                      - tax
                      - tradingBudget
                    type: object
                x-apidog-orders:
                  - data
                type: object
          headers: {}
          x-apidog-name: OK
        '400':
          description: Invalid request parameters
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: Parameter Error
        '404':
          description: Quote not found
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
        '422':
          description: Upstream rejected the accept quote request
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
      security:
        - x-api-key: []
          x-apidog:
            schemeGroups:
              - id: gFLEh8EnsMvnAHs5pJvKx
                schemeIds:
                  - x-api-key
            required: true
            use:
              id: gFLEh8EnsMvnAHs5pJvKx
            scopes:
              gFLEh8EnsMvnAHs5pJvKx:
                x-api-key: []
      x-apidog-folder: REST API/Endpoints/Quotes
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/365298/apis/api-4375764-run
components:
  schemas: {}
  securitySchemes:
    x-api-key:
      type: apikey
      name: x-api-key
      in: header
servers:
  - url: https://api.public.bitpanda.com
    description: Production
security: []

```