@gbozee/ultimate 0.0.2-202 → 0.0.2-203
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.
- package/dist/frontend-index.d.ts +3 -1
- package/dist/frontend-index.js +8 -3
- package/dist/index.cjs +8 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -3
- package/dist/mcp-server.cjs +8 -3
- package/dist/mcp-server.js +8 -3
- package/package.json +1 -1
package/dist/frontend-index.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ export type SignalConfigType = {
|
|
|
164
164
|
long: GetEntriesParams["distribution"];
|
|
165
165
|
short: GetEntriesParams["distribution"];
|
|
166
166
|
};
|
|
167
|
+
max_quantity?: number;
|
|
167
168
|
};
|
|
168
169
|
declare class Signal {
|
|
169
170
|
focus: number;
|
|
@@ -196,7 +197,8 @@ declare class Signal {
|
|
|
196
197
|
long: GetEntriesParams["distribution"];
|
|
197
198
|
short: GetEntriesParams["distribution"];
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
max_quantity: number;
|
|
201
|
+
constructor({ focus, symbol, budget, percent_change, price_places, decimal_places, zone_risk, fee, support, risk_reward, resistance, risk_per_trade, increase_size, additional_increase, minimum_pnl, take_profit, increase_position, minimum_size, first_order_size, gap, max_size, use_kelly, kelly_prediction_model, kelly_confidence_factor, kelly_minimum_risk, kelly_func, full_distribution, max_quantity, }: SignalConfigType);
|
|
200
202
|
build_entry({ current_price, stop_loss, pnl, stop_percent, kind, risk, no_of_trades, take_profit, distribution, }: {
|
|
201
203
|
take_profit?: number;
|
|
202
204
|
no_of_trades?: number;
|
package/dist/frontend-index.js
CHANGED
|
@@ -402,6 +402,7 @@ class Signal {
|
|
|
402
402
|
long: "arithmetic",
|
|
403
403
|
short: "geometric"
|
|
404
404
|
};
|
|
405
|
+
max_quantity = 0.03;
|
|
405
406
|
constructor({
|
|
406
407
|
focus,
|
|
407
408
|
symbol,
|
|
@@ -429,7 +430,8 @@ class Signal {
|
|
|
429
430
|
kelly_confidence_factor = 0.6,
|
|
430
431
|
kelly_minimum_risk = 0.2,
|
|
431
432
|
kelly_func = "theoretical",
|
|
432
|
-
full_distribution
|
|
433
|
+
full_distribution,
|
|
434
|
+
max_quantity = 0.03
|
|
433
435
|
}) {
|
|
434
436
|
if (full_distribution) {
|
|
435
437
|
this.distribution = full_distribution;
|
|
@@ -460,6 +462,7 @@ class Signal {
|
|
|
460
462
|
this.kelly_confidence_factor = kelly_confidence_factor;
|
|
461
463
|
this.kelly_minimum_risk = kelly_minimum_risk;
|
|
462
464
|
this.kelly_func = kelly_func;
|
|
465
|
+
this.max_quantity = max_quantity;
|
|
463
466
|
}
|
|
464
467
|
build_entry({
|
|
465
468
|
current_price,
|
|
@@ -953,7 +956,8 @@ class Signal {
|
|
|
953
956
|
}) || []).filter((y) => y !== undefined).filter((y) => {
|
|
954
957
|
const min_options = [0.001, 0.002, 0.003];
|
|
955
958
|
if (min_options.includes(this.minimum_size) && this.symbol.toUpperCase().startsWith("BTC")) {
|
|
956
|
-
|
|
959
|
+
console.log("max_quantity", this.max_quantity);
|
|
960
|
+
return y.quantity <= this.max_quantity;
|
|
957
961
|
}
|
|
958
962
|
return true;
|
|
959
963
|
});
|
|
@@ -1633,7 +1637,8 @@ function buildConfig(app_config, {
|
|
|
1633
1637
|
kelly_minimum_risk: kelly_minimum_risk || app_config.kelly?.kelly_minimum_risk,
|
|
1634
1638
|
kelly_prediction_model: kelly_prediction_model || app_config.kelly?.kelly_prediction_model,
|
|
1635
1639
|
kelly_func: kelly_func || app_config.kelly?.kelly_func,
|
|
1636
|
-
symbol: app_config.symbol
|
|
1640
|
+
symbol: app_config.symbol,
|
|
1641
|
+
max_quantity: app_config.max_quantity
|
|
1637
1642
|
};
|
|
1638
1643
|
const instance = new Signal(config);
|
|
1639
1644
|
if (raw_instance) {
|
package/dist/index.cjs
CHANGED
|
@@ -55899,6 +55899,7 @@ class Signal {
|
|
|
55899
55899
|
long: "arithmetic",
|
|
55900
55900
|
short: "geometric"
|
|
55901
55901
|
};
|
|
55902
|
+
max_quantity = 0.03;
|
|
55902
55903
|
constructor({
|
|
55903
55904
|
focus,
|
|
55904
55905
|
symbol,
|
|
@@ -55926,7 +55927,8 @@ class Signal {
|
|
|
55926
55927
|
kelly_confidence_factor = 0.6,
|
|
55927
55928
|
kelly_minimum_risk = 0.2,
|
|
55928
55929
|
kelly_func = "theoretical",
|
|
55929
|
-
full_distribution
|
|
55930
|
+
full_distribution,
|
|
55931
|
+
max_quantity = 0.03
|
|
55930
55932
|
}) {
|
|
55931
55933
|
if (full_distribution) {
|
|
55932
55934
|
this.distribution = full_distribution;
|
|
@@ -55957,6 +55959,7 @@ class Signal {
|
|
|
55957
55959
|
this.kelly_confidence_factor = kelly_confidence_factor;
|
|
55958
55960
|
this.kelly_minimum_risk = kelly_minimum_risk;
|
|
55959
55961
|
this.kelly_func = kelly_func;
|
|
55962
|
+
this.max_quantity = max_quantity;
|
|
55960
55963
|
}
|
|
55961
55964
|
build_entry({
|
|
55962
55965
|
current_price,
|
|
@@ -56450,7 +56453,8 @@ class Signal {
|
|
|
56450
56453
|
}) || []).filter((y) => y !== undefined).filter((y) => {
|
|
56451
56454
|
const min_options = [0.001, 0.002, 0.003];
|
|
56452
56455
|
if (min_options.includes(this.minimum_size) && this.symbol.toUpperCase().startsWith("BTC")) {
|
|
56453
|
-
|
|
56456
|
+
console.log("max_quantity", this.max_quantity);
|
|
56457
|
+
return y.quantity <= this.max_quantity;
|
|
56454
56458
|
}
|
|
56455
56459
|
return true;
|
|
56456
56460
|
});
|
|
@@ -56919,7 +56923,8 @@ function buildConfig(app_config, {
|
|
|
56919
56923
|
kelly_minimum_risk: kelly_minimum_risk || app_config.kelly?.kelly_minimum_risk,
|
|
56920
56924
|
kelly_prediction_model: kelly_prediction_model || app_config.kelly?.kelly_prediction_model,
|
|
56921
56925
|
kelly_func: kelly_func || app_config.kelly?.kelly_func,
|
|
56922
|
-
symbol: app_config.symbol
|
|
56926
|
+
symbol: app_config.symbol,
|
|
56927
|
+
max_quantity: app_config.max_quantity
|
|
56923
56928
|
};
|
|
56924
56929
|
const instance = new Signal(config2);
|
|
56925
56930
|
if (raw_instance) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1176,6 +1176,7 @@ export type SignalConfigType = {
|
|
|
1176
1176
|
long: GetEntriesParams["distribution"];
|
|
1177
1177
|
short: GetEntriesParams["distribution"];
|
|
1178
1178
|
};
|
|
1179
|
+
max_quantity?: number;
|
|
1179
1180
|
};
|
|
1180
1181
|
declare class Signal {
|
|
1181
1182
|
focus: number;
|
|
@@ -1208,7 +1209,8 @@ declare class Signal {
|
|
|
1208
1209
|
long: GetEntriesParams["distribution"];
|
|
1209
1210
|
short: GetEntriesParams["distribution"];
|
|
1210
1211
|
};
|
|
1211
|
-
|
|
1212
|
+
max_quantity: number;
|
|
1213
|
+
constructor({ focus, symbol, budget, percent_change, price_places, decimal_places, zone_risk, fee, support, risk_reward, resistance, risk_per_trade, increase_size, additional_increase, minimum_pnl, take_profit, increase_position, minimum_size, first_order_size, gap, max_size, use_kelly, kelly_prediction_model, kelly_confidence_factor, kelly_minimum_risk, kelly_func, full_distribution, max_quantity, }: SignalConfigType);
|
|
1212
1214
|
build_entry({ current_price, stop_loss, pnl, stop_percent, kind, risk, no_of_trades, take_profit, distribution, }: {
|
|
1213
1215
|
take_profit?: number;
|
|
1214
1216
|
no_of_trades?: number;
|
package/dist/index.js
CHANGED
|
@@ -55836,6 +55836,7 @@ class Signal {
|
|
|
55836
55836
|
long: "arithmetic",
|
|
55837
55837
|
short: "geometric"
|
|
55838
55838
|
};
|
|
55839
|
+
max_quantity = 0.03;
|
|
55839
55840
|
constructor({
|
|
55840
55841
|
focus,
|
|
55841
55842
|
symbol,
|
|
@@ -55863,7 +55864,8 @@ class Signal {
|
|
|
55863
55864
|
kelly_confidence_factor = 0.6,
|
|
55864
55865
|
kelly_minimum_risk = 0.2,
|
|
55865
55866
|
kelly_func = "theoretical",
|
|
55866
|
-
full_distribution
|
|
55867
|
+
full_distribution,
|
|
55868
|
+
max_quantity = 0.03
|
|
55867
55869
|
}) {
|
|
55868
55870
|
if (full_distribution) {
|
|
55869
55871
|
this.distribution = full_distribution;
|
|
@@ -55894,6 +55896,7 @@ class Signal {
|
|
|
55894
55896
|
this.kelly_confidence_factor = kelly_confidence_factor;
|
|
55895
55897
|
this.kelly_minimum_risk = kelly_minimum_risk;
|
|
55896
55898
|
this.kelly_func = kelly_func;
|
|
55899
|
+
this.max_quantity = max_quantity;
|
|
55897
55900
|
}
|
|
55898
55901
|
build_entry({
|
|
55899
55902
|
current_price,
|
|
@@ -56387,7 +56390,8 @@ class Signal {
|
|
|
56387
56390
|
}) || []).filter((y) => y !== undefined).filter((y) => {
|
|
56388
56391
|
const min_options = [0.001, 0.002, 0.003];
|
|
56389
56392
|
if (min_options.includes(this.minimum_size) && this.symbol.toUpperCase().startsWith("BTC")) {
|
|
56390
|
-
|
|
56393
|
+
console.log("max_quantity", this.max_quantity);
|
|
56394
|
+
return y.quantity <= this.max_quantity;
|
|
56391
56395
|
}
|
|
56392
56396
|
return true;
|
|
56393
56397
|
});
|
|
@@ -56856,7 +56860,8 @@ function buildConfig(app_config, {
|
|
|
56856
56860
|
kelly_minimum_risk: kelly_minimum_risk || app_config.kelly?.kelly_minimum_risk,
|
|
56857
56861
|
kelly_prediction_model: kelly_prediction_model || app_config.kelly?.kelly_prediction_model,
|
|
56858
56862
|
kelly_func: kelly_func || app_config.kelly?.kelly_func,
|
|
56859
|
-
symbol: app_config.symbol
|
|
56863
|
+
symbol: app_config.symbol,
|
|
56864
|
+
max_quantity: app_config.max_quantity
|
|
56860
56865
|
};
|
|
56861
56866
|
const instance = new Signal(config2);
|
|
56862
56867
|
if (raw_instance) {
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -62585,6 +62585,7 @@ class Signal {
|
|
|
62585
62585
|
long: "arithmetic",
|
|
62586
62586
|
short: "geometric"
|
|
62587
62587
|
};
|
|
62588
|
+
max_quantity = 0.03;
|
|
62588
62589
|
constructor({
|
|
62589
62590
|
focus,
|
|
62590
62591
|
symbol,
|
|
@@ -62612,7 +62613,8 @@ class Signal {
|
|
|
62612
62613
|
kelly_confidence_factor = 0.6,
|
|
62613
62614
|
kelly_minimum_risk = 0.2,
|
|
62614
62615
|
kelly_func = "theoretical",
|
|
62615
|
-
full_distribution
|
|
62616
|
+
full_distribution,
|
|
62617
|
+
max_quantity = 0.03
|
|
62616
62618
|
}) {
|
|
62617
62619
|
if (full_distribution) {
|
|
62618
62620
|
this.distribution = full_distribution;
|
|
@@ -62643,6 +62645,7 @@ class Signal {
|
|
|
62643
62645
|
this.kelly_confidence_factor = kelly_confidence_factor;
|
|
62644
62646
|
this.kelly_minimum_risk = kelly_minimum_risk;
|
|
62645
62647
|
this.kelly_func = kelly_func;
|
|
62648
|
+
this.max_quantity = max_quantity;
|
|
62646
62649
|
}
|
|
62647
62650
|
build_entry({
|
|
62648
62651
|
current_price,
|
|
@@ -63136,7 +63139,8 @@ class Signal {
|
|
|
63136
63139
|
}) || []).filter((y) => y !== undefined).filter((y) => {
|
|
63137
63140
|
const min_options = [0.001, 0.002, 0.003];
|
|
63138
63141
|
if (min_options.includes(this.minimum_size) && this.symbol.toUpperCase().startsWith("BTC")) {
|
|
63139
|
-
|
|
63142
|
+
console.log("max_quantity", this.max_quantity);
|
|
63143
|
+
return y.quantity <= this.max_quantity;
|
|
63140
63144
|
}
|
|
63141
63145
|
return true;
|
|
63142
63146
|
});
|
|
@@ -63605,7 +63609,8 @@ function buildConfig(app_config, {
|
|
|
63605
63609
|
kelly_minimum_risk: kelly_minimum_risk || app_config.kelly?.kelly_minimum_risk,
|
|
63606
63610
|
kelly_prediction_model: kelly_prediction_model || app_config.kelly?.kelly_prediction_model,
|
|
63607
63611
|
kelly_func: kelly_func || app_config.kelly?.kelly_func,
|
|
63608
|
-
symbol: app_config.symbol
|
|
63612
|
+
symbol: app_config.symbol,
|
|
63613
|
+
max_quantity: app_config.max_quantity
|
|
63609
63614
|
};
|
|
63610
63615
|
const instance = new Signal(config2);
|
|
63611
63616
|
if (raw_instance) {
|
package/dist/mcp-server.js
CHANGED
|
@@ -62558,6 +62558,7 @@ class Signal {
|
|
|
62558
62558
|
long: "arithmetic",
|
|
62559
62559
|
short: "geometric"
|
|
62560
62560
|
};
|
|
62561
|
+
max_quantity = 0.03;
|
|
62561
62562
|
constructor({
|
|
62562
62563
|
focus,
|
|
62563
62564
|
symbol,
|
|
@@ -62585,7 +62586,8 @@ class Signal {
|
|
|
62585
62586
|
kelly_confidence_factor = 0.6,
|
|
62586
62587
|
kelly_minimum_risk = 0.2,
|
|
62587
62588
|
kelly_func = "theoretical",
|
|
62588
|
-
full_distribution
|
|
62589
|
+
full_distribution,
|
|
62590
|
+
max_quantity = 0.03
|
|
62589
62591
|
}) {
|
|
62590
62592
|
if (full_distribution) {
|
|
62591
62593
|
this.distribution = full_distribution;
|
|
@@ -62616,6 +62618,7 @@ class Signal {
|
|
|
62616
62618
|
this.kelly_confidence_factor = kelly_confidence_factor;
|
|
62617
62619
|
this.kelly_minimum_risk = kelly_minimum_risk;
|
|
62618
62620
|
this.kelly_func = kelly_func;
|
|
62621
|
+
this.max_quantity = max_quantity;
|
|
62619
62622
|
}
|
|
62620
62623
|
build_entry({
|
|
62621
62624
|
current_price,
|
|
@@ -63109,7 +63112,8 @@ class Signal {
|
|
|
63109
63112
|
}) || []).filter((y) => y !== undefined).filter((y) => {
|
|
63110
63113
|
const min_options = [0.001, 0.002, 0.003];
|
|
63111
63114
|
if (min_options.includes(this.minimum_size) && this.symbol.toUpperCase().startsWith("BTC")) {
|
|
63112
|
-
|
|
63115
|
+
console.log("max_quantity", this.max_quantity);
|
|
63116
|
+
return y.quantity <= this.max_quantity;
|
|
63113
63117
|
}
|
|
63114
63118
|
return true;
|
|
63115
63119
|
});
|
|
@@ -63578,7 +63582,8 @@ function buildConfig(app_config, {
|
|
|
63578
63582
|
kelly_minimum_risk: kelly_minimum_risk || app_config.kelly?.kelly_minimum_risk,
|
|
63579
63583
|
kelly_prediction_model: kelly_prediction_model || app_config.kelly?.kelly_prediction_model,
|
|
63580
63584
|
kelly_func: kelly_func || app_config.kelly?.kelly_func,
|
|
63581
|
-
symbol: app_config.symbol
|
|
63585
|
+
symbol: app_config.symbol,
|
|
63586
|
+
max_quantity: app_config.max_quantity
|
|
63582
63587
|
};
|
|
63583
63588
|
const instance = new Signal(config2);
|
|
63584
63589
|
if (raw_instance) {
|