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

# Per-EOA rolling deposit caps + current usage + KYC tier

> Read-only view of the on-chain `DepositLimitRegistry` for the authenticated wallet: its registry tier, effective caps (single deposit, rolling 30-day, rolling 12-month), usage and headroom inside each rolling window, and the deposit / trade / withdraw restriction flags. All amount fields are decimal USDC strings. Windows are rolling 30-day / 12-month sums, so there is no reset instant — old deposits drop out of `used` as they roll off the window. `"79228162514264337593543.950335"` (uint96 max) means no ceiling, not a real limit. `kycTier` is the user's KYC level (`null` when it could not be read); `tier` is the registry tier, not the KYC level.



## OpenAPI

````yaml /api-reference/openapi.json get /api/me/deposit-limits
openapi: 3.1.0
info:
  title: PredictStreet API
  description: >-
    Client-facing HTTP API for the PredictStreet prediction-market platform.
    **Partner kinds.** Every authenticated endpoint except the partner-level
    platform reads (`/api/platform/status`, `/notices`, `/maintenance`) resolves
    a request's *effective wallet* from the partner row. `single_wallet`
    partners bind to one `associatedWallet` set at creation. `multi_wallet`
    partners declare the actor on every request via an `X-User-Wallet:
    0x<40-hex>` header. See the [Partner kinds](/auth/api-keys#partner-kinds)
    doc for the full contract.
  version: '2026-06-16'
  contact:
    name: PredictStreet partners
    email: partners@predictstreet.com
servers:
  - url: https://core.api.dev.predictstreet.sde.adifoundation.ai
    description: Testnet (partner integrator API — final domain TBD)
security: []
tags:
  - name: Deposits
    description: >-
      Gasless USDC deposit relay - submit a signed EIP-2612 permit and the
      platform broadcasts the on-chain deposit for you (no gas).
  - name: Events
    description: >-
      Polymarket-style event grouping with football metadata (group, stage,
      teams, tags).
  - name: Tags
    description: Curated tag taxonomy used to filter events.
  - name: Markets
    description: 'Public market data: list, detail, orderbook, trades, OHLC.'
  - name: Crypto
    description: >-
      Crypto price markets: the underlying-asset price curve and Up/Down series
      navigation. The markets themselves are ordinary binary markets — list them
      through /api/markets and /api/events.
  - name: Orders
    description: >-
      Signed-order place / cancel / read. Requires `X-Api-Key` with
      `orders:read` / `orders:write` scope; every write additionally requires an
      EIP-712 signature over the order.
  - name: Portfolio
    description: >-
      Balances, positions, trades, fees, vault info for the key's
      `associatedWallet`. Requires `X-Api-Key` with `portfolio:read` scope.
  - name: Matches
    description: >-
      A match groups several events into one fixture/card (1X2 + first-scorer +
      over-under under one matchup).
  - name: Vault
    description: >-
      Backend co-signatures for ERC-1155 split / merge, and recovery for
      off-chain locks when the corresponding chain tx never confirmed. Requires
      `X-Api-Key` with `vault:write` scope plus an EIP-712 signature over the
      operation.
  - name: Leaderboard
    description: Public ranked leaderboard across PnL / volume buckets.
  - name: Search
    description: Global search across users, events, and matches.
  - name: Withdrawal Security
    description: >-
      Self-service withdrawal 2FA (TOTP) and withdrawal-address whitelist. Same
      endpoints serve the web app (user sessions) and API-key integrators.
      Mutations need `vault:write`, reads `portfolio:read`. Both are opt-in per
      wallet and only gate withdrawals once the platform enables
      withdrawal-security enforcement.
  - name: Platform
    description: >-
      Platform reference data and state. The contract registry and the fee
      configuration are public and need no key. The freeze flag (`/status`),
      active notices (`/notices`) and maintenance windows (`/maintenance`) need
      a partner API key in `X-Api-Key`.
paths:
  /api/me/deposit-limits:
    get:
      tags:
        - Portfolio
      summary: Per-EOA rolling deposit caps + current usage + KYC tier
      description: >-
        Read-only view of the on-chain `DepositLimitRegistry` for the
        authenticated wallet: its registry tier, effective caps (single deposit,
        rolling 30-day, rolling 12-month), usage and headroom inside each
        rolling window, and the deposit / trade / withdraw restriction flags.
        All amount fields are decimal USDC strings. Windows are rolling 30-day /
        12-month sums, so there is no reset instant — old deposits drop out of
        `used` as they roll off the window. `"79228162514264337593543.950335"`
        (uint96 max) means no ceiling, not a real limit. `kycTier` is the user's
        KYC level (`null` when it could not be read); `tier` is the registry
        tier, not the KYC level.
      operationId: PortfolioController_depositLimits
      parameters:
        - $ref: '#/components/parameters/UserWalletHeader'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositLimitsRespDto'
      security:
        - ApiKey:
            - portfolio:read
components:
  parameters:
    UserWalletHeader:
      name: X-User-Wallet
      in: header
      required: false
      description: >-
        **Required for `multi_wallet` partners on every authenticated request;
        ignored for `single_wallet`.** Declares the acting end-user wallet for
        this request — drives KYC checks, balances/positions/orders attribution,
        rate-limit buckets, and audit. Lower-cased server-side. Missing on a
        multi_wallet key → 401 `api_key_user_wallet_required`; malformed → 401
        `api_key_user_wallet_invalid`. The on-chain `CTFExchange`/`Vault`
        contracts still verify EIP-712 signer ↔ vault binding, so loosening
        API-layer attribution is safe by construction.
      schema:
        $ref: '#/components/schemas/EthereumAddress'
      example: '0x1234567890abcdef1234567890abcdef12345678'
  schemas:
    DepositLimitsRespDto:
      type: object
      properties:
        walletAddress:
          type: string
          description: Authenticated wallet (lowercase 0x-hex).
        tier:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
          description: >-
            The wallet's on-chain `DepositLimitRegistry` tier — NOT the KYC
            level, which is `kycTier`; the two scales differ and must not be
            compared (KYC levels Basic and Standard both read `1` here). Values:
            0 = NONE, 1 = TIER_1, 2 = TIER_2, 3 = TIER_3, 4 = VIP, 5 = REJECTED.
            `0` (NONE) means the on-chain initialisation has not landed yet:
            deposits revert until it does.
        caps:
          description: >-
            Effective caps (the tier default with any per-wallet override
            applied). These figures, not `tier`, are what separate one KYC level
            from another.
          allOf:
            - $ref: '#/components/schemas/DepositLimitCapsDto'
        used:
          description: Deposits recorded inside each rolling window.
          allOf:
            - $ref: '#/components/schemas/DepositLimitWindowsDto'
        remaining:
          description: Headroom under each rolling cap = cap - used (clamped at 0).
          allOf:
            - $ref: '#/components/schemas/DepositLimitWindowsDto'
        restrictions:
          type: object
          description: >-
            Restriction flags, also enforced on-chain by the vault. A `true` is
            not by itself evidence of a compliance action — see each field.
          properties:
            depositBlocked:
              type: boolean
              description: >-
                Deposits refused: a compliance restriction, an active
                responsible-gambling exclusion or cooldown, an uninitialised
                (`NONE`) or `REJECTED` tier, or a cap already fully used. Check
                `remaining` before attributing it to compliance.
            tradeBlocked:
              type: boolean
              description: >-
                Trading refused: a compliance restriction, or an uninitialised
                (`NONE`) or `REJECTED` tier.
            withdrawBlocked:
              type: boolean
              description: >-
                Withdrawals refused: an uninitialised (`NONE`) tier, a
                compliance restriction, or KYC tier 1 (Basic), which may deposit
                but not withdraw.
          required:
            - depositBlocked
            - tradeBlocked
            - withdrawBlocked
        kycTier:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
            - null
          nullable: true
          description: >-
            The user's KYC level, 0..5 (0 none, 1 Basic, 2 Standard, 3 Enhanced,
            4 Advanced, 5 VIP): the stored KYC tier, raised to at least 1 once a
            quick verification is approved. Read from a cached copy of the KYC
            record, so for a few seconds after a KYC change it can still show
            the previous level. For a retail wallet it is the level `tier` and
            `caps` are derived from, so right after a change it can lead them
            until the on-chain update lands. It does not set the caps of a
            partner-onboarded wallet, of a partner sub-account whose KYC is
            waived, or of a closed account: there `tier` and `caps` follow the
            partner arrangement or the closure. A responsible-gambling or
            compliance deposit limit can only lower `caps` below the level's
            cap. `null` when the KYC record could not be read in time (the
            registry fields are still served).
          example: 2
      required:
        - walletAddress
        - tier
        - caps
        - used
        - remaining
        - restrictions
        - kycTier
    EthereumAddress:
      type: string
      pattern: ^0x[a-fA-F0-9]{40}$
      example: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3'
    DepositLimitCapsDto:
      type: object
      properties:
        singleDeposit:
          type: string
          description: >-
            Per-deposit ceiling, decimal USDC string.
            `"79228162514264337593543.950335"` (uint96 max) is the on-chain "no
            ceiling" value — render it as unlimited.
        thirtyDay:
          type: string
          description: >-
            30-day rolling cap, decimal USDC string.
            `"79228162514264337593543.950335"` (uint96 max) is the on-chain "no
            ceiling" value — render it as unlimited.
        twelveMonth:
          type: string
          description: >-
            12-month rolling cap, decimal USDC string.
            `"79228162514264337593543.950335"` (uint96 max) is the on-chain "no
            ceiling" value — render it as unlimited.
      required:
        - singleDeposit
        - thirtyDay
        - twelveMonth
    DepositLimitWindowsDto:
      type: object
      properties:
        thirtyDay:
          type: string
          description: 30-day rolling window value, decimal USDC string.
        twelveMonth:
          type: string
          description: 12-month rolling window value, decimal USDC string.
      required:
        - thirtyDay
        - twelveMonth
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Partner / integrator key — format `ps_live_<keyId>_<secret>`. Partner
        keys are issued by PredictStreet; a user can also create keys bound to
        their own wallet from their account settings in the web app. Never ship
        to a browser. `multi_wallet` partners must additionally send
        `X-User-Wallet: 0x<40-hex>` on every authenticated request to declare
        the acting wallet. See the [API keys guide](/auth/api-keys) for scope
        taxonomy, partner kinds, rate limits, and rotation procedure.

````

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