@sonarwatch/portfolio-core 0.16.76 → 0.16.78

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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.16.78](https://github.com/sonarwatch/portfolio/compare/core-0.16.77...core-0.16.78) (2025-10-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * **dca:** update recurring order configuration with cycles, interval, and price range ([3ef9460](https://github.com/sonarwatch/portfolio/commit/3ef9460b8b424b5c1ea442cf872b9d75d50318b8))
11
+
12
+
13
+
14
+ ## [0.16.77](https://github.com/sonarwatch/portfolio/compare/core-0.16.76...core-0.16.77) (2025-10-22)
15
+
16
+
17
+
5
18
  ## [0.16.76](https://github.com/sonarwatch/portfolio/compare/core-0.16.75...core-0.16.76) (2025-10-20)
6
19
 
7
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-core",
3
- "version": "0.16.76",
3
+ "version": "0.16.78",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "repository": {
@@ -216,6 +216,28 @@ export type PortfolioElementTradeData = {
216
216
  * Expire at timestamp in ms
217
217
  */
218
218
  expireAt?: number;
219
+ /**
220
+ * Recurring order configuration
221
+ */
222
+ recurring?: {
223
+ /**
224
+ * The total number of orders.
225
+ */
226
+ cycles: number;
227
+ /**
228
+ * The interval between two orders in ms.
229
+ */
230
+ interval: number;
231
+ /**
232
+ * The price range for the recurring orders.
233
+ */
234
+ priceRange?: {
235
+ /** Minimum usd price */
236
+ min?: number;
237
+ /** Maximum usd price */
238
+ max?: number;
239
+ };
240
+ };
219
241
  contract?: string;
220
242
  ref?: string;
221
243
  sourceRefs?: SourceRef[];
@@ -1 +1 @@
1
- {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAsDX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAmQX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
1
+ {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAsDX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAwRX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}