Ledger
const es = new EventSource('/v3/ledger/borrows?organizationId={id}&format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('entry', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Organization ID (must be an org the caller is a member of, or a public org if caller is a vault curator).
550e8400-e29b-41d4-a716-446655440000Optional filter. Inclusive start date (YYYY-MM-DD); restricts results to occurredAt >= startDate (or snapshotDate for collateral-snapshots). Omit to leave the start unbounded.
2025-01-15Optional filter. Inclusive end date (YYYY-MM-DD). Omit to leave the end unbounded.
2025-01-31Maximum records returned. Format-dependent: format=json capped at 1000 (default 100); format=csv|event-stream capped at 1,000,000 (default 1,000,000). Values outside these caps are silently clamped server-side.
Number of records to skip from the start (JSON pagination only — ignored for csv/event-stream).
0Response format. json returns paginated JSON. csv streams a CSV file download. event-stream returns Server-Sent Events: each row is a named entry event; a final done event carries {"total": N}.
jsonPossible values: Optional filter. CAIP-2 network identifier; restricts results to a single chain. Omit to return all networks.
eip155:1Optional filter. Credit facility (SecuredLine) contract address; restricts results to a single facility. Omit to return all facilities for the organization.
0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045Pattern: ^0x[0-9a-fA-F]{40}$Credit facility borrow events.
Default Response
Default Response
Default Response
Default Response
const es = new EventSource('/v3/ledger/repays?organizationId={id}&format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('entry', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Organization ID (must be an org the caller is a member of, or a public org if caller is a vault curator).
550e8400-e29b-41d4-a716-446655440000Optional filter. Inclusive start date (YYYY-MM-DD); restricts results to occurredAt >= startDate (or snapshotDate for collateral-snapshots). Omit to leave the start unbounded.
2025-01-15Optional filter. Inclusive end date (YYYY-MM-DD). Omit to leave the end unbounded.
2025-01-31Maximum records returned. Format-dependent: format=json capped at 1000 (default 100); format=csv|event-stream capped at 1,000,000 (default 1,000,000). Values outside these caps are silently clamped server-side.
Number of records to skip from the start (JSON pagination only — ignored for csv/event-stream).
0Response format. json returns paginated JSON. csv streams a CSV file download. event-stream returns Server-Sent Events: each row is a named entry event; a final done event carries {"total": N}.
jsonPossible values: Optional filter. Restricts results to a single repayment subtype: principal (reduces outstanding principal) or interest (paid to depositors). Omit to return both.
Optional filter. CAIP-2 network identifier; restricts results to a single chain. Omit to return all networks.
eip155:1Optional filter. Credit facility (SecuredLine) contract address; restricts results to a single facility. Omit to return all facilities for the organization.
0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045Pattern: ^0x[0-9a-fA-F]{40}$Credit facility repayment events.
Default Response
Default Response
Default Response
Default Response
const es = new EventSource('/v3/ledger/transfers?organizationId={id}&format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('entry', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Organization ID (must be an org the caller is a member of, or a public org if caller is a vault curator).
550e8400-e29b-41d4-a716-446655440000Optional filter. Inclusive start date (YYYY-MM-DD); restricts results to occurredAt >= startDate (or snapshotDate for collateral-snapshots). Omit to leave the start unbounded.
2025-01-15Optional filter. Inclusive end date (YYYY-MM-DD). Omit to leave the end unbounded.
2025-01-31Maximum records returned. Format-dependent: format=json capped at 1000 (default 100); format=csv|event-stream capped at 1,000,000 (default 1,000,000). Values outside these caps are silently clamped server-side.
Number of records to skip from the start (JSON pagination only — ignored for csv/event-stream).
0Response format. json returns paginated JSON. csv streams a CSV file download. event-stream returns Server-Sent Events: each row is a named entry event; a final done event carries {"total": N}.
jsonPossible values: Optional filter. CAIP-2 network identifier; restricts results to a single chain. Omit to return all networks.
eip155:1Optional filter. Wallet address (on-chain) or bank account identifier (off-chain); restricts results to a single account. Omit to return all accounts.
Optional filter. Cash-flow stage (external → in_transit → secured → settled); restricts results to a single stage. Omit to return all stages.
Optional filter. Transfer mechanism; restricts results to a single mechanism (common values: swap, bridge, onramp, wire, ach, direct). Omit to return all mechanisms.
Optional filter. true = arriving only, false = leaving only. Omit to return both directions.
Optional. When true, excludes transfers whose tx hash matches a known borrow/repay event, to avoid double-counting with /v3/ledger/borrows and /v3/ledger/repays. Defaults to false.
falseIndividual cashflow transfer events.
Default Response
Default Response
Default Response
Default Response
const es = new EventSource('/v3/ledger/cumulative-cashflows?organizationId={id}&format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('entry', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Organization ID (must be an org the caller is a member of, or a public org if caller is a vault curator).
550e8400-e29b-41d4-a716-446655440000Optional filter. Inclusive start date (YYYY-MM-DD); restricts results to occurredAt >= startDate (or snapshotDate for collateral-snapshots). Omit to leave the start unbounded.
2025-01-15Optional filter. Inclusive end date (YYYY-MM-DD). Omit to leave the end unbounded.
2025-01-31Maximum records returned. Format-dependent: format=json capped at 1000 (default 100); format=csv|event-stream capped at 1,000,000 (default 1,000,000). Values outside these caps are silently clamped server-side.
Number of records to skip from the start (JSON pagination only — ignored for csv/event-stream).
0Response format. json returns paginated JSON. csv streams a CSV file download. event-stream returns Server-Sent Events: each row is a named entry event; a final done event carries {"total": N}.
jsonPossible values: Optional filter. Source institution that reported the aggregate (e.g. self_report, visa); restricts results to a single institution. Omit to return all institutions.
self_reportOptional filter. Cash-flow stage (external → in_transit → secured → settled); restricts results to a single stage. Omit to return all stages.
Optional filter. true = arriving only, false = leaving only. Omit to return both directions.
Aggregate daily cashflow snapshots.
Default Response
Default Response
Default Response
Default Response
const es = new EventSource('/v3/ledger/cumulative-collateral?organizationId={id}&format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('entry', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Organization ID (must be an org the caller is a member of, or a public org if caller is a vault curator).
550e8400-e29b-41d4-a716-446655440000Optional filter. Inclusive start date (YYYY-MM-DD); restricts results to occurredAt >= startDate (or snapshotDate for collateral-snapshots). Omit to leave the start unbounded.
2025-01-15Optional filter. Inclusive end date (YYYY-MM-DD). Omit to leave the end unbounded.
2025-01-31Maximum records returned. Format-dependent: format=json capped at 1000 (default 100); format=csv|event-stream capped at 1,000,000 (default 1,000,000). Values outside these caps are silently clamped server-side.
Number of records to skip from the start (JSON pagination only — ignored for csv/event-stream).
0Response format. json returns paginated JSON. csv streams a CSV file download. event-stream returns Server-Sent Events: each row is a named entry event; a final done event carries {"total": N}.
jsonPossible values: Point-in-time collateral USD snapshots (one row per org per day).
Default Response
Default Response
Default Response
Default Response
Last updated
Was this helpful?