nexustrade 5.1.0 → 5.2.2

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.
@@ -110,6 +110,8 @@ export declare class PortfolioHandle implements Portfolio {
110
110
  endDate: string;
111
111
  idempotencyKey: string;
112
112
  baseline?: string;
113
+ /** Typed benchmark `{ type, symbol, name? }`; never with `baseline`. */
114
+ baselineAsset?: JsonObject;
113
115
  interval?: string;
114
116
  initialValue?: number;
115
117
  generateEvents?: boolean;
@@ -340,6 +340,9 @@ export class PortfolioHandle {
340
340
  };
341
341
  if (options.baseline !== undefined)
342
342
  input.baseline = options.baseline;
343
+ if (options.baselineAsset !== undefined) {
344
+ input.baselineAsset = options.baselineAsset;
345
+ }
343
346
  if (options.interval !== undefined)
344
347
  input.interval = options.interval;
345
348
  if (options.initialValue !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexustrade",
3
- "version": "5.1.0",
3
+ "version": "5.2.2",
4
4
  "description": "Typed TypeScript SDK for NexusTrade portfolio authoring, backtesting, optimization, and natural-language stock screening",
5
5
  "license": "MIT",
6
6
  "author": "Starks Technology",