enableFuturesforSubaccount method
Enable Margin for Sub-account (For Master Account)
Implementation
Future<Either<String, bool>> enableFuturesforSubaccount({
required String email,
int? recvWindow,
}) {
Map<String, String> params = {
'email': email,
};
if (recvWindow != null) params['recvWindow'] = recvWindow.toString();
return sendRequest(
path: 'sapi/v1/sub-account/futures/enable',
type: RequestType.POST,
params: params,
keyRequired: true,
signatureRequired: true,
timestampRequired: true,
).then((r) => r.isLeft ? Left(r.left) : Right(r.right["isFuturesEnabled"]));
}