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.
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. |