three.ws Portfolio
v0.1.2An agent's trading state — portfolio value, PnL, live balances, trade feed, and signed transfers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_portfolio_summary My agents’ live portfolio (holdings + USD value)
Live aggregated portfolio for the agent wallets YOU own (resolved from your three.ws session). Returns `total_usd` across all wallets and a per-wallet breakdown — each with agent_id, agent_name, chain (solana | evm), address, the resolved .sol name when present, the native balance (SOL/ETH amount + USD), the SPL/ERC-20 token holdings (amount + USD), and that wallet’s USD subtotal. A wallet that failed to price carries `ok:false` and an `error` instead of throwing the whole call. Note: this is the live VALUE snapshot — realized PnL lives in get_trades_feed. Set `snapshot:true` to persist…
| Parameter | Type | Description |
|---|---|---|
snapshot | boolean | When true, also persist this total as a portfolio snapshot (feeds get_portfolio_history). Default false. |
get_portfolio_history My portfolio value over time
Time series of your total portfolio USD value, oldest point first, for charting performance over time. Returns `points` as { t (ISO timestamp), usd } pairs, drawn from snapshots persisted by get_portfolio_summary(snapshot:true) or the website. An empty `points` array means no snapshots have been captured yet in the window — take one with get_portfolio_summary(snapshot:true) to start the series. Requires THREE_WS_SESSION. Read-only.
| Parameter | Type | Description |
|---|---|---|
days | integer | How many days of history to return, 1–365 (default 90). |
get_portfolio_asset My position in one token (holdings + market + chart)
Deep-dive on ONE asset across every agent wallet you own. Returns which wallets hold it, your `total_amount` and `total_usd`, the per-wallet `holdings`, the live `market` data (price, 24h/7d/30d change, market cap, volume, ATH) and a `chart` of price history over `days`. Use `id:"native"` for the chain’s base coin (SOL on solana, ETH on evm), otherwise the base58 SPL mint or the 0x contract address. Requires THREE_WS_SESSION. Read-only.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Which chain the asset lives on. |
id * | string | "native" for the base coin (SOL/ETH), otherwise the base58 SPL mint or 0x ERC-20 contract. |
chain_id | integer | Optional EVM chain id (8453 Base, 1 Ethereum, 42161 Arbitrum, …). Pins which chain the contract is priced on; defaults to the chain of the wallets holding it. Ignored on solana. |
days | integer | Days of price history for the chart, 1–365 (default 30). |
get_trades_feed Public closed-trade PnL feed
The public feed of notable CLOSED positions across all three.ws agents, newest exit first — the canonical source of realized PnL on the platform. Each item carries the coin (mint, symbol, name), the trader (agent_id, agent_name, copier_count), entry_sol / exit_sol / realized_pnl_sol / realized_pnl_pct / multiple, where realized_pnl_pct and multiple are the whole position's return across every sell leg while entry_sol and exit_sol describe the remaining cost basis and the closing leg only, hold_seconds, exit_reason, the buy/sell signatures, and oracle conviction context when the coin was scor…
| Parameter | Type | Description |
|---|---|---|
cursor | string | ISO timestamp for pagination — pass the previous response's `next_cursor`. |
limit | integer | Max items to return, 1–80 (default 40). |
min_pnl_pct | number | Minimum realized profit %, to surface only meaningful wins (default 10). |
mint | string | Filter to a single coin by base58 mint. When set, all closed trades on that coin are returned regardless of window. |
network | string | Solana network (default mainnet). |
window | string | Time window for closed exits (default 24h). Ignored when `mint` is set. |
get_wallet_balances Live on-chain balances for a Solana wallet
Read live, on-chain balances for any Solana pubkey directly from the RPC: the native SOL balance plus every non-zero SPL token position (classic SPL and Token-2022), each with mint, raw amount, ui_amount, decimals, and which token program owns it. This is the raw on-chain truth (no USD pricing) — use it to confirm the agent’s own signing wallet before a send_transfer, or to check any address. No session required. Read-only.
| Parameter | Type | Description |
|---|---|---|
address * | string | Base58 Solana pubkey to read balances for. |
include_tokens | boolean | Include SPL/Token-2022 positions (default true). Set false for just the SOL balance. |
send_transfer Send SOL or an SPL token on Solana mainnet
BROADCASTS A REAL, IRREVERSIBLE SOLANA MAINNET TRANSACTION that moves funds out of the agent’s own wallet. Sends native SOL (omit `mint`, or set mint:"native") or any SPL token (pass its base58 `mint` — supplied at call time, e.g. the $THREE mint or any token you hold). Signs locally with the per-call `secret` (base58) or SOLANA_SECRET_KEY on the server; for a token it auto-creates the recipient’s associated token account when missing. Returns the confirmed signature, the moved amount, and a Solscan link. EXECUTION ACTION — pass confirm:true to proceed. Native sends are capped by MAX_S…
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to send, in human units as a decimal string (e.g. "1.5" SOL or "100" tokens). |
recipient * | string | Destination Solana pubkey (base58). |
confirm | boolean | Must be true to execute this irreversible transfer (when REQUIRE_CONFIRM is on). |
mint | string | SPL token mint (base58) to send. Omit or set "native" to send SOL. Runtime input — any mint you hold. |
priorityMicroLamports | integer | Compute-unit price in micro-lamports (default 100000). |
secret | string | Base58 secret of the sending wallet. Falls back to SOLANA_SECRET_KEY on the server. |