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

# Set fee asset

> Choose the one asset a trading account's fees are taken from first: a fee priority of that asset alone (see `PUT /account/fee-priority`). Any listed Active collateral asset, stablecoin or volatile; the quote restores the default order. Applies to fills after it.



## OpenAPI

````yaml /v2/api-reference/openapi.json put /api/v1/account/fee-asset
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.dev.ekiden.fi/
    description: Production (Canton Mainnet)
security: []
paths:
  /api/v1/account/fee-asset:
    put:
      tags:
        - Account
      summary: Set fee asset
      description: >-
        Choose the one asset a trading account's fees are taken from first: a
        fee priority of that asset alone (see `PUT /account/fee-priority`). Any
        listed Active collateral asset, stablecoin or volatile; the quote
        restores the default order. Applies to fills after it.
      operationId: set_fee_asset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetFeeAssetRequest'
        required: true
      responses:
        '200':
          description: Fee asset chosen
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetFeeAssetResponse'
        '400':
          description: The asset is unknown or not Active
      security:
        - bearer_auth: []
components:
  schemas:
    SetFeeAssetRequest:
      type: object
      description: >-
        The one asset trading fees are taken from first: a fee priority of one
        entry.
      required:
        - sub_account_address
        - asset_id
      properties:
        asset_id:
          type: integer
          format: int32
          description: >-
            A listed Active collateral asset (`GET /collateral/assets`),
            stablecoin or volatile; the

            quote restores the default order.
          minimum: 0
        sub_account_address:
          type: string
    SetFeeAssetResponse:
      type: object
      required:
        - success
        - time
      properties:
        success:
          type: boolean
        time:
          type: string
          format: date-time
          example: '1672531200000'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.