> ## 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 PT trade history

> Retrieve grouped PT trade executions for a wallet.

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>

## Query parameters

<ParamField query="vault" type="string">
  Filter to one vault.
</ParamField>

<ParamField query="venue" type="string">
  Filter by the exact returned venue name.
</ParamField>

<RequestExample dropdown>
  ```bash cURL theme={null}
  curl https://api.exponent.finance/trades/user/pt/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4
  ```

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

  response = requests.get("https://api.exponent.finance/trades/user/pt/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4", timeout=30)
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.exponent.finance/trades/user/pt/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4");
  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="execution_id" type="string">
    Identifier grouping the routes and signatures belonging to one execution.
  </ResponseField>

  <ResponseField name="implied_yield" type="number">
    Indexed implied-yield value recorded for the execution.
  </ResponseField>

  <ResponseField name="in_amount" type="number">
    Raw input-token quantity spent by the execution.
  </ResponseField>

  <ResponseField name="is_buy" type="boolean">
    Whether the execution buys the PT or YT product rather than selling it.
  </ResponseField>

  <ResponseField name="out_amount" type="number">
    Raw output-token quantity received from the execution.
  </ResponseField>

  <ResponseField name="price" type="number">
    Grouped PT execution price recorded by the indexer.
  </ResponseField>

  <ResponseField name="product" type="string">
    Yield token being traded: PT or YT.
  </ResponseField>

  <ResponseField name="routes" type="object[]">
    Venue-level legs that make up the grouped execution.

    <Expandable title="child attributes">
      <ResponseField name="routes[].venue" type="string">
        Execution venue recorded by the indexer.
      </ResponseField>

      <ResponseField name="routes[].inAmount" type="number">
        Raw input-token quantity routed through this venue.
      </ResponseField>

      <ResponseField name="routes[].outAmount" type="number">
        Raw output-token quantity received through this venue.
      </ResponseField>

      <ResponseField name="routes[].syExchangeRate" type="number">
        Underlying asset value per SY token at the time of the event.
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="sy_exchange_rate" type="number">
    Underlying asset value per SY token at the time of the event.
  </ResponseField>

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

  <ResponseField name="tx_signatures" type="string[]">
    Transaction signatures included in the grouped execution.
  </ResponseField>

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

  <ResponseField name="venue" type="string">
    Execution venue recorded by the indexer.
  </ResponseField>
</ApiResponse>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "execution_id": "e8def1f3-e7fe-4163-a0d9-5fb01cbaaa53",
      "vault_address": "7f1PgxY3kGsPqLAKpwcduZkcBEhpjMz7U1iJ4pcCCzDy",
      "product": "pt",
      "is_buy": false,
      "in_amount": 249999941,
      "out_amount": 242718753.9116377,
      "price": 0.9708752447731086,
      "implied_yield": 12.912811696872422,
      "sy_exchange_rate": 1.155177212,
      "venue": "orderbook market",
      "tx_signatures": [
        "2Q8aNaSojypq7j3hGbPKLZizLJ39vLsJq5gTUH75RTgjCLLYor8Q2qMVieJNzuqZK1tM5Kck5SYXdoiMoXrpLJWC"
      ],
      "routes": [
        {
          "venue": "orderbook",
          "inAmount": 249999941,
          "outAmount": 242718753.9116377,
          "syExchangeRate": 1.155177212
        }
      ],
      "trade_ts": "2026-10-13T17:00:12+00:00"
    },
    {
      "execution_id": "pt:3ZbDneq93bQijuP2EdshJZKg91r9yNtreYxk2bRX4kiz3Ene8msrquVEMMBWqxpiFELXYKUWJwcjjWgTMZe3ehs7",
      "vault_address": "Cmry6B5824MGAKrtL2u7YG9PiLZLoTBWs8hVaCJeUFaH",
      "product": "pt",
      "is_buy": true,
      "in_amount": 77.843294387046,
      "out_amount": 81,
      "price": 0.961028325766,
      "implied_yield": 11.368093409424107,
      "sy_exchange_rate": 1.1185170076953819,
      "venue": "clmm_classic",
      "tx_signatures": [
        "3ZbDneq93bQijuP2EdshJZKg91r9yNtreYxk2bRX4kiz3Ene8msrquVEMMBWqxpiFELXYKUWJwcjjWgTMZe3ehs7"
      ],
      "routes": [
        {
          "venue": "clmm",
          "inAmount": 77.843294387046,
          "outAmount": 81,
          "syExchangeRate": 1.1185170076953819
        }
      ],
      "trade_ts": "2026-10-13T15:51:31+00:00"
    }
  ]
  ```

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


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