earnedUsd or yield APY.
Ondo stocks are available only to eligible non-US users. Ground must enable
purchases for your organization. Automatic wallet strategies accept cash and
yield sources only.
Find stock tokens
Fetch the portfolio asset catalog withGET /v2/wallets/assets and select entries with kind: "stock". Each entry
identifies the underlying company or fund and its Ondo token symbol. For example,
QQQon represents Invesco QQQ and NVDAon represents NVIDIA.
The catalog includes these equities and ETFs. Use the live response to determine
which tokens are visible to your organization.
Check purchase access
CheckpurchaseAvailability.enabled before offering a stock purchase; see
Check purchase access
for handling restricted assets. Use the stock’s mode, buyAssets, and
sellAssets to determine supported actions and routes.
If your organization requires customer approval for policy changes, approve the
Ondo signing request in Portal Approvals. Otherwise, Ground installs the stock
signing permissions under its existing policy-management authority. Stock
allocations return 400 validation_error without reserving funds until those
permissions are installed. Enabling stocks preserves your administration
policies and root quorum.
A stock can become exit-only: new purchases stop while redemption remains
available, subject to issuer availability. An emergency suspension can also stop
redemption.
Display prices and returns
The authenticated catalog provides an indicative price per whole token inpriceUsd. Use priceAsOf and priceFreshness to show when that price was
observed. A stale price remains visible, but a new trade requires a fresh price
and an executable quote.
The public asset list provides
priceReturn30dBps, the token’s USD price change over 30 days. For example,
-250 means the price fell 2.5%. This measures a price change, not yield or APY.
If there is not enough price history, the field is null; display the return as
unavailable.
Buy or sell stock tokens
Prerequisites
Use a funded wallet withautoRebalance: false. Set BASE_URL and API_TOKEN
for your environment, and set WALLET_ID to its ID. The requests below require
jq. Complete the purchase access checks first.
Read buyAssets and sellAssets in the catalog for supported funding and
redemption routes. Enabled production Ondo routes settle in Ethereum USDC.
Ground validates any conversion needed from another position when you preview.
1. Select the positions and price limit
ReadGET /v2/wallets/{id} and choose an available cash position for FROM_ID.
Set TO_ID to the stock’s catalog id. To sell, use the held stock’s position ID
as FROM_ID and a supported cash position as TO_ID.
Set stockPriceToleranceBps on each movement. The default is 100 basis points
(1%); the allowed range is 0–500 basis points (0–5%). Ground checks this limit
against the executable quote at trade time. It is a price bound, not a fee or a
guarantee of the final position value.
2. Preview the trade
requiredStockPriceToleranceBps, show the requested percentage
to your customer and obtain confirmation before increasing the limit and previewing
again. Do not submit an allocation after a failed preview.
Check the preview’s positions for the requested dollar movement and
assetQuotes for estimated token quantities and cash spend. These estimates do
not guarantee the execution price. See the stock preview example
for the response fields and their units.
A sell preview also includes minimumCashNativeUnits, the minimum cash output
at the preview’s price bound. HTTP 503 means a current quote within the allowed
price bounds is unavailable; retry later. HTTP 400 can indicate an unsupported
conversion route; check the error before retrying.
3. Submit the allocation
After a successful preview, save a new UUID v4 asREQUEST_ID and persist it
with the exact allocations before sending. Reuse that ID and payload after a
timeout instead of creating another trade.
4. Confirm settlement
Save the returnedrebalanceId and track it through
wallet activity or
webhooks. When it completes, read the wallet’s
positions again. Stock holdings use kind: "stock"; nativeUnits gives their
remaining quantity. Fully redeemed stocks are omitted.
Ground obtains a fresh quote before trading. Earlier redemption or bridge fees
can reduce the cash available for the purchase; unspent cash stays in the wallet.
If work stops progressing, follow recovery guidance.
Withdraw from a stock position
For withdrawals, setsources[].stockPriceToleranceBps on each selected stock source. The same 0–500 basis point range and 100 basis
point default apply.
A stock-funded withdrawal reserves a small share buffer within the route’s
permitted price tolerance to cover the requested cash payout. Your wallet needs
enough available shares for that buffer. Any excess redemption proceeds remain
in your wallet as USDC.
If the indicative sell quote differs too much from the current stock price,
retry the preview later. That quote does not create a withdrawal.
Handle an operation that remains processing
Ground can request a fresh executable quote when a quote expires before signing or submission, while preserving the original amount and price limit. A confirmed reverted transaction can be retried once if its chain evidence is consistent with quote expiry. The operation remains processing with its amount reserved for Ground to review when any of these conditions apply:- Signing or submission may already have occurred.
- A confirmed revert is not consistent with quote expiry.
- Repeated fresh quotes cannot complete the trade.