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

> Retrieve grouped YT 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/yt/HmzCnQBzSFW4THri7t9f9tcVBHXT7fuw4iczfPKMwEL8
  ```

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

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

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.exponent.finance/trades/user/yt/HmzCnQBzSFW4THri7t9f9tcVBHXT7fuw4iczfPKMwEL8");
  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 YT 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": "yt:5AVm5Ch2KA52VZoqWsbiV6hHw8Z2VniDHbofCw4EnWUJ8s7LRSTZcjwTYQ4cK5ASBc4j8xovSz8Nid9GaKguMpRv",
      "vault_address": "78MLjMXyKyjwXtHXCuZHnBUH5wMh89KwBpvoFvcBzxN1",
      "product": "yt",
      "is_buy": false,
      "in_amount": 767872329071,
      "out_amount": 2511036473,
      "price": 0.0032701223601037215,
      "implied_yield": 6.54692577629816,
      "sy_exchange_rate": 1.08428018,
      "venue": "amm",
      "tx_signatures": [
        "5AVm5Ch2KA52VZoqWsbiV6hHw8Z2VniDHbofCw4EnWUJ8s7LRSTZcjwTYQ4cK5ASBc4j8xovSz8Nid9GaKguMpRv"
      ],
      "routes": [
        {
          "venue": "amm",
          "inAmount": 767872329071,
          "outAmount": 2511036473,
          "syExchangeRate": 1.08428018
        }
      ],
      "trade_ts": "2026-06-01T15:30:25+00:00"
    },
    {
      "execution_id": "yt:2ARLN85XzMyrgDWHzR6CFXpyEz1oirU812psR4SaVnvuhQWk9V9vu4btCD2sghfocKmNXFt1UwuaZ57yCNPrUMBd",
      "vault_address": "78MLjMXyKyjwXtHXCuZHnBUH5wMh89KwBpvoFvcBzxN1",
      "product": "yt",
      "is_buy": true,
      "in_amount": 2419589263,
      "out_amount": 203121363937,
      "price": 0.011912037296827419,
      "implied_yield": 10.017882743177159,
      "sy_exchange_rate": 1.080368963,
      "venue": "amm",
      "tx_signatures": [
        "2ARLN85XzMyrgDWHzR6CFXpyEz1oirU812psR4SaVnvuhQWk9V9vu4btCD2sghfocKmNXFt1UwuaZ57yCNPrUMBd"
      ],
      "routes": [
        {
          "venue": "amm",
          "inAmount": 2419589263,
          "outAmount": 203121363937,
          "syExchangeRate": 1.080368963
        }
      ],
      "trade_ts": "2026-05-05T16:26:01+00:00"
    }
  ]
  ```

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


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