> ## 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.

# Bets summary

> Aggregated hedge bet statistics.



## OpenAPI

````yaml /zh/mm-api/openapi.json get /api/v1/bets/summary
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/bets/summary:
    get:
      tags:
        - Orders & Bets
      summary: Bets summary
      description: Aggregated hedge bet statistics.
      operationId: get_bets_summary_api_v1_bets_summary_get
      parameters:
        - name: fromDate
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Filter bets created on or after this date (YYYY-MM-DD)
            title: Fromdate
          description: Filter bets 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 bets created on or before this date (YYYY-MM-DD)
            title: Todate
          description: Filter bets created on or before this date (YYYY-MM-DD)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetSummary'
        '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:
    BetSummary:
      properties:
        totalBets:
          type: integer
          title: Totalbets
          description: Total number of bets
        orderCount:
          type: integer
          title: Ordercount
          description: Number of unique orders
        bookmakerCount:
          type: integer
          title: Bookmakercount
          description: Number of unique bookmakers
        totalStake:
          type: number
          title: Totalstake
          description: Sum of all bet stakes
        avgPrice:
          anyOf:
            - type: number
            - type: 'null'
          title: Avgprice
          description: Average bet price
        placedCount:
          type: integer
          title: Placedcount
          description: Number of placed bets
        pendingCount:
          type: integer
          title: Pendingcount
          description: Number of pending bets
        declinedCount:
          type: integer
          title: Declinedcount
          description: Number of declined bets
        wonCount:
          type: integer
          title: Woncount
          description: Number of won bets
        lostCount:
          type: integer
          title: Lostcount
          description: Number of lost bets
      type: object
      required:
        - totalBets
        - orderCount
        - bookmakerCount
        - totalStake
        - avgPrice
        - placedCount
        - pendingCount
        - declinedCount
        - wonCount
        - lostCount
      title: BetSummary
      description: Summary of bet statistics 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.

````