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

# P&L

> Profit & loss and turnover for your client.



## OpenAPI

````yaml /zh/mm-api/openapi.json get /api/v1/pnl
openapi: 3.1.0
info:
  title: MM-V2 Trading API
  description: >

    ## MM API


    The MM engine places orders, hedges positions, and tracks P&L automatically.

    This API lets you monitor trading activity, control your engine, and
    configure

    which market types and tournaments to trade.


    ### Authentication

    All endpoints require the `X-API-Key` header with your client UUID.


    ### Rate limits

    - REST API: 2,000 requests/minute per client

    - WebSocket: 5 concurrent connections per API key
  version: 1.0.0
servers: []
security: []
tags:
  - name: Trading Controls
    description: Pause, resume, stop, and start your trading engine.
  - name: Orders & Bets
    description: Inspect and cancel exchange orders, view hedge bets placed on bookmakers.
  - name: Performance
    description: Hedged positions, P&L and turnover, exchange account balances.
  - name: Configuration
    description: Choose which market types and tournaments your engine trades.
paths:
  /api/v1/pnl:
    get:
      tags:
        - Performance
      summary: P&L
      description: Profit & loss and turnover for your client.
      operationId: get_pnl_api_v1_pnl_get
      parameters:
        - name: fromDate
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Filter orders created on or after this date (YYYY-MM-DD)
            title: Fromdate
          description: Filter orders created on or after this date (YYYY-MM-DD)
        - name: toDate
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Filter orders created on or before this date (YYYY-MM-DD)
            title: Todate
          description: Filter orders created on or before this date (YYYY-MM-DD)
      responses:
        '200':
          description: Market-making P&L statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PnLResponse'
              example:
                totalTurnover: 98350
                validTurnover: 72415.3
                netRealizedSpread: 1482.55
                nakedPnl: -220.1
                unhedgedStake: 1622.78
                unhedgedStakePct: 1.65
                avgHedgePriceDrift: 0.0042
                settledPairCount: 1420
                nakedSettledCount: 12
                fromDate: '2026-01-29'
                toDate: '2026-02-01'
        '401':
          description: Invalid or missing API key
        '404':
          description: Resource not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PnLResponse:
      properties:
        totalTurnover:
          type: number
          title: Totalturnover
          description: Total stake successfully laid off on the bookmaker leg
        validTurnover:
          type: number
          title: Validturnover
          description: >-
            Risk-adjusted turnover on the bookmaker leg (ABS of P&L per settled
            bet)
        netRealizedSpread:
          type: number
          title: Netrealizedspread
          description: Net spread captured across fully-settled hedged pairs (absolute $)
        nakedPnl:
          type: number
          title: Nakedpnl
          description: Directional P&L from settled exchange fills that were never hedged
        unhedgedStake:
          type: number
          title: Unhedgedstake
          description: >-
            Absolute $ of matched exchange stake that never reached a successful
            hedge
        unhedgedStakePct:
          type: number
          title: Unhedgedstakepct
          description: >-
            Percent of matched exchange stake that never reached a successful
            hedge
        avgHedgePriceDrift:
          type: number
          title: Avghedgepricedrift
          description: Stake-weighted mean drift between planned and actual hedge odds
        settledPairCount:
          type: integer
          title: Settledpaircount
          description: >-
            Number of fully-settled hedged pairs contributing to
            net_realized_spread
        nakedSettledCount:
          type: integer
          title: Nakedsettledcount
          description: Number of settled exchange fills with no successful hedge (naked)
        fromDate:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Fromdate
          description: Start date filter (if applied)
        toDate:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Todate
          description: End date filter (if applied)
      type: object
      required:
        - totalTurnover
        - validTurnover
        - netRealizedSpread
        - nakedPnl
        - unhedgedStake
        - unhedgedStakePct
        - avgHedgePriceDrift
        - settledPairCount
        - nakedSettledCount
        - fromDate
        - toDate
      title: PnLResponse
      description: Market-making P&L response for a client.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Client API key (UUID format). Get your key from the admin dashboard.

````