My position and PnL in a token
get_my_positionHolding, cost basis and unrealized PnL for one token. Use for "am I up on X". Quantities come from the CHAIN; cost basis and PnL from Moby's swap ledger, which only sees Moby swaps. Never size a sell from a ledger quantity.
balance_token_amount/balance_usd: held ON CHAIN now ('how much do I have').cost_basis_usd/current_pnl_usd/current_pnl_pct: UNREALISED, overbasis_known_token_amountonly; when that is below the balance, the rest has no known cost: say so.invested_usd/sold_usd: LIFETIME totals;balance_usd + sold_usd - invested_usdwill NOT equalcurrent_pnl_usd, and both are right.realized_total_usd: realised PnL including partial sells (closed_trades_countcan be 0).ledger_present: false: no swap history, so every money field is unknown. A null profit field is UNKNOWN, never zero.take_profit_orders_count/stop_loss_setinclude yourcreate_orderlegs.closed_cycles: the last 5 closed cycles (fills: get_my_closed_trades(token_address)).rationale: your thesis on the open cycle.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token_address": "<token_address>"
},
"name": "get_my_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_address | Yes | Solana token mint address (base58). Get it from search_tokens or a leaderboard row. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||