reportify-sdk 0.3.29 → 0.3.31
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 +36 -21
- package/dist/index.d.ts +36 -21
- package/dist/index.js +37 -22
- package/dist/index.mjs +37 -22
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -731,6 +731,10 @@ interface BacktestParams {
|
|
|
731
731
|
exitFormula?: string;
|
|
732
732
|
initialCash?: number;
|
|
733
733
|
commission?: number;
|
|
734
|
+
buyCommission?: number;
|
|
735
|
+
sellCommission?: number;
|
|
736
|
+
minCommissionAmount?: number;
|
|
737
|
+
slippage?: number;
|
|
734
738
|
stopLoss?: number;
|
|
735
739
|
positionSize?: number;
|
|
736
740
|
maxPositions?: number;
|
|
@@ -738,17 +742,21 @@ interface BacktestParams {
|
|
|
738
742
|
autoClose?: boolean;
|
|
739
743
|
signalFactors?: Record<string, string>;
|
|
740
744
|
}
|
|
741
|
-
interface
|
|
745
|
+
interface KlineParams {
|
|
742
746
|
symbol: string;
|
|
743
|
-
|
|
744
|
-
endDateTime: string;
|
|
747
|
+
klineType?: '1M' | '5M' | '15M' | '30M' | '60M' | '1D' | '1W' | '1MO';
|
|
745
748
|
market?: StockMarket;
|
|
749
|
+
stockType?: 'stock' | 'etf' | 'index' | 'sw';
|
|
750
|
+
startDateTime?: string;
|
|
751
|
+
endDateTime?: string;
|
|
746
752
|
}
|
|
747
|
-
interface
|
|
753
|
+
interface BatchKlineParams {
|
|
748
754
|
symbols: string[];
|
|
749
|
-
|
|
750
|
-
endDateTime: string;
|
|
755
|
+
klineType?: '1M' | '5M' | '15M' | '30M' | '60M' | '1D' | '1W' | '1MO';
|
|
751
756
|
market?: StockMarket;
|
|
757
|
+
stockType?: 'stock' | 'etf' | 'index' | 'sw';
|
|
758
|
+
startDateTime?: string;
|
|
759
|
+
endDateTime?: string;
|
|
752
760
|
}
|
|
753
761
|
interface MinuteParams {
|
|
754
762
|
symbol: string;
|
|
@@ -771,6 +779,10 @@ interface BacktestUploadParams {
|
|
|
771
779
|
exitFormula?: string;
|
|
772
780
|
initialCash?: number;
|
|
773
781
|
commission?: number;
|
|
782
|
+
buyCommission?: number;
|
|
783
|
+
sellCommission?: number;
|
|
784
|
+
minCommissionAmount?: number;
|
|
785
|
+
slippage?: number;
|
|
774
786
|
positionSize?: number;
|
|
775
787
|
maxPositions?: number;
|
|
776
788
|
minVolume?: number;
|
|
@@ -965,37 +977,40 @@ declare class QuantModule {
|
|
|
965
977
|
/**
|
|
966
978
|
* Get 1-minute kline data for a single symbol
|
|
967
979
|
*
|
|
980
|
+
/**
|
|
981
|
+
* Get kline data for a single symbol (supports all periods)
|
|
982
|
+
*
|
|
968
983
|
* @param params - Kline parameters
|
|
969
|
-
* @returns Array of
|
|
984
|
+
* @returns Array of kline data
|
|
970
985
|
*
|
|
971
986
|
* @example
|
|
972
987
|
* ```typescript
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
*
|
|
976
|
-
*
|
|
988
|
+
* // Daily kline (default)
|
|
989
|
+
* const data = await client.quant.kline({ symbol: '000001' });
|
|
990
|
+
* // 5-minute intraday
|
|
991
|
+
* const data = await client.quant.kline({
|
|
992
|
+
* symbol: '000001', klineType: '5M',
|
|
993
|
+
* startDateTime: '2026-04-09 09:30:00',
|
|
994
|
+
* endDateTime: '2026-04-09 15:00:00'
|
|
977
995
|
* });
|
|
978
|
-
* console.log(data);
|
|
979
996
|
* ```
|
|
980
997
|
*/
|
|
981
|
-
|
|
998
|
+
kline(params: KlineParams): Promise<OHLCVData[]>;
|
|
982
999
|
/**
|
|
983
|
-
* Get
|
|
1000
|
+
* Get kline data for multiple symbols (supports all periods)
|
|
984
1001
|
*
|
|
985
1002
|
* @param params - Batch kline parameters
|
|
986
|
-
* @returns Array of
|
|
1003
|
+
* @returns Array of kline data
|
|
987
1004
|
*
|
|
988
1005
|
* @example
|
|
989
1006
|
* ```typescript
|
|
990
|
-
* const data = await client.quant.
|
|
1007
|
+
* const data = await client.quant.klineBatch({
|
|
991
1008
|
* symbols: ['000001', '600519'],
|
|
992
|
-
*
|
|
993
|
-
* endDateTime: '2024-01-01 15:00:00'
|
|
1009
|
+
* klineType: '1D'
|
|
994
1010
|
* });
|
|
995
|
-
* console.log(data);
|
|
996
1011
|
* ```
|
|
997
1012
|
*/
|
|
998
|
-
|
|
1013
|
+
klineBatch(params: BatchKlineParams): Promise<OHLCVData[]>;
|
|
999
1014
|
/**
|
|
1000
1015
|
* Get minute data for a single symbol
|
|
1001
1016
|
*
|
|
@@ -1979,4 +1994,4 @@ declare class Reportify {
|
|
|
1979
1994
|
getBytes(path: string): Promise<ArrayBuffer>;
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
1982
|
-
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BacktestUploadParams, type
|
|
1997
|
+
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BacktestUploadParams, type BatchKlineParams, type BatchMinuteParams, type BatchOHLCVOutput, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CommodityData, type CommodityType, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeData, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, FollowingModule, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndustryConstituent, KBModule, type KBSearchOptions, type KlineParams, MacroModule, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };
|
package/dist/index.d.ts
CHANGED
|
@@ -731,6 +731,10 @@ interface BacktestParams {
|
|
|
731
731
|
exitFormula?: string;
|
|
732
732
|
initialCash?: number;
|
|
733
733
|
commission?: number;
|
|
734
|
+
buyCommission?: number;
|
|
735
|
+
sellCommission?: number;
|
|
736
|
+
minCommissionAmount?: number;
|
|
737
|
+
slippage?: number;
|
|
734
738
|
stopLoss?: number;
|
|
735
739
|
positionSize?: number;
|
|
736
740
|
maxPositions?: number;
|
|
@@ -738,17 +742,21 @@ interface BacktestParams {
|
|
|
738
742
|
autoClose?: boolean;
|
|
739
743
|
signalFactors?: Record<string, string>;
|
|
740
744
|
}
|
|
741
|
-
interface
|
|
745
|
+
interface KlineParams {
|
|
742
746
|
symbol: string;
|
|
743
|
-
|
|
744
|
-
endDateTime: string;
|
|
747
|
+
klineType?: '1M' | '5M' | '15M' | '30M' | '60M' | '1D' | '1W' | '1MO';
|
|
745
748
|
market?: StockMarket;
|
|
749
|
+
stockType?: 'stock' | 'etf' | 'index' | 'sw';
|
|
750
|
+
startDateTime?: string;
|
|
751
|
+
endDateTime?: string;
|
|
746
752
|
}
|
|
747
|
-
interface
|
|
753
|
+
interface BatchKlineParams {
|
|
748
754
|
symbols: string[];
|
|
749
|
-
|
|
750
|
-
endDateTime: string;
|
|
755
|
+
klineType?: '1M' | '5M' | '15M' | '30M' | '60M' | '1D' | '1W' | '1MO';
|
|
751
756
|
market?: StockMarket;
|
|
757
|
+
stockType?: 'stock' | 'etf' | 'index' | 'sw';
|
|
758
|
+
startDateTime?: string;
|
|
759
|
+
endDateTime?: string;
|
|
752
760
|
}
|
|
753
761
|
interface MinuteParams {
|
|
754
762
|
symbol: string;
|
|
@@ -771,6 +779,10 @@ interface BacktestUploadParams {
|
|
|
771
779
|
exitFormula?: string;
|
|
772
780
|
initialCash?: number;
|
|
773
781
|
commission?: number;
|
|
782
|
+
buyCommission?: number;
|
|
783
|
+
sellCommission?: number;
|
|
784
|
+
minCommissionAmount?: number;
|
|
785
|
+
slippage?: number;
|
|
774
786
|
positionSize?: number;
|
|
775
787
|
maxPositions?: number;
|
|
776
788
|
minVolume?: number;
|
|
@@ -965,37 +977,40 @@ declare class QuantModule {
|
|
|
965
977
|
/**
|
|
966
978
|
* Get 1-minute kline data for a single symbol
|
|
967
979
|
*
|
|
980
|
+
/**
|
|
981
|
+
* Get kline data for a single symbol (supports all periods)
|
|
982
|
+
*
|
|
968
983
|
* @param params - Kline parameters
|
|
969
|
-
* @returns Array of
|
|
984
|
+
* @returns Array of kline data
|
|
970
985
|
*
|
|
971
986
|
* @example
|
|
972
987
|
* ```typescript
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
*
|
|
976
|
-
*
|
|
988
|
+
* // Daily kline (default)
|
|
989
|
+
* const data = await client.quant.kline({ symbol: '000001' });
|
|
990
|
+
* // 5-minute intraday
|
|
991
|
+
* const data = await client.quant.kline({
|
|
992
|
+
* symbol: '000001', klineType: '5M',
|
|
993
|
+
* startDateTime: '2026-04-09 09:30:00',
|
|
994
|
+
* endDateTime: '2026-04-09 15:00:00'
|
|
977
995
|
* });
|
|
978
|
-
* console.log(data);
|
|
979
996
|
* ```
|
|
980
997
|
*/
|
|
981
|
-
|
|
998
|
+
kline(params: KlineParams): Promise<OHLCVData[]>;
|
|
982
999
|
/**
|
|
983
|
-
* Get
|
|
1000
|
+
* Get kline data for multiple symbols (supports all periods)
|
|
984
1001
|
*
|
|
985
1002
|
* @param params - Batch kline parameters
|
|
986
|
-
* @returns Array of
|
|
1003
|
+
* @returns Array of kline data
|
|
987
1004
|
*
|
|
988
1005
|
* @example
|
|
989
1006
|
* ```typescript
|
|
990
|
-
* const data = await client.quant.
|
|
1007
|
+
* const data = await client.quant.klineBatch({
|
|
991
1008
|
* symbols: ['000001', '600519'],
|
|
992
|
-
*
|
|
993
|
-
* endDateTime: '2024-01-01 15:00:00'
|
|
1009
|
+
* klineType: '1D'
|
|
994
1010
|
* });
|
|
995
|
-
* console.log(data);
|
|
996
1011
|
* ```
|
|
997
1012
|
*/
|
|
998
|
-
|
|
1013
|
+
klineBatch(params: BatchKlineParams): Promise<OHLCVData[]>;
|
|
999
1014
|
/**
|
|
1000
1015
|
* Get minute data for a single symbol
|
|
1001
1016
|
*
|
|
@@ -1979,4 +1994,4 @@ declare class Reportify {
|
|
|
1979
1994
|
getBytes(path: string): Promise<ArrayBuffer>;
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
1982
|
-
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BacktestUploadParams, type
|
|
1997
|
+
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BacktestUploadParams, type BatchKlineParams, type BatchMinuteParams, type BatchOHLCVOutput, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CommodityData, type CommodityType, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeData, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, FollowingModule, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndustryConstituent, KBModule, type KBSearchOptions, type KlineParams, MacroModule, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };
|
package/dist/index.js
CHANGED
|
@@ -788,50 +788,57 @@ var QuantModule = class {
|
|
|
788
788
|
/**
|
|
789
789
|
* Get 1-minute kline data for a single symbol
|
|
790
790
|
*
|
|
791
|
+
/**
|
|
792
|
+
* Get kline data for a single symbol (supports all periods)
|
|
793
|
+
*
|
|
791
794
|
* @param params - Kline parameters
|
|
792
|
-
* @returns Array of
|
|
795
|
+
* @returns Array of kline data
|
|
793
796
|
*
|
|
794
797
|
* @example
|
|
795
798
|
* ```typescript
|
|
796
|
-
*
|
|
797
|
-
*
|
|
798
|
-
*
|
|
799
|
-
*
|
|
799
|
+
* // Daily kline (default)
|
|
800
|
+
* const data = await client.quant.kline({ symbol: '000001' });
|
|
801
|
+
* // 5-minute intraday
|
|
802
|
+
* const data = await client.quant.kline({
|
|
803
|
+
* symbol: '000001', klineType: '5M',
|
|
804
|
+
* startDateTime: '2026-04-09 09:30:00',
|
|
805
|
+
* endDateTime: '2026-04-09 15:00:00'
|
|
800
806
|
* });
|
|
801
|
-
* console.log(data);
|
|
802
807
|
* ```
|
|
803
808
|
*/
|
|
804
|
-
async
|
|
805
|
-
const response = await this.client.get("/v1/quant/quotes/
|
|
809
|
+
async kline(params) {
|
|
810
|
+
const response = await this.client.get("/v1/quant/quotes/kline", {
|
|
806
811
|
symbol: params.symbol,
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
812
|
+
kline_type: params.klineType || "1D",
|
|
813
|
+
market: params.market || "cn",
|
|
814
|
+
...params.stockType && { stock_type: params.stockType },
|
|
815
|
+
...params.startDateTime && { start_datetime: params.startDateTime },
|
|
816
|
+
...params.endDateTime && { end_datetime: params.endDateTime }
|
|
810
817
|
});
|
|
811
818
|
return response.datas || [];
|
|
812
819
|
}
|
|
813
820
|
/**
|
|
814
|
-
* Get
|
|
821
|
+
* Get kline data for multiple symbols (supports all periods)
|
|
815
822
|
*
|
|
816
823
|
* @param params - Batch kline parameters
|
|
817
|
-
* @returns Array of
|
|
824
|
+
* @returns Array of kline data
|
|
818
825
|
*
|
|
819
826
|
* @example
|
|
820
827
|
* ```typescript
|
|
821
|
-
* const data = await client.quant.
|
|
828
|
+
* const data = await client.quant.klineBatch({
|
|
822
829
|
* symbols: ['000001', '600519'],
|
|
823
|
-
*
|
|
824
|
-
* endDateTime: '2024-01-01 15:00:00'
|
|
830
|
+
* klineType: '1D'
|
|
825
831
|
* });
|
|
826
|
-
* console.log(data);
|
|
827
832
|
* ```
|
|
828
833
|
*/
|
|
829
|
-
async
|
|
830
|
-
const response = await this.client.post("/v1/quant/quotes/
|
|
834
|
+
async klineBatch(params) {
|
|
835
|
+
const response = await this.client.post("/v1/quant/quotes/kline/batch", {
|
|
831
836
|
symbols: params.symbols,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
837
|
+
kline_type: params.klineType || "1D",
|
|
838
|
+
market: params.market || "cn",
|
|
839
|
+
...params.stockType && { stock_type: params.stockType },
|
|
840
|
+
...params.startDateTime && { start_datetime: params.startDateTime },
|
|
841
|
+
...params.endDateTime && { end_datetime: params.endDateTime }
|
|
835
842
|
});
|
|
836
843
|
return response.datas || [];
|
|
837
844
|
}
|
|
@@ -951,6 +958,10 @@ var QuantModule = class {
|
|
|
951
958
|
market: params.market || "cn",
|
|
952
959
|
initial_cash: params.initialCash ?? 1e5,
|
|
953
960
|
commission: params.commission ?? 0,
|
|
961
|
+
buy_commission: params.buyCommission ?? 0,
|
|
962
|
+
sell_commission: params.sellCommission ?? 0,
|
|
963
|
+
min_commission_amount: params.minCommissionAmount ?? 0,
|
|
964
|
+
slippage: params.slippage ?? 0,
|
|
954
965
|
stop_loss: params.stopLoss ?? 0,
|
|
955
966
|
position_size: params.positionSize ?? 0.2,
|
|
956
967
|
max_positions: params.maxPositions ?? 5,
|
|
@@ -1027,6 +1038,10 @@ var QuantModule = class {
|
|
|
1027
1038
|
formData.append("file", params.file);
|
|
1028
1039
|
formData.append("initial_cash", String(params.initialCash ?? 1e5));
|
|
1029
1040
|
formData.append("commission", String(params.commission ?? 0));
|
|
1041
|
+
formData.append("buy_commission", String(params.buyCommission ?? 0));
|
|
1042
|
+
formData.append("sell_commission", String(params.sellCommission ?? 0));
|
|
1043
|
+
formData.append("min_commission_amount", String(params.minCommissionAmount ?? 0));
|
|
1044
|
+
formData.append("slippage", String(params.slippage ?? 0));
|
|
1030
1045
|
formData.append("position_size", String(params.positionSize ?? 0.2));
|
|
1031
1046
|
formData.append("max_positions", String(params.maxPositions ?? 5));
|
|
1032
1047
|
formData.append("min_volume", String(params.minVolume ?? 100));
|
package/dist/index.mjs
CHANGED
|
@@ -744,50 +744,57 @@ var QuantModule = class {
|
|
|
744
744
|
/**
|
|
745
745
|
* Get 1-minute kline data for a single symbol
|
|
746
746
|
*
|
|
747
|
+
/**
|
|
748
|
+
* Get kline data for a single symbol (supports all periods)
|
|
749
|
+
*
|
|
747
750
|
* @param params - Kline parameters
|
|
748
|
-
* @returns Array of
|
|
751
|
+
* @returns Array of kline data
|
|
749
752
|
*
|
|
750
753
|
* @example
|
|
751
754
|
* ```typescript
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
755
|
+
* // Daily kline (default)
|
|
756
|
+
* const data = await client.quant.kline({ symbol: '000001' });
|
|
757
|
+
* // 5-minute intraday
|
|
758
|
+
* const data = await client.quant.kline({
|
|
759
|
+
* symbol: '000001', klineType: '5M',
|
|
760
|
+
* startDateTime: '2026-04-09 09:30:00',
|
|
761
|
+
* endDateTime: '2026-04-09 15:00:00'
|
|
756
762
|
* });
|
|
757
|
-
* console.log(data);
|
|
758
763
|
* ```
|
|
759
764
|
*/
|
|
760
|
-
async
|
|
761
|
-
const response = await this.client.get("/v1/quant/quotes/
|
|
765
|
+
async kline(params) {
|
|
766
|
+
const response = await this.client.get("/v1/quant/quotes/kline", {
|
|
762
767
|
symbol: params.symbol,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
768
|
+
kline_type: params.klineType || "1D",
|
|
769
|
+
market: params.market || "cn",
|
|
770
|
+
...params.stockType && { stock_type: params.stockType },
|
|
771
|
+
...params.startDateTime && { start_datetime: params.startDateTime },
|
|
772
|
+
...params.endDateTime && { end_datetime: params.endDateTime }
|
|
766
773
|
});
|
|
767
774
|
return response.datas || [];
|
|
768
775
|
}
|
|
769
776
|
/**
|
|
770
|
-
* Get
|
|
777
|
+
* Get kline data for multiple symbols (supports all periods)
|
|
771
778
|
*
|
|
772
779
|
* @param params - Batch kline parameters
|
|
773
|
-
* @returns Array of
|
|
780
|
+
* @returns Array of kline data
|
|
774
781
|
*
|
|
775
782
|
* @example
|
|
776
783
|
* ```typescript
|
|
777
|
-
* const data = await client.quant.
|
|
784
|
+
* const data = await client.quant.klineBatch({
|
|
778
785
|
* symbols: ['000001', '600519'],
|
|
779
|
-
*
|
|
780
|
-
* endDateTime: '2024-01-01 15:00:00'
|
|
786
|
+
* klineType: '1D'
|
|
781
787
|
* });
|
|
782
|
-
* console.log(data);
|
|
783
788
|
* ```
|
|
784
789
|
*/
|
|
785
|
-
async
|
|
786
|
-
const response = await this.client.post("/v1/quant/quotes/
|
|
790
|
+
async klineBatch(params) {
|
|
791
|
+
const response = await this.client.post("/v1/quant/quotes/kline/batch", {
|
|
787
792
|
symbols: params.symbols,
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
793
|
+
kline_type: params.klineType || "1D",
|
|
794
|
+
market: params.market || "cn",
|
|
795
|
+
...params.stockType && { stock_type: params.stockType },
|
|
796
|
+
...params.startDateTime && { start_datetime: params.startDateTime },
|
|
797
|
+
...params.endDateTime && { end_datetime: params.endDateTime }
|
|
791
798
|
});
|
|
792
799
|
return response.datas || [];
|
|
793
800
|
}
|
|
@@ -907,6 +914,10 @@ var QuantModule = class {
|
|
|
907
914
|
market: params.market || "cn",
|
|
908
915
|
initial_cash: params.initialCash ?? 1e5,
|
|
909
916
|
commission: params.commission ?? 0,
|
|
917
|
+
buy_commission: params.buyCommission ?? 0,
|
|
918
|
+
sell_commission: params.sellCommission ?? 0,
|
|
919
|
+
min_commission_amount: params.minCommissionAmount ?? 0,
|
|
920
|
+
slippage: params.slippage ?? 0,
|
|
910
921
|
stop_loss: params.stopLoss ?? 0,
|
|
911
922
|
position_size: params.positionSize ?? 0.2,
|
|
912
923
|
max_positions: params.maxPositions ?? 5,
|
|
@@ -983,6 +994,10 @@ var QuantModule = class {
|
|
|
983
994
|
formData.append("file", params.file);
|
|
984
995
|
formData.append("initial_cash", String(params.initialCash ?? 1e5));
|
|
985
996
|
formData.append("commission", String(params.commission ?? 0));
|
|
997
|
+
formData.append("buy_commission", String(params.buyCommission ?? 0));
|
|
998
|
+
formData.append("sell_commission", String(params.sellCommission ?? 0));
|
|
999
|
+
formData.append("min_commission_amount", String(params.minCommissionAmount ?? 0));
|
|
1000
|
+
formData.append("slippage", String(params.slippage ?? 0));
|
|
986
1001
|
formData.append("position_size", String(params.positionSize ?? 0.2));
|
|
987
1002
|
formData.append("max_positions", String(params.maxPositions ?? 5));
|
|
988
1003
|
formData.append("min_volume", String(params.minVolume ?? 100));
|