@investoday/investoday-api 1.0.0 → 1.1.0
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/README.md +14 -0
- package/bin/investoday-api.js +0 -0
- package/data/openapi.json +62996 -0
- package/data/tree.json +5904 -0
- package/lib/call-api.js +428 -3
- package/lib/metadata.js +357 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -23,6 +23,13 @@ Get an API key from:
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
+
investoday-api --help
|
|
27
|
+
investoday-api list
|
|
28
|
+
investoday-api list 沪深京数据
|
|
29
|
+
investoday-api schema stock/basic-info
|
|
30
|
+
investoday-api example stock/basic-info
|
|
31
|
+
investoday-api search-api 违规处罚
|
|
32
|
+
investoday-api search-api 股票 --text
|
|
26
33
|
investoday-api <endpoint> [key=value ...]
|
|
27
34
|
investoday-api <endpoint> --method POST [key=value ...]
|
|
28
35
|
```
|
|
@@ -30,6 +37,11 @@ investoday-api <endpoint> --method POST [key=value ...]
|
|
|
30
37
|
Examples:
|
|
31
38
|
|
|
32
39
|
```bash
|
|
40
|
+
investoday-api list 沪深京数据/股票行情
|
|
41
|
+
investoday-api schema stock/violation-penalties
|
|
42
|
+
investoday-api example stock/violation-penalties
|
|
43
|
+
investoday-api search-api stockCodes
|
|
44
|
+
investoday-api search-api 股票 --text
|
|
33
45
|
investoday-api stock/basic-info stockCode=600519
|
|
34
46
|
investoday-api search key=贵州茅台 type=11
|
|
35
47
|
investoday-api fund/daily-quotes --method POST fundCode=000001 beginDate=2024-01-01 endDate=2024-12-31
|
|
@@ -39,4 +51,6 @@ investoday-api fund/daily-quotes --method POST fundCode=000001 beginDate=2024-01
|
|
|
39
51
|
|
|
40
52
|
- Only reads credentials from `INVESTODAY_API_KEY`
|
|
41
53
|
- Only calls `https://data-api.investoday.net/data`
|
|
54
|
+
- Bundles endpoint metadata for `list`, `schema`, `example`, and `search-api`
|
|
55
|
+
- `search-api` defaults to JSON output; use `--text` for a human-readable summary
|
|
42
56
|
- Prints the API response `data` field as formatted JSON
|
package/bin/investoday-api.js
CHANGED
|
File without changes
|