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

# Treasury net fees

> The treasury's all-time net fees.



## OpenAPI

````yaml /proto-openapi/api/openapi.yaml get /api/v1/analytics/treasury/net-fees
openapi: 3.0.3
info:
  title: Monaco Protocol API
  description: REST API for the Monaco Protocol hybrid CLOB exchange.
  version: 1.0.0
servers:
  - url: https://apimonaco.xyz
    description: Production (Sei mainnet)
security: []
tags:
  - name: AccountsService
  - name: AnalyticsService
  - name: ApplicationsService
  - name: AuthService
  - name: BuildercodeRewardsService
  - name: ComplianceService
  - name: CopyTradingService
  - name: DelegatedAgentsService
  - name: FaucetService
  - name: FeesService
  - name: HealthService
  - name: ManagedMarketsService
    description: |-
      Wallet-authenticated maker assignments. The signed session must match both
       configured maker user and application. Owner IDs are process fences, never auth.
       Only wallet sessions are supported; delegated-agent sessions receive 403.
  - name: MarginAccountsService
    description: |-
      Current public isolated-margin semantics:
       - a user has one parent margin account per application scope
       - opening orders create or reuse isolated position buckets under that parent
       - parent account creation is handled internally by margin workflows
  - name: MarketService
  - name: OrderbookService
  - name: OrdersService
  - name: PositionsService
    description: |-
      Current public isolated-margin semantics:
       - positions link to a parent margin account and, when applicable, a bucket id
       - opening orders create or reuse isolated position buckets under the parent
       - users can open another isolated position by reusing the parent account with a different market bucket
  - name: PulseService
  - name: RfqService
  - name: SweeperService
  - name: TraderCodeService
  - name: TradesService
  - name: WithdrawalsService
paths:
  /api/v1/analytics/treasury/net-fees:
    get:
      tags:
        - AnalyticsService
        - Analytics
      summary: Treasury net fees
      description: The treasury's all-time net fees.
      operationId: get_treasury_net_fees
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTreasuryNetFeesResponse'
        '429':
          description: Public read rate limit exceeded for this client
        '500':
          description: Internal server error
components:
  schemas:
    GetTreasuryNetFeesResponse:
      type: object
      properties:
        netFeesUsd:
          example: '260.37'
          type: string
          description: >-
            All-time net protocol fees in USD (USDC 1:1): the treasury's net
            protocol fee (taker fees less maker rebates) plus the insurance
            fund's liquidation fees, less BuilderCodes payouts and TraderCodes
            rewards. Negative when payouts exceed fees; "0" before any fee. The
            definition may widen to more fee sources without a contract change.
          nullable: true
        countingSince:
          example: 1750000000000
          type: integer
          description: >-
            When the first counted fee landed, as Unix milliseconds; null before
            any
          format: int64
          minimum: 0
          nullable: true
      description: >-
        The treasury's all-time net fees. Not windowed: the treasury keeps only
        running totals.

````

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