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

# Get Rebalance

> Fetches a rebalance by its issued `rebalanceId`.



## OpenAPI

````yaml /openapi/v1.json get /v1/rebalances/{rebalanceId}
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/{rebalanceId}:
    get:
      tags:
        - Rebalances
      summary: Get Rebalance
      description: Fetches a rebalance by its issued `rebalanceId`.
      operationId: getRebalance
      parameters:
        - schema:
            type: string
            format: uuid
            description: Issued `rebalanceId`.
            example: 3f8b2c9a-2d18-4f7e-9c2a-1b6e1f0c8a4d
          required: true
          name: rebalanceId
          in: path
      responses:
        '200':
          description: Rebalance found
          headers:
            Idempotency-Key:
              schema:
                type: string
                description: >-
                  Echoes the request's Idempotency-Key, identifying the
                  (possibly replayed) resource this response resolved to.
                example: 2f1a8c4e-0b3d-4a9c-8e7f-1a2b3c4d5e6f
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rebalance'
        '400':
          description: Invalid request (e.g. malformed rebalanceId)
          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
        '404':
          description: Rebalance not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '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 rebalance = await
            client.getRebalance("3f8b2c9a-2d18-4f7e-9c2a-1b6e1f0c8a4d");


            console.log(rebalance.status, rebalance.sourceVenue,
            rebalance.destinationVenue, rebalance.amount);
components:
  schemas:
    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
    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
    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.
    ApiErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - NOT_FOUND
        - INSUFFICIENT_BALANCE
        - IDEMPOTENCY_CONFLICT
        - ORDER_NOT_CANCELLABLE
        - INTERNAL_ERROR
      description: Stable identifier for the error category.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````