# Fee Groups

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/fees:
    get:
      summary: Fee Groups
      deprecated: false
      description: >-
        Returns details of all fee groups. Fee groups are separated into product
        types.
      tags:
        - One Trading Public REST API/Public
        - public
      parameters: []
      responses:
        '200':
          x-apidog-name: Success
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FeeGroup'
              examples:
                '1':
                  summary: Success
                  value:
                    - fee_group_id: SPOT
                      display_text: The fee plan for spot trading.
                      volume_currency: EUR
                      fee_tiers:
                        - volume: 0
                          fee_group_id: SPOT
                          maker_fee: '0.1000'
                          taker_fee: '0.2000'
                        - volume: 10000
                          fee_group_id: SPOT
                          maker_fee: '0.0400'
                          taker_fee: '0.0600'
                        - volume: 100000
                          fee_group_id: SPOT
                          maker_fee: '0.0200'
                          taker_fee: '0.0500'
                        - volume: 1000000
                          fee_group_id: SPOT
                          maker_fee: '0.0190'
                          taker_fee: '0.0450'
                        - volume: 5000000
                          fee_group_id: SPOT
                          maker_fee: '0.0180'
                          taker_fee: '0.0400'
                        - volume: 25000000
                          fee_group_id: SPOT
                          maker_fee: '0.0130'
                          taker_fee: '0.0350'
                        - volume: 100000000
                          fee_group_id: SPOT
                          maker_fee: '0.0025'
                          taker_fee: '0.0300'
                        - volume: 500000000
                          fee_group_id: SPOT
                          maker_fee: '0.0000'
                          taker_fee: '0.0300'
                        - volume: 1000000000
                          fee_group_id: SPOT
                          maker_fee: '0.0000'
                          taker_fee: '0.0280'
                        - volume: 10000000000
                          fee_group_id: SPOT
                          maker_fee: '0.0000'
                          taker_fee: '0.0250'
                    - fee_group_id: FUTURES
                      display_text: The fee plan for futures trading.
                      volume_currency: EUR
                      fee_tiers:
                        - volume: 0
                          fee_group_id: FUTURES
                          maker_fee: '0.1000'
                          taker_fee: '0.2000'
                        - volume: 10000
                          fee_group_id: FUTURES
                          maker_fee: '0.0400'
                          taker_fee: '0.0600'
                        - volume: 100000
                          fee_group_id: FUTURES
                          maker_fee: '0.0200'
                          taker_fee: '0.0500'
                        - volume: 1000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0190'
                          taker_fee: '0.0450'
                        - volume: 5000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0180'
                          taker_fee: '0.0400'
                        - volume: 25000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0130'
                          taker_fee: '0.0350'
                        - volume: 100000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0025'
                          taker_fee: '0.0300'
                        - volume: 500000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0000'
                          taker_fee: '0.0300'
                        - volume: 1000000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0000'
                          taker_fee: '0.0280'
                        - volume: 10000000000
                          fee_group_id: FUTURES
                          maker_fee: '0.0000'
                          taker_fee: '0.0250'
          headers: {}
        '404':
          x-apidog-name: Record Not Found
          description: Fee data is not available.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: NO_FEES_AVAILABLE
          headers: {}
        '500':
          x-apidog-name: Server Error
          description: Unexpected server error. `error` is a human-readable message.
          content:
            application/json:
              schema: *ref_0
              examples:
                '3':
                  summary: Server error
                  value:
                    error: Server error.
                '4':
                  summary: Server configuration error
                  value:
                    error: Server configuration error.
          headers: {}
      security: []
      x-apidog-folder: One Trading Public REST API/Public
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/349694/apis/api-3612084-run
components:
  schemas:
    FeeGroup:
      type: object
      properties:
        fee_group_id:
          type: string
          description: Unique identifier of a FeeGroup
          enum:
            - SPOT
            - FUTURES
          x-apidog-enum:
            - value: SPOT
              name: ''
              description: ''
            - value: FUTURES
              name: ''
              description: ''
        display_text:
          type: string
          description: Textual description of a Fee Group
        volume_currency:
          type: string
          description: The code of the currency volume is denoted in.
        fee_tiers:
          type: array
          items:
            $ref: '#/components/schemas/FeeTier'
      x-apidog-orders:
        - fee_group_id
        - display_text
        - volume_currency
        - fee_tiers
      required:
        - fee_group_id
        - display_text
        - volume_currency
        - fee_tiers
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    FeeTier:
      type: object
      properties:
        volume:
          type: integer
          description: Volume beyond which this fee tier is activated
        fee_group_id:
          type: string
          description: Identifier of the fee group
        maker_fee:
          type: string
          description: >-
            Percentage fee rate that will be used for fee calculation when trade
            is settled as MAKER.
        taker_fee:
          type: string
          description: >-
            Percentage fee rate that will be used for fee calculation when trade
            is settled as TAKER.
      x-apidog-orders:
        - volume
        - fee_group_id
        - maker_fee
        - taker_fee
      required:
        - volume
        - fee_group_id
        - maker_fee
        - taker_fee
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    ErrorResponse:
      type: object
      description: >-
        Error body. `error` is a machine-readable code (e.g.
        `INVALID_INSTRUMENT_CODE`) on most endpoints; a few older endpoints
        return a human-readable message in `error` instead and omit
        `error_message`.
      properties:
        error:
          type: string
          description: Error code (or, on older endpoints, a human-readable message).
        error_message:
          type: string
          description: >-
            Human-readable detail. Present on endpoints that return an error
            code in `error`.
      required:
        - error
      x-apidog-orders:
        - error
        - error_message
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
      description: >-
        API key issued to the account holder, sent as `Authorization: Bearer
        <token>`. The key must hold the `SUBACCOUNT_TRANSFER` scope.
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```