autoRebalance: false. A request can contain several movements. Deposits remain cash until you submit one.
Prerequisites
Use a funded wallet with automatic rebalancing disabled. SetBASE_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 withfromAssetId, 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 sameallocations 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 andmaxAllocationUsd 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.