List all open offers in the market for this IOU (both sides), tagged buy/sell relative to it.
Note
Unlike account.listOffers — which lists a single account's own resting offers — iou.listOffers reads the whole order book for the IOU across all accounts.
iou.listOffers(
params: IOUListOffersParams,
): Promise<ListOffersResult>| Parameter | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | The IOU currency code to anchor the book on. |
issuer | string | Yes | The IOU issuer's r-address. |
Resolves to a ListOffersResult:
| Field | Type | Description |
|---|---|---|
data | readonly OfferSummary[] | The shaped open offers, tagged buy/sell relative to the IOU. See account.listOffers for OfferSummary. |
Read-only — no signer is required and nothing is submitted. Queries both sides of the order book with book_offers.
const { data } = await client.iou.listOffers({
ticker: 'USD',
issuer: 'rIssuer...',
})