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

# Wallet Flows

> One wallet's collateral flow: total deposited, withdrawn, net, and stable pages of deposit or withdrawal events. Resolved to the signer. Totals and counts remain fixed across pages in one traversal.

One wallet's collateral history: total deposited, total withdrawn, net, and
pages of deposit and withdrawal events. Any supported address form resolves to
the signer automatically.

Responses include `has_more` and an opaque `next_cursor`. Send that value as
`cursor` for the same wallet to continue through the fixed traversal:

```text theme={null}
GET /v3/perps/wallets/0xabc/flows?limit=100
GET /v3/perps/wallets/0xabc/flows?limit=100&cursor=<next_cursor>
```

The deposit and withdrawal totals and counts stay identical on every page in
one traversal. Cursors expire after 24 hours. A malformed cursor returns HTTP
`400` with `{"error":"invalid cursor"}`. An expired cursor returns
`{"error":"cursor has expired"}`. Reusing a cursor for another wallet returns
HTTP `400` with a clean mismatch message. Start again without the cursor in
each case.


## OpenAPI

````yaml GET /v3/perps/wallets/{address}/flows
openapi: 3.1.0
info:
  title: PolyNode API
  description: >-
    Real-time Polymarket data API with decoded mempool settlements, OHLCV
    candles, and full Polygon JSON-RPC proxy.
  contact:
    name: PolyNode
    url: https://polynode.dev
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.polynode.dev
    description: Production
security:
  - api_key: []
paths:
  /v3/perps/wallets/{address}/flows:
    get:
      tags:
        - Perps
      summary: Wallet flows
      description: >-
        One wallet's collateral flow: total deposited, withdrawn, net, and
        stable pages of deposit or withdrawal events. Resolved to the signer.
        Totals and counts remain fixed across pages in one traversal.
      parameters:
        - name: address
          in: path
          required: true
          description: Polymarket address (any form) or signer; resolved automatically.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Max rows.
          schema:
            type: integer
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque `next_cursor` from the preceding page. Reuse it for this
            wallet within 24 hours.
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                deposit_count: 13
                deposited_usd: '2656777.090896'
                events:
                  - block: 89996562
                    kind: deposit
                    timestamp: 1783699584000
                    usd: '52978.15075'
                  - block: 89824544
                    kind: deposit
                    timestamp: 1783374238000
                    usd: '117553.8245'
                has_more: false
                net_usd: '2656777.090896'
                next_cursor: null
                signer: '0xe666b1fed887af4c9cb8e8f6feb7fc1c537e74a5'
                withdrawal_count: 0
                withdrawn_usd: '0'
        '400':
          description: Malformed, expired, or wallet-mismatched cursor.
          content:
            application/json:
              example:
                error: invalid cursor
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````

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