serverTime method

Future<Either<String, int>> serverTime()

Test connectivity to the Rest API and get the current server time.

Implementation

Future<Either<String, int>> serverTime() => sendRequest(
      path: 'fapi/v1/time',
      type: RequestType.GET,
    ).then((r) => r.isRight ? Right(r.right['serverTime']) : Left(r.left));