pingListenKey method

Future<Either<String, bool>> pingListenKey()

Keepalive a user data stream to prevent a time out.

User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.

Implementation

Future<Either<String, bool>> pingListenKey() {
  return sendRequest(
    path: 'fapi/v1/listenKey',
    type: RequestType.PUT,
    keyRequired: true,
  ).then((r) => r.isLeft ? Left(r.left) : const Right(true));
}