# Set daily trading volume limits for this API key

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/trading-limits:
    post:
      summary: Set daily trading volume limits for this API key
      deprecated: false
      description: ''
      operationId: setTradingLimit
      tags:
        - REST API/Endpoints/Trading Limits
        - Trading Limits
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              description: Request payload for setting daily trading limits
              properties:
                buyLimit:
                  type: number
                  description: Daily buy volume limit
                  examples:
                    - 1000
                sellLimit:
                  type: number
                  description: Daily sell volume limit
                  examples:
                    - 500
                currencyId:
                  type: string
                  format: uuid
                  description: Currency UUID in which limits are denominated
                  examples:
                    - b88b8466-efe3-11eb-b56f-0691764446a7
              required:
                - buyLimit
                - currencyId
                - sellLimit
              x-apidog-orders:
                - buyLimit
                - sellLimit
                - currencyId
              type: object
      responses:
        '200':
          description: Trading limits configured successfully
          content:
            '*/*':
              schema:
                properties:
                  data:
                    properties:
                      buyLimit:
                        type: number
                        description: Daily buy volume limit
                      sellLimit:
                        type: number
                        description: Daily sell volume limit
                      currencyId:
                        type: string
                        format: uuid
                        description: Currency UUID in which limits are denominated
                      buyBudgetRemaining:
                        type: number
                        description: Remaining buy budget for today
                      sellBudgetRemaining:
                        type: number
                        description: Remaining sell budget for today
                    x-apidog-orders:
                      - buyLimit
                      - sellLimit
                      - currencyId
                      - buyBudgetRemaining
                      - sellBudgetRemaining
                    type: object
                x-apidog-orders:
                  - data
                type: object
          headers: {}
          x-apidog-name: ''
        '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: ''
        '409':
          description: Trading limits already configured for this API key
          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: zvVC9bNJ4n9tXXIOMPO9o
                schemeIds:
                  - x-api-key
            required: true
            use:
              id: zvVC9bNJ4n9tXXIOMPO9o
            scopes:
              zvVC9bNJ4n9tXXIOMPO9o:
                x-api-key: []
      x-apidog-folder: REST API/Endpoints/Trading Limits
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/365298/apis/api-4461013-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: []

```