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

# Get market fee rate

> Returns the effective trading fee rate (in basis points) for a market. Sign this exact value into the order's `feeRateBps` before submitting. The effective rate resolves the most specific override first: per-market, then per-tag, then the global default. Read it right before signing, since rates can change.



## OpenAPI

````yaml /api-spec/openapi.yaml get /markets/{id}/fee
openapi: 3.0.3
info:
  title: United Market API
  version: 1.0.0
  description: >-
    Public backend API for market data, trading, authentication, profiles,
    comments, and leaderboards.
servers:
  - url: https://api.unitedmarket.ai
    description: United Market backend
security: []
tags:
  - name: Markets
    description: >-
      Market discovery, market details, orderbooks, tickers, price history, and
      trades.
  - name: Orders
    description: Signed order submission, cancellation, order lookup, and balances.
  - name: Authentication
    description: SIWE wallet authentication.
  - name: Discovery
    description: Tags and market groups.
  - name: Social
    description: Comments, users, and leaderboard data.
  - name: Fees
    description: Effective trading fee rate per market.
  - name: Referral
    description: Referral codes, attribution, and reward summaries.
paths:
  /markets/{id}/fee:
    get:
      tags:
        - Fees
      summary: Get market fee rate
      description: >-
        Returns the effective trading fee rate (in basis points) for a market.
        Sign this exact value into the order's `feeRateBps` before submitting.
        The effective rate resolves the most specific override first:
        per-market, then per-tag, then the global default. Read it right before
        signing, since rates can change.
      operationId: getMarketFee
      parameters:
        - $ref: '#/components/parameters/MarketId'
      responses:
        '200':
          description: Fee rate returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketFee'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    MarketId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Market id.
  schemas:
    MarketFee:
      type: object
      properties:
        feeRateBps:
          type: integer
          description: >-
            Effective fee rate in basis points to sign into orders for this
            market.
          example: 15
        feeRateBpsOverride:
          type: integer
          nullable: true
          description: >-
            Raw per-market override, or null when the market inherits the
            tag/global rate.
          example: null
    Error:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: integer
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````