Get a wallet portfolio
get_portfolioFetches a wallet's open market positions plus claimable rewards and refunds after a signed login message authorizes access.
Instructions
Fetch the Bopster portfolio of a wallet you control: its open positions across markets, claimable rewards and refunds. Amounts are USDC base units (6 decimals). The backend shows a portfolio only to its own wallet, so this needs a login: call get_login_message for the wallet, sign the message with personal_sign, then pass wallet, nonce and signature here. Each signature works once. The session can't move funds and isn't kept.
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": {
"wallet": "<wallet>",
"nonce": "<nonce>",
"signature": "<signature>"
},
"name": "get_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | The nonce get_login_message returned for this wallet. | |
| wallet | Yes | The wallet whose portfolio to fetch (0x...). It must be the wallet that signed the login message. | |
| signature | Yes | The personal_sign signature of that login message, from this wallet. |