tradeblocks-mcp 4.2.0 → 4.4.0
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/README.md +72 -1
- package/dist/{chunk-YRD62LDE.js → chunk-35RVWZGT.js} +4 -1
- package/dist/{chunk-4UU7IT2A.js.map → chunk-35RVWZGT.js.map} +1 -1
- package/dist/{chunk-62GCLMQA.js → chunk-CZNPQ574.js} +6 -9
- package/dist/chunk-CZNPQ574.js.map +1 -0
- package/dist/{chunk-4UU7IT2A.js → chunk-ENXBPJ7Y.js} +148 -6
- package/dist/chunk-ENXBPJ7Y.js.map +1 -0
- package/dist/{daily-logs-store-PXB53WEK.js → daily-logs-store-FZRIGYUX.js} +2 -2
- package/dist/{daily-logs-store-65YHFJ5F.js → daily-logs-store-MEZ5S3BR.js} +2 -2
- package/dist/market/provenance/index.js +1 -4
- package/dist/market/provenance/index.js.map +1 -1
- package/dist/{sync-JL7OPLCT.js → sync-P6QUZFSF.js} +3 -3
- package/dist/test-exports.js +320 -279
- package/dist/test-exports.js.map +1 -1
- package/dist/{trades-store-UGZ62A7N.js → trades-store-3TOLBL2W.js} +2 -2
- package/dist/{trades-store-MOFJHRC2.js → trades-store-PNLPRYRJ.js} +2 -2
- package/package.json +1 -1
- package/server/{chunk-J4GWE6JR.js → chunk-5JTQEV7P.js} +307 -255
- package/server/chunk-5JTQEV7P.js.map +1 -0
- package/server/{chunk-7N6HBOAY.js → chunk-PDSUY2X2.js} +148 -6
- package/server/chunk-PDSUY2X2.js.map +1 -0
- package/server/{daily-logs-store-YAXASQN4.js → daily-logs-store-LRVO7COL.js} +2 -2
- package/server/index.js +1326 -928
- package/server/index.js.map +1 -1
- package/server/{sync-ZV3QEGMO.js → sync-336543PJ.js} +3 -3
- package/server/{trades-store-MF7YYLCH.js → trades-store-MXUZLSF5.js} +2 -2
- package/src/db/dataset-schemas.ts +97 -23
- package/src/tools/market-data.ts +327 -245
- package/src/tools/profile-analysis.ts +18 -4
- package/src/tools/reports/fields.ts +16 -11
- package/src/tools/reports/helpers.ts +6 -2
- package/src/tools/reports/predictive.ts +177 -191
- package/src/tools/shared/field-analysis.ts +57 -14
- package/src/tools/shared/filter-objective.ts +73 -0
- package/src/utils/filter-curve.ts +257 -0
- package/src/utils/trade-analysis-fields.ts +19 -4
- package/dist/chunk-62GCLMQA.js.map +0 -1
- package/dist/chunk-YRD62LDE.js.map +0 -1
- package/server/chunk-7N6HBOAY.js.map +0 -1
- package/server/chunk-J4GWE6JR.js.map +0 -1
- /package/dist/{daily-logs-store-65YHFJ5F.js.map → daily-logs-store-FZRIGYUX.js.map} +0 -0
- /package/dist/{daily-logs-store-PXB53WEK.js.map → daily-logs-store-MEZ5S3BR.js.map} +0 -0
- /package/dist/{sync-JL7OPLCT.js.map → sync-P6QUZFSF.js.map} +0 -0
- /package/dist/{trades-store-MOFJHRC2.js.map → trades-store-3TOLBL2W.js.map} +0 -0
- /package/dist/{trades-store-UGZ62A7N.js.map → trades-store-PNLPRYRJ.js.map} +0 -0
- /package/server/{daily-logs-store-YAXASQN4.js.map → daily-logs-store-LRVO7COL.js.map} +0 -0
- /package/server/{sync-ZV3QEGMO.js.map → sync-336543PJ.js.map} +0 -0
- /package/server/{trades-store-MF7YYLCH.js.map → trades-store-MXUZLSF5.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getNetPl,
|
|
7
7
|
getRiskFreeRate,
|
|
8
8
|
resolveTreasuryRateByKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ENXBPJ7Y.js";
|
|
10
10
|
import {
|
|
11
11
|
PlBasis
|
|
12
12
|
} from "./chunk-BH6SQOWF.js";
|
|
@@ -3790,7 +3790,7 @@ async function openReadWriteConnection(dbPath, threads, memoryLimit) {
|
|
|
3790
3790
|
await createMarketParquetViews(connection, dataRoot);
|
|
3791
3791
|
await ensureMarketDataTables(connection);
|
|
3792
3792
|
try {
|
|
3793
|
-
const blocksDir = (await import("./sync-
|
|
3793
|
+
const blocksDir = (await import("./sync-P6QUZFSF.js")).getBlocksDir(dataRoot);
|
|
3794
3794
|
await migrateMetadataToJson(connection, dataRoot, blocksDir);
|
|
3795
3795
|
} catch (err) {
|
|
3796
3796
|
console.warn(
|
|
@@ -20622,7 +20622,7 @@ function calculateCorrelationMatrix(trades, options = {}) {
|
|
|
20622
20622
|
}
|
|
20623
20623
|
let correlation;
|
|
20624
20624
|
if (method === "pearson") {
|
|
20625
|
-
correlation =
|
|
20625
|
+
correlation = pearsonCorrelation(returns1, returns2);
|
|
20626
20626
|
} else if (method === "spearman") {
|
|
20627
20627
|
correlation = spearmanCorrelation(returns1, returns2);
|
|
20628
20628
|
} else {
|
|
@@ -20635,7 +20635,7 @@ function calculateCorrelationMatrix(trades, options = {}) {
|
|
|
20635
20635
|
}
|
|
20636
20636
|
return { strategies, correlationData, sampleSizes };
|
|
20637
20637
|
}
|
|
20638
|
-
function
|
|
20638
|
+
function pearsonCorrelation(x, y) {
|
|
20639
20639
|
if (x.length !== y.length || x.length === 0) return 0;
|
|
20640
20640
|
const meanX = mean(x);
|
|
20641
20641
|
const meanY = mean(y);
|
|
@@ -20657,7 +20657,7 @@ function spearmanCorrelation(x, y) {
|
|
|
20657
20657
|
if (x.length !== y.length || x.length === 0) return 0;
|
|
20658
20658
|
const rankX = getRanks(x);
|
|
20659
20659
|
const rankY = getRanks(y);
|
|
20660
|
-
return
|
|
20660
|
+
return pearsonCorrelation(rankX, rankY);
|
|
20661
20661
|
}
|
|
20662
20662
|
function kendallCorrelation(x, y) {
|
|
20663
20663
|
if (x.length !== y.length || x.length === 0) return 0;
|
|
@@ -21585,9 +21585,6 @@ function pairedBlockBootstrap(input) {
|
|
|
21585
21585
|
};
|
|
21586
21586
|
}
|
|
21587
21587
|
|
|
21588
|
-
// ../lib/calculations/xnys-session-calendar.ts
|
|
21589
|
-
var MS_PER_DAY = 24 * 60 * 60 * 1e3;
|
|
21590
|
-
|
|
21591
21588
|
// ../lib/processing/tat-adapter.ts
|
|
21592
21589
|
var TAT_SIGNATURE_HEADERS = ["tradeid", "profitloss", "buyingpower"];
|
|
21593
21590
|
function isTatFormat(headers) {
|
|
@@ -23273,4 +23270,4 @@ decimal.js/decimal.mjs:
|
|
|
23273
23270
|
* MIT Licence
|
|
23274
23271
|
*)
|
|
23275
23272
|
*/
|
|
23276
|
-
//# sourceMappingURL=chunk-
|
|
23273
|
+
//# sourceMappingURL=chunk-CZNPQ574.js.map
|