compositeIndexSymbolInformation method
Get assets info for an index (or all indexes). Only for composite index symbols.
Implementation
Future<Either<String, List<IndexInfo>>> compositeIndexSymbolInformation({
String? symbol,
}) {
Map<String, String> params = {};
if (symbol != null) params['symbol'] = symbol;
return sendRequest(
path: 'fapi/v1/indexInfo',
type: RequestType.GET,
params: params,
keyRequired: true,
).then((r) => r.isLeft
? Left(r.left)
: Right(
List<IndexInfo>.from(r.right.map((e) => IndexInfo.fromMap(e)))));
}