trade_equity
Spot-trade a tokenized equity (xStocks / Ondo) via Jupiter, non-custodial.
side: buy | sell. amount is in base units of the INPUT token (USDC 6dp for a
buy, the equity token for a sell). These are tokenized SECURITIES: the call
is geo-gated (Reg S = no US persons; declare jurisdiction once via the
jurisdiction arg) and OFAC-screened, and requires per-execution confirmation
-- WITHOUT confirm=true it returns a quote + disclaimer and does NOT execute
(no autonomous equity execution). With confirm=true it returns an UNSIGNED
base64 tx to sign + broadcast; pass signed_transaction to broadcast a
caller-signed tx. Value-bearing: past the daily free tier an x402
payment_header is required. ip = caller origin IP for the Reg S geo gate
(US IP -> refused even with an attestation; an agent's Railway Singapore
egress resolves to SG and passes). venue_hint is ADVISORY, never required -- equity routes via the issuer
registry (one surface today); an unknown hint raises.
idempotency_key (optional): see jupiter_swap -- same
replay-on-retry semantics, same key reused across build + broadcast.
verify (extending default True): when
broadcasting (signed_transaction supplied), await on-chain confirmation
and re-read the equity mint balance -- the response gains a
verification block ({confirmed, slot, post_state,
expected_vs_actual}). Gate follow-on decisions on
verification.confirmed, never on tx_signature alone. Set False to
skip for latency-sensitive callers. Verify any prior signature later
with the standalone verify_transaction tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| side | Yes | ||
| amount | Yes | ||
| symbol | Yes | ||
| verify | No | ||
| confirm | No | ||
| caller_id | No | ||
| venue_hint | No | ||
| jurisdiction | No | ||
| pay_in_crank | No | ||
| slippage_bps | No | ||
| payment_header | No | ||
| wallet_address | Yes | ||
| idempotency_key | No | ||
| allow_unverified | No | ||
| signed_transaction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||