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

# Create a portfolio wallet

> Creates a wallet that either invests deposits automatically or keeps them in cash. Reusing `requestId` returns the same wallet.

A wallet without holdings returns `positions: []`, while `strategyAllocations`
already lists its desired targets. Once funded, each position reports its shared
catalog `assetId` and balance. See
[Asset IDs](https://docs.groundtech.co/v3/docs/portfolio-wallets/api-conventions.md#asset-ids).


## OpenAPI

````yaml swagger/v3.yaml POST /v3/wallets
openapi: 3.0.0
info:
  title: Ground API
  description: API for Portfolio Wallets, gtokens, MicroVaults, and webhooks.
  version: 3.0.0
servers:
  - url: https://sandbox.groundtech.co
  - url: https://production.groundtech.co
security:
  - bearerAuth: []
tags:
  - name: System
    description: System health and utility endpoints.
  - name: Sandbox Faucets
    description: Sandbox-only test token faucets.
  - name: Portfolio Wallets
    description: >-
      Portfolio wallets with strategy allocation, deposits, withdrawals, and
      yield positions.
  - name: gVaults
    description: >-
      Direct access to gtokens with deposit access controls and optional fee
      wrappers.
  - name: MicroVaults
    description: >-
      Customer-owned onchain vaults with externally held ERC-20 shares. Private
      preview.
  - name: Webhook Endpoints
    description: Webhook endpoint management for portfolio wallet notifications.
paths:
  /v3/wallets:
    post:
      tags:
        - Portfolio Wallets
      summary: Create a Wallet
      description: >-
        Creates a wallet that either invests deposits automatically or keeps
        them in cash. Reusing `requestId` returns the same wallet.
      operationId: createWalletV3
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  required:
                    - requestId
                    - strategy
                  additionalProperties: false
                  properties:
                    requestId:
                      type: string
                      format: uuid
                      description: Client-generated idempotency key (UUID v4).
                    label:
                      type: string
                      nullable: true
                      description: Optional human-readable label for the wallet.
                    autoRebalance:
                      type: boolean
                      enum:
                        - true
                      default: true
                    strategy:
                      $ref: '#/components/schemas/StrategyInput'
                - type: object
                  required:
                    - requestId
                    - autoRebalance
                  additionalProperties: false
                  properties:
                    requestId:
                      type: string
                      format: uuid
                      description: Client-generated idempotency key (UUID v4).
                    label:
                      type: string
                      nullable: true
                      description: Optional human-readable label for the wallet.
                    autoRebalance:
                      type: boolean
                      enum:
                        - false
            example:
              requestId: a1b2c3d4-0000-4000-8000-000000000001
              label: Corporate Treasury
              autoRebalance: true
              strategy:
                allocations:
                  usdc:crosschain:
                    - kind: cash
                      targetWeightPct: 20
                    - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                      targetWeightPct: 80
                  usdt:ethereum:
                    - kind: cash
                      targetWeightPct: 100
      responses:
        '200':
          description: >-
            Wallet returned. New wallets may still be provisioning with `status:
            creating`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wallet'
              examples:
                Automatic:
                  summary: Automatically rebalanced wallet
                  value:
                    id: b1c2d3e4-0000-4000-8000-000000000001
                    autoRebalance: true
                    label: Corporate Treasury
                    createdAt: '2025-09-01T00:00:00Z'
                    status: idle
                    failureReason: null
                    depositAddresses:
                      ethereum: '0xAbC1230000000000000000000000000000000001'
                      stellar: GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
                      tron: TBXSw8fM4jpQkGc6zZjsVABFpVN7UvXPdV
                    balance:
                      totalUsd: '1500.000000'
                      withdrawableUsd: '1500.000000'
                      reservedUsd: '0.000000'
                      earnedUsd: '5.000000'
                    positions:
                      - assetId: 4ab063cf-303d-4f62-80a6-5a142c1d2fdb
                        kind: cash
                        label: USDC (Ethereum)
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '100.000000'
                        withdrawableUsd: '100.000000'
                      - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                        kind: yield_source
                        label: Morpho Gauntlet USDC Prime
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '300.000000'
                        withdrawableUsd: '300.000000'
                        tokenDecimals: 18
                        nativeUnits: '300000000000000000000'
                        mode: active
                        apyPct: 4.52
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 667069d1-48ac-4a4e-a716-50aefe5fb389
                        kind: yield_source
                        label: Janus Henderson JTRSY
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '300.000000'
                        withdrawableUsd: '300.000000'
                        tokenDecimals: 18
                        nativeUnits: '300000000000000000000'
                        mode: active
                        apyPct: 4.1
                        denominationCurrency: USD
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 2b88a61a-c919-491d-84ab-78f353e55230
                        kind: yield_source
                        label: Etherfuse CETES
                        chain: stellar
                        allocationGroup: usdc:crosschain
                        valueUsd: '300.000000'
                        withdrawableUsd: '300.000000'
                        tokenDecimals: 7
                        nativeUnits: '150000000'
                        mode: active
                        apyPct: 5.7
                        denominationCurrency: MXN
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: f5a3c787-3452-4699-853f-e8710d063cec
                        kind: yield_source
                        label: Maple Syrup USDT
                        chain: ethereum
                        allocationGroup: usdt:ethereum
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        mode: active
                        apyPct: 5.04
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 2e272d44-acbd-43e3-af08-e0b2e90943fb
                        kind: yield_source
                        label: JustLend V1 USDT
                        chain: tron
                        allocationGroup: usdt:tron
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        mode: active
                        apyPct: 1.91
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                    strategyAllocations:
                      usdc:crosschain:
                        - kind: cash
                          targetWeightPct: 10
                        - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                          targetWeightPct: 30
                        - assetId: 667069d1-48ac-4a4e-a716-50aefe5fb389
                          targetWeightPct: 30
                        - assetId: 2b88a61a-c919-491d-84ab-78f353e55230
                          targetWeightPct: 30
                      usdt:ethereum:
                        - assetId: f5a3c787-3452-4699-853f-e8710d063cec
                          targetWeightPct: 100
                      usdt:tron:
                        - assetId: 2e272d44-acbd-43e3-af08-e0b2e90943fb
                          targetWeightPct: 100
                Manual:
                  summary: Manually allocated wallet
                  value:
                    id: b1c2d3e4-0000-4000-8000-000000000003
                    autoRebalance: false
                    label: Manual Portfolio
                    createdAt: '2025-09-01T00:00:00Z'
                    status: idle
                    failureReason: null
                    depositAddresses:
                      ethereum: '0xAbC1230000000000000000000000000000000001'
                      stellar: GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
                    balance:
                      totalUsd: '1000.000000'
                      withdrawableUsd: '1000.000000'
                      reservedUsd: '0.000000'
                      earnedUsd: '0.000000'
                    positions:
                      - assetId: 4ab063cf-303d-4f62-80a6-5a142c1d2fdb
                        kind: cash
                        label: USDC (Ethereum)
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '100.000000'
                        withdrawableUsd: '100.000000'
                      - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                        kind: yield_source
                        label: Morpho Gauntlet USDC Prime
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        tokenDecimals: 18
                        nativeUnits: '250000000000000000000'
                        mode: active
                        apyPct: 4.52
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 667069d1-48ac-4a4e-a716-50aefe5fb389
                        kind: yield_source
                        label: Janus Henderson JTRSY
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        tokenDecimals: 18
                        nativeUnits: '250000000000000000000'
                        mode: active
                        apyPct: 4.1
                        denominationCurrency: USD
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: d2ab3e33-f5c9-429d-ac0b-b162397fa92c
                        kind: stock
                        label: SPDR S&P 500 ETF
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '150.000000'
                        withdrawableUsd: '150.000000'
                        tokenDecimals: 18
                        nativeUnits: '200000000000000000'
                        assetSymbol: SPYon
                        mode: active
                        priceUsd: '750.000000'
                        priceAsOf: '2026-11-12T16:00:00Z'
                        priceFreshness: fresh
                      - assetId: 2b88a61a-c919-491d-84ab-78f353e55230
                        kind: yield_source
                        label: Etherfuse CETES
                        chain: stellar
                        allocationGroup: usdc:crosschain
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        tokenDecimals: 7
                        nativeUnits: '125000000'
                        mode: active
                        apyPct: 5.7
                        denominationCurrency: MXN
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                    strategyAllocations: null
                Creating:
                  summary: Wallet being created
                  value:
                    id: b1c2d3e4-0000-4000-8000-000000000001
                    autoRebalance: true
                    label: Corporate Treasury
                    createdAt: '2025-09-01T00:00:00Z'
                    status: creating
                    failureReason: null
                    depositAddresses: {}
                    balance:
                      totalUsd: '0.000000'
                      withdrawableUsd: '0.000000'
                      reservedUsd: '0.000000'
                      earnedUsd: '0.000000'
                    positions: []
                    strategyAllocations:
                      usdc:crosschain:
                        - kind: cash
                          targetWeightPct: 20
                        - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                          targetWeightPct: 80
                      usdt:ethereum:
                        - assetId: f5a3c787-3452-4699-853f-e8710d063cec
                          targetWeightPct: 100
                      usdt:tron:
                        - assetId: 2e272d44-acbd-43e3-af08-e0b2e90943fb
                          targetWeightPct: 100
                Automatic rebalance in-flight:
                  summary: Automatic rebalance in-flight
                  value:
                    id: b1c2d3e4-0000-4000-8000-000000000001
                    autoRebalance: true
                    label: Corporate Treasury
                    createdAt: '2025-09-01T00:00:00Z'
                    status: rebalance_active
                    failureReason: null
                    depositAddresses:
                      ethereum: '0xAbC1230000000000000000000000000000000001'
                      stellar: GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
                      tron: TBXSw8fM4jpQkGc6zZjsVABFpVN7UvXPdV
                    balance:
                      totalUsd: '1500.000000'
                      withdrawableUsd: '1450.000000'
                      reservedUsd: '50.000000'
                      earnedUsd: '5.000000'
                    positions:
                      - assetId: 4ab063cf-303d-4f62-80a6-5a142c1d2fdb
                        kind: cash
                        label: USDC (Ethereum)
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '150.000000'
                        withdrawableUsd: '100.000000'
                      - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                        kind: yield_source
                        label: Morpho Gauntlet USDC Prime
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        tokenDecimals: 18
                        nativeUnits: '250000000000000000000'
                        mode: active
                        apyPct: 4.52
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 667069d1-48ac-4a4e-a716-50aefe5fb389
                        kind: yield_source
                        label: Janus Henderson JTRSY
                        chain: ethereum
                        allocationGroup: usdc:crosschain
                        valueUsd: '300.000000'
                        withdrawableUsd: '300.000000'
                        tokenDecimals: 18
                        nativeUnits: '300000000000000000000'
                        mode: active
                        apyPct: 4.1
                        denominationCurrency: USD
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 2b88a61a-c919-491d-84ab-78f353e55230
                        kind: yield_source
                        label: Etherfuse CETES
                        chain: stellar
                        allocationGroup: usdc:crosschain
                        valueUsd: '300.000000'
                        withdrawableUsd: '300.000000'
                        tokenDecimals: 7
                        nativeUnits: '150000000'
                        mode: active
                        apyPct: 5.7
                        denominationCurrency: MXN
                        navUpdateMode: discrete
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: f5a3c787-3452-4699-853f-e8710d063cec
                        kind: yield_source
                        label: Maple Syrup USDT
                        chain: ethereum
                        allocationGroup: usdt:ethereum
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        mode: active
                        apyPct: 5.04
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                      - assetId: 2e272d44-acbd-43e3-af08-e0b2e90943fb
                        kind: yield_source
                        label: JustLend V1 USDT
                        chain: tron
                        allocationGroup: usdt:tron
                        valueUsd: '250.000000'
                        withdrawableUsd: '250.000000'
                        mode: active
                        apyPct: 1.91
                        denominationCurrency: USD
                        navUpdateMode: continuous
                        priceAsOf: '2026-11-12T16:00:00Z'
                    strategyAllocations:
                      usdc:crosschain:
                        - kind: cash
                          targetWeightPct: 10
                        - assetId: 80f900d0-a4b8-4c97-bdc2-8e2ab5228e19
                          targetWeightPct: 30
                        - assetId: 667069d1-48ac-4a4e-a716-50aefe5fb389
                          targetWeightPct: 30
                        - assetId: 2b88a61a-c919-491d-84ab-78f353e55230
                          targetWeightPct: 30
                      usdt:ethereum:
                        - assetId: f5a3c787-3452-4699-853f-e8710d063cec
                          targetWeightPct: 100
                      usdt:tron:
                        - assetId: 2e272d44-acbd-43e3-af08-e0b2e90943fb
                          targetWeightPct: 100
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_allocation:
                  summary: Allocations do not sum to 100
                  value:
                    error: Allocation percentages must sum to 100
                    code: validation_error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Etherfuse bond purchases in the initial strategy are not enabled for
            this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: >-
                  Etherfuse bond purchases are not enabled for your
                  organization. Contact Ground to request access.
                code: product_not_enabled
        '409':
          description: >-
            The same `requestId` was reused with a divergent payload
            (`request_id_conflict`). An identical replay returns `200` with the
            existing wallet instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                request_id_conflict:
                  summary: requestId reused with a different wallet payload
                  value:
                    error: requestId has already been used with a different payload
                    code: request_id_conflict
                duplicate_request_id:
                  summary: Concurrent create race on the same requestId
                  value:
                    error: Duplicate requestId
                    code: duplicate_request_id
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '502':
          description: Upstream wallet-creation failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                wallet_creation_failed:
                  value:
                    error: Wallet creation failed
                    code: wallet_creation_failed
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    StrategyInput:
      type: object
      required:
        - allocations
      additionalProperties: false
      properties:
        allocations:
          $ref: '#/components/schemas/TokenStrategyAllocationsInput'
    Wallet:
      type: object
      required:
        - id
        - autoRebalance
        - label
        - createdAt
        - status
        - failureReason
        - depositAddresses
        - balance
        - positions
        - strategyAllocations
      properties:
        id:
          type: string
          format: uuid
        autoRebalance:
          type: boolean
          description: >-
            Whether Ground automatically deploys deposits and maintains the
            wallet's percentage targets.
        label:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        status:
          type: string
          description: Compact wallet lifecycle and active-workflow status.
          enum:
            - creating
            - idle
            - withdrawal_active
            - rebalance_active
            - withdrawal_and_rebalance_active
            - failed
        failureReason:
          type: string
          nullable: true
        depositAddresses:
          type: object
          description: >-
            Ready deposit addresses keyed by network. An idle wallet may still
            be preparing other addresses. Production supports Tempo USDC.e;
            enabled sandbox organizations support OUSD on tempo_moderato. Use
            only the returned address for the intended network; Tempo and
            Ethereum addresses can differ.
          additionalProperties:
            type: string
          example:
            arbitrum: '0xAbC1230000000000000000000000000000000001'
            base: '0xAbC1230000000000000000000000000000000001'
            ethereum: '0xAbC1230000000000000000000000000000000001'
            polygon: '0xAbC1230000000000000000000000000000000001'
            solana: 7vFgKxM3bP4oEFbqkPmA5E2rYJ8HqKz8abc1
            stellar: GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
            tron: TBXSw8fM4jpQkGc6zZjsVABFpVN7UvXPdV
        balance:
          type: object
          required:
            - totalUsd
            - withdrawableUsd
            - reservedUsd
            - earnedUsd
          properties:
            totalUsd:
              type: string
              description: >-
                Gross economically owned wallet value across cash, positions,
                and in-transit customer-owned value.
            withdrawableUsd:
              type: string
              description: >-
                Gross wallet value available to start a withdrawal, before
                execution fees. Excludes funds reserved for ongoing operations
                or awaiting settlement.
            reservedUsd:
              type: string
              description: Customer-owned value reserved by active wallet workflows.
            earnedUsd:
              type: string
              description: >-
                Customer-facing lifetime realized gross yield earned to date,
                before explicit protocol fees and protocol slippage.
        positions:
          type: array
          description: >-
            Actual holdings identified by the same assetId used in the catalog.
            Balances are scoped to this wallet. Empty accounts and unfunded
            strategy targets are omitted.
          items:
            $ref: '#/components/schemas/WalletPosition'
        strategyAllocations:
          nullable: true
          description: >-
            Desired targets independently of current holdings and achieved
            weights. Investment targets use assetId; kind cash leaves capital
            uninvested within the group without choosing a particular cash
            network. Null for manual wallets.
          allOf:
            - $ref: '#/components/schemas/PublicStrategyAllocationGroups'
    ErrorResponse:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
          description: >-
            Human-readable error message. May change without notice; do not
            parse programmatically.
        code:
          type: string
          description: >-
            Machine-readable error code. Use it for programmatic handling rather
            than parsing the error message.
          enum:
            - validation_error
            - unknown_parameters
            - payload_too_large
            - unsupported_media_type
            - submission_id_conflict
            - feedback_unavailable
            - unsupported_chain
            - unsupported_token
            - invalid_destination_address
            - stellar_destination_account_not_active
            - stellar_destination_usdc_not_enabled
            - precision_overflow
            - invalid_cursor
            - unauthenticated
            - forbidden
            - wallet_not_found
            - wallet_limit_reached
            - withdrawal_not_found
            - deposit_not_found
            - yield_source_not_found
            - wallet_projection_unavailable
            - insufficient_funds
            - duplicate_request_id
            - request_id_conflict
            - invalid_position_weight
            - invalid_withdrawal_plan
            - payout_not_found
            - webhook_not_found
            - webhook_duplicate_url
            - withdrawal_not_cancellable
            - withdrawal_already_cancelled
            - withdrawal_payout_in_progress
            - withdrawal_policy_required
            - workflow_conflict
            - stale_rebalance_plan
            - stale_wallet_strategy
            - payout_already_terminal
            - payout_in_progress
            - payout_not_retryable
            - address_book_entry_not_found
            - address_book_duplicate_entry
            - address_book_whitelist_violation
            - rate_limited
            - rate_limit_exceeded
            - internal_error
            - wallet_creation_failed
            - service_temporarily_unavailable
            - operation_not_supported
            - wallet_withdrawal_active
            - stellar_customer_approval_unavailable
            - withdrawal_signing_required
            - wallet_performance_unavailable
            - tempo_beta_transfer_limit_exceeded
            - product_not_enabled
            - gvault_not_found
            - allowlist_update_pending
            - fee_wrapper_not_found
            - fee_wrapper_fee_update_pending
            - statement_too_large
            - no_reportable_wallets
            - report_timeout
            - read_only_api_key
    TokenStrategyAllocationsInput:
      type: object
      minProperties: 1
      additionalProperties: false
      properties:
        usdc:crosschain:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/AllocationInput'
          description: USDC-compatible allocations. Percentages must sum to 100.
        usdt:ethereum:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/AllocationInput'
          description: Ethereum USDT-compatible allocations. Percentages must sum to 100.
        usdt:tron:
          type: array
          items:
            $ref: '#/components/schemas/AllocationInput'
          description: >-
            Native TRON USDT allocations, independently weighted from Ethereum
            USDT. Each group totals 100 percent.
      description: >-
        Allocation groups. Each included group must independently sum to 100
        percent. `usdt:ethereum` uses Ethereum USDT; `usdt:tron` uses native
        TRON USDT.
    WalletPosition:
      oneOf:
        - $ref: '#/components/schemas/CashWalletPosition'
        - $ref: '#/components/schemas/YieldWalletPosition'
        - $ref: '#/components/schemas/StockWalletPosition'
    PublicStrategyAllocationGroups:
      type: object
      properties:
        usdc:crosschain:
          type: array
          items:
            $ref: '#/components/schemas/PublicStrategyAllocation'
        usdt:ethereum:
          type: array
          items:
            $ref: '#/components/schemas/PublicStrategyAllocation'
        usdt:tron:
          type: array
          items:
            $ref: '#/components/schemas/PublicStrategyAllocation'
          description: >-
            Native TRON USDT allocations, independently weighted from Ethereum
            USDT. Each group totals 100 percent.
      description: >-
        Desired targets by settlement group, independent of current holdings and
        achieved weights. Each included group totals 100 percent. Targets do not
        create positions.
    AuthErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Authentication or authorization error message.
        message:
          type: string
          nullable: true
          description: Additional auth middleware detail, when present.
        code:
          type: string
          nullable: true
          description: >-
            Some auth and scope failures include a stable code; middleware
            errors may omit it.
    ServiceUnavailableError:
      allOf:
        - $ref: '#/components/schemas/ErrorResponse'
        - type: object
          properties:
            retryable:
              type: boolean
              description: Whether the client should retry with the same requestId
    AllocationInput:
      oneOf:
        - $ref: '#/components/schemas/AllocationInputAssetTarget'
        - $ref: '#/components/schemas/AllocationInputCashTarget'
    CashWalletPosition:
      type: object
      required:
        - assetId
        - kind
        - label
        - valueUsd
      properties:
        assetId:
          $ref: '#/components/schemas/AssetId'
        kind:
          type: string
          enum:
            - cash
        label:
          type: string
          description: Human-readable display name.
        chain:
          type: string
          description: Network on which this asset position is held.
        allocationGroup:
          $ref: '#/components/schemas/PortfolioWalletAllocationGroup'
        valueUsd:
          type: string
          description: Current USD value of this position.
        withdrawableUsd:
          type: string
          description: >-
            Amount of this position currently available to initiate for
            withdrawal. Pending provider-managed redemption value remains in
            valueUsd but is excluded here.
      title: Cash holding
      additionalProperties: false
    YieldWalletPosition:
      type: object
      required:
        - kind
        - label
        - valueUsd
        - assetId
      properties:
        assetId:
          $ref: '#/components/schemas/AssetId'
        kind:
          type: string
          enum:
            - yield_source
        label:
          type: string
          description: Human-readable display name.
        chain:
          type: string
          description: Network on which this asset position is held.
        allocationGroup:
          $ref: '#/components/schemas/PortfolioWalletAllocationGroup'
        valueUsd:
          type: string
          description: Current USD value of this position.
        withdrawableUsd:
          type: string
          description: >-
            Amount of this position currently available to initiate for
            withdrawal. Pending provider-managed redemption value remains in
            valueUsd but is excluded here.
        tokenDecimals:
          type: integer
          nullable: true
          minimum: 0
          description: Decimal precision used by nativeUnits for this noncash holding.
        nativeUnits:
          type: string
          pattern: ^(0|[1-9]\d*)$
          description: Exact noncash token quantity in its catalog decimals.
        mode:
          type: string
          nullable: true
          description: Current operating mode when the yield source can be identified.
        apyPct:
          $ref: '#/components/schemas/YieldAssetApyPct'
        denominationCurrency:
          type: string
          description: >-
            Currency of this yield-source position's apyPct. valueUsd remains
            the USD valuation.
          example: MXN
        navUpdateMode:
          type: string
          nullable: true
          enum:
            - continuous
            - discrete
            - null
          description: Whether client-side accrual between price snapshots is appropriate.
        priceAsOf:
          type: string
          format: date-time
          nullable: true
          description: Timestamp of the reference price used to value the position.
        productId:
          type: string
          description: >-
            Product identity for yield sources that share a product across
            networks.
      title: Yield-source holding
      additionalProperties: false
    StockWalletPosition:
      type: object
      required:
        - kind
        - label
        - valueUsd
        - assetId
      properties:
        assetId:
          $ref: '#/components/schemas/AssetId'
        kind:
          type: string
          enum:
            - stock
        label:
          type: string
          description: Human-readable display name.
        chain:
          type: string
          description: Network on which this asset position is held.
        allocationGroup:
          $ref: '#/components/schemas/PortfolioWalletAllocationGroup'
        valueUsd:
          type: string
          description: Current USD value of this position.
        withdrawableUsd:
          type: string
          description: >-
            Amount of this position currently available to initiate for
            withdrawal. Pending provider-managed redemption value remains in
            valueUsd but is excluded here.
        tokenDecimals:
          type: integer
          nullable: true
          minimum: 0
          description: Decimal precision used by nativeUnits for this noncash holding.
        nativeUnits:
          type: string
          pattern: ^(0|[1-9]\d*)$
          description: Exact noncash token quantity in its catalog decimals.
        assetSymbol:
          type: string
          description: Provider stock-token symbol, such as SPYon.
        mode:
          type: string
          nullable: true
          description: Current operating mode of the stock asset.
        priceUsd:
          $ref: '#/components/schemas/StockPriceFieldsPriceUsd'
        priceAsOf:
          type: string
          format: date-time
          nullable: true
          description: Timestamp of the reference price used to value the position.
        priceFreshness:
          $ref: '#/components/schemas/StockPriceFieldsPriceFreshness'
      title: Stock holding
      additionalProperties: false
    PublicStrategyAllocation:
      oneOf:
        - $ref: '#/components/schemas/PublicStrategyAllocationAssetTarget'
        - $ref: '#/components/schemas/PublicStrategyAllocationCashTarget'
    AllocationInputAssetTarget:
      title: Investment target
      type: object
      additionalProperties: false
      required:
        - assetId
        - targetWeightPct
      properties:
        assetId:
          $ref: '#/components/schemas/AssetId'
        targetWeightPct:
          type: number
          multipleOf: 0.1
          minimum: 0
          maximum: 100
          description: >-
            Target percentage within this allocation group, in 0.1% increments.
            Each group totals 100%.
    AllocationInputCashTarget:
      title: Uninvested cash target
      type: object
      additionalProperties: false
      required:
        - kind
        - targetWeightPct
      properties:
        kind:
          type: string
          enum:
            - cash
          description: >-
            Keep this share of the group uninvested, without selecting a
            particular network cash asset.
        targetWeightPct:
          type: number
          multipleOf: 0.1
          minimum: 0
          maximum: 100
          description: >-
            Target percentage within this allocation group, in 0.1% increments.
            Each group totals 100%.
    AssetId:
      type: string
      format: uuid
      description: >-
        Immutable catalog asset UUID, shared by every wallet in this
        environment. Cash, funds, and stocks use the same identity. Read IDs
        from GET /v3/assets; do not derive them from names, symbols, or wallet
        account IDs.
    PortfolioWalletAllocationGroup:
      type: string
      enum:
        - usdc:crosschain
        - usdt:ethereum
        - usdt:tron
      description: >-
        Independently weighted strategy bucket: usdc:crosschain spans supported
        USDC-compatible networks and conversion routes; usdt:ethereum and
        usdt:tron remain network-specific.
    YieldAssetApyPct:
      type: number
      nullable: true
      description: >-
        Annualized yield in denominationCurrency, in percent: 4.52 means 4.52%.
        Null when unavailable. The rate may represent a current lending rate or
        historical annualized return according to the product.
    StockPriceFieldsPriceUsd:
      type: string
      nullable: true
      description: >-
        Last observed price per whole stock token, preserving decimal precision.
        This is an indicative mark, not an executable quote.
    StockPriceFieldsPriceFreshness:
      type: string
      enum:
        - fresh
        - stale
        - unavailable
      description: >-
        Whether the mark meets the stock's trading freshness bound. Stale marks
        remain visible; new trades wait for a fresh mark and executable quote.
    PublicStrategyAllocationAssetTarget:
      title: Investment target
      type: object
      additionalProperties: false
      required:
        - assetId
        - targetWeightPct
      properties:
        assetId:
          $ref: '#/components/schemas/AssetId'
        targetWeightPct:
          type: number
          multipleOf: 0.1
          minimum: 0
          maximum: 100
          description: >-
            Target percentage within this allocation group, in 0.1% increments.
            Each group totals 100%.
    PublicStrategyAllocationCashTarget:
      title: Uninvested cash target
      type: object
      additionalProperties: false
      required:
        - kind
        - targetWeightPct
      properties:
        kind:
          type: string
          enum:
            - cash
          description: >-
            Keep this share of the group uninvested, without selecting a
            particular network cash asset.
        targetWeightPct:
          type: number
          multipleOf: 0.1
          minimum: 0
          maximum: 100
          description: >-
            Target percentage within this allocation group, in 0.1% increments.
            Each group totals 100%.
  responses:
    Unauthorized:
      description: >-
        The request is missing a valid bearer token, or the token is invalid or
        expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthErrorResponse'
          example:
            error: Unauthenticated request
            message: Missing or invalid bearer token
    TooManyRequests:
      description: >-
        Rate limit exceeded. Limits are enforced by API key/customer identity
        and by endpoint class. Wait for the number of seconds in Retry-After,
        add a small random delay, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Rate limit exceeded
            code: rate_limited
    InternalServerError:
      description: >-
        An unexpected error occurred. Reconcile the original operation before
        retrying a write; preserve its required idempotency key and payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
            code: internal_error
    ServiceUnavailable:
      description: >-
        A dependency is temporarily unavailable. Retry with bounded backoff and
        preserve the original operation identity for writes.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServiceUnavailableError'
          example:
            error: Service temporarily unavailable
            code: service_temporarily_unavailable
            retryable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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