@sonarwatch/portfolio-core 0.16.77 → 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 +9 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +18 -4
- package/src/Portfolio.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
|
|
5
14
|
## [0.16.77](https://github.com/sonarwatch/portfolio/compare/core-0.16.76...core-0.16.77) (2025-10-22)
|
|
6
15
|
|
|
7
16
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -219,10 +219,24 @@ export type PortfolioElementTradeData = {
|
|
|
219
219
|
/**
|
|
220
220
|
* Recurring order configuration
|
|
221
221
|
*/
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
+
};
|
|
226
240
|
};
|
|
227
241
|
contract?: string;
|
|
228
242
|
ref?: string;
|
package/src/Portfolio.js.map
CHANGED
|
@@ -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;
|
|
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"}
|