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

# List Rebalances

> Returns a paginated list of the customer's rebalances.



## OpenAPI

````yaml /openapi/v1.json get /v1/rebalances
openapi: 3.0.0
info:
  title: ParlayX API
  version: 1.0.0
  description: Aggregated prediction-market trading API
servers:
  - url: https://api.parlayx.com
security:
  - apiKey: []
tags:
  - name: Markets
    description: Discover markets and find cross-venue matches.
  - name: Orders
    description: Submit, inspect, and cancel orders.
  - name: Rebalances
    description: Move funds between venues and track the transfer.
  - name: Balance
    description: Read account balances and funding state.
paths:
  /v1/rebalances:
    get:
      tags:
        - Rebalances
      summary: List Rebalances
      description: Returns a paginated list of the customer's rebalances.
      operationId: listRebalances
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
            description: >-
              Max results to return (1-100). Applies to the first page only;
              ignored when a pageToken is supplied (the token's encoded page
              size wins).
            example: 20
          required: false
          name: pageSize
          in: query
        - schema:
            type: string
            minLength: 1
            description: >-
              Opaque cursor from a previous response's `nextPageToken`. Encodes
              the page size so it does not need to be re-sent. Omit to fetch the
              first page.
          required: false
          name: pageToken
          in: query
      responses:
        '200':
          description: Rebalances found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRebalancesResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing, malformed, or not recognized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
              example:
                message: Forbidden
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >
            import { createClient } from "@parlayx/sdk";


            const client = createClient({ apiKey: process.env.PARLAYX_API_KEY!
            });


            const { rebalances } = await client.listRebalances({ pageSize: 50
            });


            for (const rebalance of rebalances) {
              console.log(rebalance.rebalanceId, rebalance.status, rebalance.amount);
            }
components:
  schemas:
    ListRebalancesResponse:
      type: object
      properties:
        rebalances:
          type: array
          items:
            $ref: '#/components/schemas/Rebalance'
          description: Page of rebalances, most-recently-active first.
        nextPageToken:
          type: string
          nullable: true
          description: Opaque cursor for the next page; null on the last page.
      required:
        - rebalances
        - nextPageToken
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              $ref: '#/components/schemas/ApiErrorCode'
            message:
              type: string
              description: Plain-text explanation of the error.
          required:
            - code
            - message
      required:
        - error
    AuthError:
      type: object
      properties:
        message:
          type: string
          description: Plain-text explanation of the authentication error.
      required:
        - message
    Rebalance:
      type: object
      properties:
        rebalanceId:
          type: string
          description: Issued `rebalanceId`. Stable handle for status lookups.
          example: 3f8b2c9a-2d18-4f7e-9c2a-1b6e1f0c8a4d
        sourceVenue:
          allOf:
            - $ref: '#/components/schemas/Venue'
            - description: >-
                Venue whose resting form funds the move. polymarket: pUSD on
                Polygon. limitless: USDC on Base.
        destinationVenue:
          allOf:
            - $ref: '#/components/schemas/Venue'
            - description: Venue the funds were moved into spendable form at.
        amount:
          type: number
          description: >-
            Amount moved, in USDC — the amount that must land spendable at the
            destination venue.
          example: 25
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
          description: >-
            Rebalance lifecycle. pending: accepted, not yet started. processing:
            converting and/or bridging funds from the source venue into the
            destination venue's spendable form. completed: the amount landed at
            the destination. failed: terminal — funds were not moved (no funds
            are lost).
          example: completed
        error:
          type: object
          nullable: true
          properties:
            code:
              $ref: '#/components/schemas/RebalanceErrorCode'
            message:
              type: string
              description: Plain-text explanation of the error.
          required:
            - code
            - message
          description: Why the rebalance failed when status is failed; null otherwise.
        createdAt:
          type: string
          description: ISO-8601 time the rebalance was created.
        updatedAt:
          type: string
          description: ISO-8601 time the rebalance was last updated.
      required:
        - rebalanceId
        - sourceVenue
        - destinationVenue
        - amount
        - status
        - error
        - createdAt
        - updatedAt
    ApiErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - NOT_FOUND
        - INSUFFICIENT_BALANCE
        - IDEMPOTENCY_CONFLICT
        - ORDER_NOT_CANCELLABLE
        - INTERNAL_ERROR
      description: Stable identifier for the error category.
    Venue:
      type: string
      enum:
        - polymarket
        - limitless
        - predict_fun
      description: Source market venue (must be a supported venue)
      example: polymarket
    RebalanceErrorCode:
      type: string
      enum:
        - INSUFFICIENT_FUNDS
        - INTERNAL_ERROR
      description: Stable identifier for the error category.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````