historicalBLVTNAVKlineCandlestick method
The BLVT NAV system is based on Binance Futures, so the endpoint is based on fapi
Implementation
Future<Either<String, List<Kline>>> historicalBLVTNAVKlineCandlestick({
required String symbol,
required String interval,
String? startTime,
String? endTime,
String? limit,
}) {
Map<String, String> params = {
'symbol': symbol,
'interval': interval,
};
if (startTime != null) params['startTime'] = startTime;
if (endTime != null) params['endTime'] = endTime;
if (limit != null) params['limit'] = limit;
return sendRequest(
path: 'fapi/v1/lvtKlines',
type: RequestType.GET,
params: params,
keyRequired: true,
).then((r) => r.isLeft
? Left(r.left)
: Right(List<Kline>.from(r.right.map((e) => Kline.fromList(e)))));
}