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

# Fee-split statistics over a date range

> Daily breakdown of yield, partner fee earned, and Barker fee earned. Use this for partner
accounting / reconciliation views. Range capped at 365 days; if `start_date` / `end_date` are
omitted, defaults to the trailing 30 days.

All numeric fields are decimal strings denominated in the underlying asset (USDC etc.).




## OpenAPI

````yaml /openapi.yaml get /api/partner/products/{slug}/fee-stats
openapi: 3.0.3
info:
  title: Barker Yield Engine API
  version: 1.0.0
  description: >
    Yield-embed API for partners (wallets, payment apps).


    Authentication: `X-Api-Key` header, self-served from portal.barker.money.

    Revenue: 100% via on-chain fee split inside the engine contract — calling
    this API is free.

    Rate limit: 1000 req/min for production keys (`bk_live_*`), 100 req/min for
    sandbox keys (`bk_test_*`). Anti-abuse, not usage billing.


    Two integration modes — same engines, same key, same fee split, different UI
    surface:
      - Embed (iframe): drop-in UI hosted at app.barker.money, no contract calls in your code.
      - Headless API: your UI calls BarkerEngine (ERC-4626) directly with the user's wallet; this API serves metadata, position, fee stats, and webhooks.
    See https://docs.barker.money/integration-modes for the decision guide.


    Error responses share `{ success: false, code, message }`. Full code catalog
    at https://docs.barker.money/error-codes.
  contact:
    name: Barker
    url: https://docs.barker.money
servers:
  - url: https://api.barker.money
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: products
    description: Partner products (engines) — read access
  - name: position
    description: User position queries
  - name: webhooks
    description: Event subscriptions and callbacks
paths:
  /api/partner/products/{slug}/fee-stats:
    get:
      tags:
        - products
      summary: Fee-split statistics over a date range
      description: >
        Daily breakdown of yield, partner fee earned, and Barker fee earned. Use
        this for partner

        accounting / reconciliation views. Range capped at 365 days; if
        `start_date` / `end_date` are

        omitted, defaults to the trailing 30 days.


        All numeric fields are decimal strings denominated in the underlying
        asset (USDC etc.).
      parameters:
        - $ref: '#/components/parameters/SlugParam'
        - in: query
          name: start_date
          schema:
            type: string
            format: date
          example: '2026-04-01'
        - in: query
          name: end_date
          schema:
            type: string
            format: date
          example: '2026-05-04'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          format: date
                        engine_total_assets:
                          type: string
                        daily_yield_assets:
                          type: string
                        daily_partner_fee_earned:
                          type: string
                        cumulative_partner_fee_earned:
                          type: string
                        net_apy_for_user:
                          type: string
              example:
                success: true
                data:
                  - date: '2026-05-04'
                    engine_total_assets: '1245678.123456'
                    daily_yield_assets: '208.95'
                    daily_partner_fee_earned: '16.71'
                    cumulative_partner_fee_earned: '934.27'
                    net_apy_for_user: '0.0490'
components:
  parameters:
    SlugParam:
      in: path
      name: slug
      required: true
      schema:
        type: string
      example: acme-usdc-base
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````