# Get Trades

URL: https://docs.blux.cc/javascript/core/getTrades

Fetch a paginated list of Stellar trades using the Blux core SDK.

The `getTrades` function returns a paginated list of Stellar trades.
`forAccount` accepts `G…`, `M…`, SEP-2 federation, or `.xlm`; see
[address resolution](/javascript/core/address-resolution).

The return value contains two properties:
- `response` — the records you can use directly
- `builder` — exposes `next()` and `prev()` to paginate through results

## Type
```tsx
export type CallBuilderOptions = {
  cursor?: string;
  limit?: number;
  network?: string;
  order?: "asc" | "desc";
};

type GetTradesOptions = CallBuilderOptions & {
  forAssetPair?: [base: AssetArg, counter: AssetArg];
  forOffer?: string;
  forType?: Horizon.ServerApi.TradeType;
  forAccount?: string; // G…/M…, SEP-2 address, or .xlm name
  forLiquidityPool?: string;
};

type GetTradesResult = {
  builder: TradesCallBuilder;
  response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TradeRecord>;
};
```

## Usage
```typescript

const result = await core.getTrades({ forAccount: "alice.xlm" });
```