generateCandleVector function
Implementation
Future<List<num>> generateCandleVector({
required String assetType,
required String ticker,
required int timestamp,
required double open,
required double close,
required double low,
required double high,
}) async {
final encodedOpen = await encodeScale(open, assetType);
final encodedClose = await encodeScale(close, assetType);
final encodedLow = await encodeScale(low, assetType);
final encodedHigh = await encodeScale(high, assetType);
final blindScale = await generateBlindScale(assetType);
final blindOHLC = await applyBlindScale(
[encodedOpen, encodedClose, encodedLow, encodedHigh], blindScale);
final fbblNumber = generateSecureNumericHash(ticker);
return [timestamp, ...blindOHLC, fbblNumber];
}