openInterest method
Get present open interest of a specific symbol.
Implementation
Future<Either<String, OpenInterest>> openInterest({
required String symbol,
}) {
Map<String, String> params = {
'symbol': symbol,
};
return sendRequest(
path: 'fapi/v1/openInterest',
type: RequestType.GET,
params: params,
).then(
(r) => r.isLeft ? Left(r.left) : Right(OpenInterest.fromMap(r.right)));
}