Sync
Synchronization

The Synchronization block is designed to accumulate and synchronize data from various sources (for example, candles from different instruments, different time frames, combinations of candles and transactions) and subsequently issue them when a certain amount is accumulated. This block is useful for creating custom indexes or arbitrage.
Input Sockets
- Incoming: When a new data source is connected, a corresponding outgoing socket and a new incoming socket are automatically created. The number of incoming values is unlimited.
Parameters
- Interval determines the time window each value belongs to. A complete group requires one value from each connected input for the same window.
- Clear items clears the stored input values after a complete group is emitted. When this option is off, the latest values can be reused within the same window.
Usage Examples
- Creating a custom index for multiple stocks, where you need to consider different time series from various data sources.
- Arbitrage between different markets using synchronized time data to identify temporal price differences.
In this example, the block matches five-minute candles for ETHUSDT@BNBFT and BTCUSDT@BNBFT. The converters then extract the closing prices, and a / b sends the ETH-to-BTC ratio to the chart. An interval with a missing candle produces no point.
