@riocrypto/common-server 1.0.2055 → 1.0.2057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildArbitrageSettings = void 0;
|
|
4
4
|
const buildArbitrageSettings = (mongoose) => {
|
|
5
5
|
if (mongoose.models.ArbitrageSettings) {
|
|
6
|
-
return mongoose.
|
|
6
|
+
return mongoose.models
|
|
7
|
+
.ArbitrageSettings;
|
|
7
8
|
}
|
|
8
9
|
const ArbitrageSettingsSchema = new mongoose.Schema({
|
|
9
10
|
buyMXNBinanceSellMXNEmarkets: {
|
|
@@ -36,12 +36,6 @@ const buildArbitrageTrade = (mongoose) => {
|
|
|
36
36
|
},
|
|
37
37
|
price: {
|
|
38
38
|
type: Number,
|
|
39
|
-
validate: {
|
|
40
|
-
validator: function (value) {
|
|
41
|
-
return value === undefined || !isNaN(value);
|
|
42
|
-
},
|
|
43
|
-
message: (props) => `${props.value} is not a valid number for price!`,
|
|
44
|
-
},
|
|
45
39
|
},
|
|
46
40
|
status: {
|
|
47
41
|
type: String,
|