Skip to main content
Move available funds between cash, yield sources, and stocks in a wallet with autoRebalance: false. A request can contain several movements. Deposits remain cash until you submit one.

Prerequisites

Use a funded wallet with automatic rebalancing disabled. Set BASE_URL, GROUND_API_KEY, and WALLET_ID for your environment as described in API conventions. The examples below use illustrative asset UUIDs and production network keys. Read source UUIDs from the wallet and destination asset UUIDs from the catalog in your environment.

1. Select positions

Fetch the wallet to select an available cash or yield position, then use the live catalog to choose a compatible destination in the same allocation group.

2. Preview the movement

Call Preview Allocation with fromAssetId, toAssetId, and an amount for each fund or stock purchase. These examples show allocations on different networks:

3. Submit the allocation

After a successful preview, submit the same allocations with a fresh UUID requestId to Allocate. To redeem a holding to cash, use the held investment’s assetId as fromAssetId and a supported cash asset UUID as toAssetId. Select that cash UUID from the catalog using its network and token. The wallet need not already hold the destination. Preview first. For the Ethereum example above, submit the following after preview succeeds. Save a fresh UUID v4 as REQUEST_ID and retain the exact request body before sending:

4. Confirm settlement

Track the returned rebalance using the activity feed or Webhooks. Completion updates the wallet’s holdings. Use source asset UUIDs from the wallet in the environment you are using, amounts within its available balance, and the documented deposit minimums and maxAllocationUsd from Get an asset. Choose destination assets from the catalog or a supported cash route. If preview rejects a movement, check the source balance, allocation group, and destination eligibility.

Trade stock tokens

Stock purchases and sales use the same preview and allocation requests above in a manual wallet (autoRebalance: false). To buy, move from a cash asset to the stock asset; to sell, reverse the direction. Set stockPriceTolerancePct on each stock movement; the default is 1% and the allowed range is 0–5%. A trade requires a current executable quote.

Recover an incomplete allocation

Save the request ID and exact payload before submitting. If the request times out, reuse them unchanged. Read wallet activity before starting another operation. If the allocation fails, keep its ID and failure reason and contact Ground when the next action is unclear. An accepted request does not confirm settlement.