@v587d/capital-generation 2.31.4 → 2.31.6
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 +53 -0
- package/README.md +3 -3
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/collector-runtime.js +8 -0
- package/lib/data-collector/catalog-taxonomy.js +11 -0
- package/lib/data-collector/hub.d.ts +2 -0
- package/lib/data-collector/hub.js +58 -0
- package/lib/sources/eastmoney-http.js +277 -2
- package/lib/sources/sec-http.d.ts +5 -0
- package/lib/sources/sec-http.js +648 -0
- package/lib/sources/us-official-http.d.ts +6 -0
- package/lib/sources/us-official-http.js +659 -0
- package/lib/time/tools.js +6 -0
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +1 -1
- package/watchlist/package.json +1 -1
package/lib/time/tools.js
CHANGED
|
@@ -44,6 +44,12 @@ const DATA_TIME_CONTRACTS = {
|
|
|
44
44
|
eastmoney_customs_trade: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
45
45
|
eastmoney_retail_sales: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
46
46
|
eastmoney_deposit_reserve: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '存准率是**调整事件表**:区间里没有调整就是真实空结果,不是取数失败,不要重试' },
|
|
47
|
+
// US official data: business days in US/Eastern, not Asia/Shanghai.
|
|
48
|
+
us_treasury_yield_curve: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 1830, warning: '日期是**美东业务日**(节假日没有行),不是北京时间;收益率是百分数原值' },
|
|
49
|
+
nyfed_reference_rates: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 1830, warning: 'effective_date 是**美东业务日**(周末与假日没有行);利率是百分数原值' },
|
|
50
|
+
finra_short_volume: { kind: 'date', fields: ['trade_date'], maxDays: 366, warning: '美东业务日:周末/假日/尚未发布日没有文件;省略 trade_date 会自动取最近已发布日' },
|
|
51
|
+
sec_daily_filings: { kind: 'date', fields: ['filing_date'], maxDays: 366, warning: '美东申报日:周末与假日没有日索引文件' },
|
|
52
|
+
sec_fulltext_search: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 3660, warning: '美东申报日区间;两个参数必须成对给' },
|
|
47
53
|
eastmoney_mutual_flow: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
48
54
|
eastmoney_dividend_plan: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '区间过滤的是**除权除息日**,不是报告期' },
|
|
49
55
|
eastmoney_margin_trading: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '两融披露沪市比深市快一个交易日:跨市场同日比较前先对齐到共同日期' },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Known limit: DNS resolves per request but the IP is not pinned to the connection,
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
|
-
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.31.
|
|
6
|
+
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.31.6";
|
|
7
7
|
export declare const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
8
8
|
export type LocalFetchErrorCode = 'ABORTED' | 'TIMEOUT' | 'INVALID_URL' | 'BLOCKED_URL' | 'DNS' | 'REDIRECT' | 'HTTP' | 'TOO_LARGE' | 'UNSUPPORTED_CONTENT_TYPE';
|
|
9
9
|
export declare class LocalFetchError extends Error {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
6
|
import { htmlToMarkdown, stripInvisibleText } from './html-markdown.js';
|
|
7
|
-
export const LOCAL_FETCH_CLIENT_VERSION = '2.31.
|
|
7
|
+
export const LOCAL_FETCH_CLIENT_VERSION = '2.31.6';
|
|
8
8
|
export const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
9
9
|
export class LocalFetchError extends Error {
|
|
10
10
|
code;
|
|
@@ -35,7 +35,7 @@ export interface WindCallResult {
|
|
|
35
35
|
code?: WindErrorCode;
|
|
36
36
|
}
|
|
37
37
|
/** Must match `package.json` version; a test pins the two together. */
|
|
38
|
-
export declare const WIND_CLIENT_VERSION = "2.31.
|
|
38
|
+
export declare const WIND_CLIENT_VERSION = "2.31.6";
|
|
39
39
|
export interface WindClient {
|
|
40
40
|
callTool(toolName: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<WindCallResult>;
|
|
41
41
|
}
|
|
@@ -19,7 +19,7 @@ export const WIND_SERVER_ENDPOINTS = {
|
|
|
19
19
|
analytics_data: 'https://mcp.wind.com.cn/vserver_analytics_data/mcp/',
|
|
20
20
|
};
|
|
21
21
|
/** Must match `package.json` version; a test pins the two together. */
|
|
22
|
-
export const WIND_CLIENT_VERSION = '2.31.
|
|
22
|
+
export const WIND_CLIENT_VERSION = '2.31.6';
|
|
23
23
|
function errorText(error) {
|
|
24
24
|
return error instanceof Error ? error.message : String(error);
|
|
25
25
|
}
|
package/package.json
CHANGED
package/watchlist/package.json
CHANGED