anchor.diff:          description = "Ripple data api port";
           default = 5993;
           type = types.int;
  +      };
  +
  +      importMode = mkOption {
  +        description = "Ripple data api import mode.";
  +        default = "liveOnly";
  +        type = types.enum ["live" "liveOnly"];
  +      };
  +
  +      minLedger = mkOption {
  +        description = "Ripple data api minimal ledger to fetch.";
  +        default = null;
  +        type = types.nullOr types.int;
  +      };
  +
  +      maxLedger = mkOption {
  +        description = "Ripple data api maximal ledger to fetch.";
  +        default = null;
  +        type = types.nullOr types.int;
         };
   
         redis = {
  
positive.code:         LOG_FILE = "/dev/null";
        };
  
        serviceConfig = {
          ExecStart = "${pkgs.ripple-data-api}/bin/importer live debug2";
          User = "ripple-data-api";
        };
  
  
negative.code: 
        serviceConfig = {
          ExecStart = "${pkgs.ripple-data-api}/bin/api";
          Restart = "always";
          User = "ripple-data-api";
        };
      };
  