@investoday/investoday-api 1.8.13 → 1.8.15
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 +3 -0
- package/data/openapi.json +4130 -3464
- package/lib/call-api.js +288 -81
- package/lib/config.js +24 -2
- package/lib/metadata.js +24 -1
- package/lib/update.js +19 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ investoday-api search-api query=股票,基本面分析
|
|
|
48
48
|
investoday-api search-api query=股票 --text
|
|
49
49
|
investoday-api <endpoint> [key=value ...]
|
|
50
50
|
investoday-api <endpoint> --method POST [key=value ...]
|
|
51
|
+
investoday-api <endpoint> --method POST [queryKey=value ...] --body-json '{"bodyKey":[]}'
|
|
51
52
|
```
|
|
52
53
|
|
|
53
54
|
Examples:
|
|
@@ -61,6 +62,7 @@ investoday-api search-api query=股票 --text
|
|
|
61
62
|
investoday-api stock/basic-info stockCode=600519
|
|
62
63
|
investoday-api search key=贵州茅台 type=11
|
|
63
64
|
investoday-api fund/daily-quotes --method POST fundCode=000001 beginDate=2024-01-01 endDate=2024-12-31
|
|
65
|
+
investoday-api industry-quote/realtime-v2 --method POST industryLevel=1 industryType=SW sortColumn=changeRatio order=desc pageSize=10 --body-json '{"industryCodes":[]}'
|
|
64
66
|
```
|
|
65
67
|
|
|
66
68
|
## Background updates
|
|
@@ -119,5 +121,6 @@ investoday-api config remove
|
|
|
119
121
|
- Bundles endpoint metadata for `list` and `search-api`
|
|
120
122
|
- `search-api` defaults to JSON output and includes params, response fields, and `exampleCommand`; use `--text` for a human-readable summary
|
|
121
123
|
- `search-api` only accepts structured inputs such as `query=` and `tool_ids=`; `query=` accepts one value and supports comma-separated keywords
|
|
124
|
+
- For POST endpoints with JSON body parameters, pass query parameters as `key=value` and pass body parameters with `--body-json`
|
|
122
125
|
- Background update settings are stored in the local JSON config and can be inspected with `investoday-api update status`
|
|
123
126
|
- Prints the API response `data` field as formatted JSON
|