Skip to main content
GET
Returns a PDF statement of the market assembled from indexed on-chain events. It covers configuration and parameter changes, roles and authorizations, collateral locks, loans with the liquidity provider ledger, oracle price history, liquidations and auctions. Use it for reporting and audit rather than for programmatic reads.
This endpoint does not return the JSON envelope. On success it responds with Content-Type: application/pdf and a Content-Disposition: attachment header carrying the generated filename. Errors are returned as the usual JSON envelope, so branch on the response content type rather than parsing unconditionally.
The Market section names the collateral token’s ISIN with its source. When the token’s instrument record carries an ISIN, it is printed as ISIN, and an ISIN source line notes a different value reported by the token contract. When only the token contract reports one, it is printed as ISIN (token contract), with an ISIN source line saying that no instrument record confirms it. A statement generated from an index that trails the chain would present itself as the market’s record while omitting everything since. The endpoint therefore refuses with INDEX_STALE when the index is more than 300 seconds behind, unless you pass allowStale. Get Index Status reports the lag.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.

Query Parameters

string
Comma-separated sections to include. Any of config, roles, encumbrances, loans, liquidations, auctions. Omit for all six. Between 1 and 200 characters. Unknown names are rejected.
string
Restrict the statement to a single loan. A positive integer of at most 18 digits.
string
Start of the reporting window as YYYY-MM-DD, from the start of that day in UTC. Not earlier than 2015-01-01.
string
End of the reporting window as YYYY-MM-DD, inclusive to the end of that day in UTC. Must not be earlier than from.
string
true or 1 generates the statement even when the index is more than 300 seconds behind the chain. The document then carries an explicit lag notice in its header and coverage. Any other value leaves the refusal in place.

Response

A PDF document. The server sets the filename on the Content-Disposition header from the collateral token symbol, the loan when loanId was given, and the generation date, for example Lending-Lifecycle-Statement_NYF1_loan-5_2026-09-25.pdf.

Error Codes