The Stream Accounting API is a RESTful service that converts real-time Superfluid stream data into a format compatible with traditional accounting tools. It allows developers to aggregate stream value transfers into specific accounting periods (e.g., hourly, daily, or monthly) across all Superfluid-supported networks and tokens via Superfluid Subgraphs.
Key capabilities include:
- Flow Rate Changes: The API automatically segments data into separate periods when a stream's flow rate is updated.
- Directionality: It tracks both incoming and outgoing streams, representing incoming value as positive and outbound value as negative.
- Token Pricing: If a token is tracked by Coingecko, the API provides price information. Users can choose between instantaneous prices for each period or average prices over a timeframe.