Yield and fee accounting
Torq does not expose a usage-billing product. The equivalent developer problem in tokenized credit is continuous, exact reconciliation of capital, shares, accrued obligations, realized fees, and position lifecycle. These resources are available to approved controlled developer access applications.
Canonical sources
Accounting rules for integrators
- Treat all asset and share amounts as base-10 integer strings in the asset's smallest unit.
- Do not calculate product-visible balances from event totals alone.
- Do not treat an emitted fee event as proof that unrelated fee buckets and positions are unchanged.
- Preserve the resource freshness object and request ID with every reconciliation decision.
- After a webhook, reread the affected canonical resources before updating a customer ledger.
- Model queued redemption, restricted mobility, recovery claims, and fee claims as lifecycle state, not as immediate cash.
Reconciliation loop
Signed event -> durable inbox -> deduplicate -> canonical API read -> local ledger transactionIf event state and canonical state disagree, stop customer-visible settlement and retain the Torq request ID, event ID, delivery ID, chain ID, and transaction hash for support. Never log credentials, wallet signatures, or webhook secrets.
Use Resource APIs, Events, and Compatibility to bind the integration to current schemas.