> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Wallet strategy balance and cost history

> Retrieve indexed managed-vault balance and cost-basis changes.

export const ApiResponse = ({children, errors = {}}) => {
  const [status, setStatus] = useState("200");
  const statuses = ["200", ...Object.keys(errors)];
  return <section className="api-response" aria-label="Response">
      <div className="api-response-header not-prose">
        <h2>Response</h2>
        <div className="api-response-format">
          {statuses.length > 1 ? <select aria-label="Response status" value={status} onChange={event => setStatus(event.target.value)}>
              {statuses.map(code => <option key={code} value={code}>{code}</option>)}
            </select> : <span>200</span>}
          <span className="api-response-mime">application/json</span>
        </div>
      </div>
      <div hidden={status !== "200"}>{children}</div>
      {status !== "200" && <div aria-live="polite">
          {Object.entries(errors[status]).map(([name, value]) => <ResponseField key={name} name={name} type={value === null ? "null" : Array.isArray(value) ? "array" : typeof value}>
              {name === "error" ? "Error message describing why the request failed." : "Additional error details."}
            </ResponseField>)}
        </div>}
    </section>;
};

## Path parameters

<ParamField path="userAddress" type="string" required>
  User wallet address.
</ParamField>

<RequestExample dropdown>
  ```bash cURL theme={null}
  curl https://api.exponent.finance/trades/user/strategy-vault/FPUqspsUG5ZudHfi1dPhp8DSYjU5nZCGXzqw9EdzZEGV
  ```

  ```python Python theme={null}
  import requests

  response = requests.get("https://api.exponent.finance/trades/user/strategy-vault/FPUqspsUG5ZudHfi1dPhp8DSYjU5nZCGXzqw9EdzZEGV", timeout=30)
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.exponent.finance/trades/user/strategy-vault/FPUqspsUG5ZudHfi1dPhp8DSYjU5nZCGXzqw9EdzZEGV");
  if (!response.ok) {
    throw new Error(`Request failed: ${response.status}`);
  }
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ApiResponse errors={{"500": {"error": "<message>"}}}>
  <ResponseField name="id" type="number">
    Indexed record identifier.
  </ResponseField>

  <ResponseField name="total_cost_basis" type="number">
    Accumulated cost basis of the remaining position.
  </ResponseField>

  <ResponseField name="total_lp_balance" type="number">
    Indexed raw LP balance after the trade.
  </ResponseField>

  <ResponseField name="total_realized_pnl" type="number">
    Cumulative realized profit or loss after this trade.
  </ResponseField>

  <ResponseField name="trade_ts" type="string">
    Indexed trade timestamp in ISO 8601 format.
  </ResponseField>

  <ResponseField name="trade_type" type="string">
    Strategy operation recorded by the indexer, such as `deposit`, `redeem`, or `instant_redeem`.
  </ResponseField>

  <ResponseField name="vault_address" type="string">
    Yield or strategy vault associated with this record.
  </ResponseField>
</ApiResponse>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": 3519,
      "vault_address": "puiRBGikahXM4C7weFtNRFcs7bSUx8wVn1m5v6RA91o",
      "trade_type": "redeem",
      "total_lp_balance": 0,
      "total_cost_basis": 0,
      "total_realized_pnl": 1935989.964959222,
      "trade_ts": "2026-07-31T04:02:44+00:00"
    },
    {
      "id": 3334,
      "vault_address": "puiRBGikahXM4C7weFtNRFcs7bSUx8wVn1m5v6RA91o",
      "trade_type": "deposit",
      "total_lp_balance": 1008707398,
      "total_cost_basis": 1044093873,
      "total_realized_pnl": 0,
      "trade_ts": "2026-07-24T10:49:53+00:00"
    }
  ]
  ```

  ```json 500 theme={null}
  {
    "error": "<message>"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.