reportify-sdk 0.3.32 → 0.3.33
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -864,11 +864,13 @@ declare class QuantModule {
|
|
|
864
864
|
* - Variables (no parentheses): CLOSE, OPEN, HIGH, LOW, VOLUME, AMOUNT
|
|
865
865
|
* - Functions (TongDaXin style: col first, n second): MA(CLOSE, 20), PE(), ROE(), RSI(14), etc.
|
|
866
866
|
*
|
|
867
|
+
* @param market - Stock market ("cn", "hk", "us"), default "cn"
|
|
867
868
|
* @returns Array of factor definitions with name, type, level, description, and optional fields
|
|
868
869
|
*
|
|
869
870
|
* @example
|
|
870
871
|
* ```typescript
|
|
871
872
|
* const factors = await client.quant.factors();
|
|
873
|
+
* const hkFactors = await client.quant.factors('hk');
|
|
872
874
|
* factors.forEach(f => {
|
|
873
875
|
* console.log(`${f.name} (${f.type}, level ${f.level})`);
|
|
874
876
|
* if (f.fields) {
|
|
@@ -877,7 +879,7 @@ declare class QuantModule {
|
|
|
877
879
|
* });
|
|
878
880
|
* ```
|
|
879
881
|
*/
|
|
880
|
-
factors(): Promise<FactorMeta[]>;
|
|
882
|
+
factors(market?: StockMarket): Promise<FactorMeta[]>;
|
|
881
883
|
/**
|
|
882
884
|
* Compute factor values for given symbols
|
|
883
885
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -864,11 +864,13 @@ declare class QuantModule {
|
|
|
864
864
|
* - Variables (no parentheses): CLOSE, OPEN, HIGH, LOW, VOLUME, AMOUNT
|
|
865
865
|
* - Functions (TongDaXin style: col first, n second): MA(CLOSE, 20), PE(), ROE(), RSI(14), etc.
|
|
866
866
|
*
|
|
867
|
+
* @param market - Stock market ("cn", "hk", "us"), default "cn"
|
|
867
868
|
* @returns Array of factor definitions with name, type, level, description, and optional fields
|
|
868
869
|
*
|
|
869
870
|
* @example
|
|
870
871
|
* ```typescript
|
|
871
872
|
* const factors = await client.quant.factors();
|
|
873
|
+
* const hkFactors = await client.quant.factors('hk');
|
|
872
874
|
* factors.forEach(f => {
|
|
873
875
|
* console.log(`${f.name} (${f.type}, level ${f.level})`);
|
|
874
876
|
* if (f.fields) {
|
|
@@ -877,7 +879,7 @@ declare class QuantModule {
|
|
|
877
879
|
* });
|
|
878
880
|
* ```
|
|
879
881
|
*/
|
|
880
|
-
factors(): Promise<FactorMeta[]>;
|
|
882
|
+
factors(market?: StockMarket): Promise<FactorMeta[]>;
|
|
881
883
|
/**
|
|
882
884
|
* Compute factor values for given symbols
|
|
883
885
|
*
|
package/dist/index.js
CHANGED
|
@@ -635,11 +635,13 @@ var QuantModule = class _QuantModule {
|
|
|
635
635
|
* - Variables (no parentheses): CLOSE, OPEN, HIGH, LOW, VOLUME, AMOUNT
|
|
636
636
|
* - Functions (TongDaXin style: col first, n second): MA(CLOSE, 20), PE(), ROE(), RSI(14), etc.
|
|
637
637
|
*
|
|
638
|
+
* @param market - Stock market ("cn", "hk", "us"), default "cn"
|
|
638
639
|
* @returns Array of factor definitions with name, type, level, description, and optional fields
|
|
639
640
|
*
|
|
640
641
|
* @example
|
|
641
642
|
* ```typescript
|
|
642
643
|
* const factors = await client.quant.factors();
|
|
644
|
+
* const hkFactors = await client.quant.factors('hk');
|
|
643
645
|
* factors.forEach(f => {
|
|
644
646
|
* console.log(`${f.name} (${f.type}, level ${f.level})`);
|
|
645
647
|
* if (f.fields) {
|
|
@@ -648,8 +650,8 @@ var QuantModule = class _QuantModule {
|
|
|
648
650
|
* });
|
|
649
651
|
* ```
|
|
650
652
|
*/
|
|
651
|
-
async factors() {
|
|
652
|
-
return this.client.get("/v1/quant/factors");
|
|
653
|
+
async factors(market = "cn") {
|
|
654
|
+
return this.client.get("/v1/quant/factors", { market });
|
|
653
655
|
}
|
|
654
656
|
/**
|
|
655
657
|
* Compute factor values for given symbols
|
package/dist/index.mjs
CHANGED
|
@@ -591,11 +591,13 @@ var QuantModule = class _QuantModule {
|
|
|
591
591
|
* - Variables (no parentheses): CLOSE, OPEN, HIGH, LOW, VOLUME, AMOUNT
|
|
592
592
|
* - Functions (TongDaXin style: col first, n second): MA(CLOSE, 20), PE(), ROE(), RSI(14), etc.
|
|
593
593
|
*
|
|
594
|
+
* @param market - Stock market ("cn", "hk", "us"), default "cn"
|
|
594
595
|
* @returns Array of factor definitions with name, type, level, description, and optional fields
|
|
595
596
|
*
|
|
596
597
|
* @example
|
|
597
598
|
* ```typescript
|
|
598
599
|
* const factors = await client.quant.factors();
|
|
600
|
+
* const hkFactors = await client.quant.factors('hk');
|
|
599
601
|
* factors.forEach(f => {
|
|
600
602
|
* console.log(`${f.name} (${f.type}, level ${f.level})`);
|
|
601
603
|
* if (f.fields) {
|
|
@@ -604,8 +606,8 @@ var QuantModule = class _QuantModule {
|
|
|
604
606
|
* });
|
|
605
607
|
* ```
|
|
606
608
|
*/
|
|
607
|
-
async factors() {
|
|
608
|
-
return this.client.get("/v1/quant/factors");
|
|
609
|
+
async factors(market = "cn") {
|
|
610
|
+
return this.client.get("/v1/quant/factors", { market });
|
|
609
611
|
}
|
|
610
612
|
/**
|
|
611
613
|
* Compute factor values for given symbols
|