mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 19:04:15 +08:00
feat(data-source): expose custom source timeout & request param names in UI
- backend: pass timeout through DatasetConfigIn / _config_to_dict / _sanitize_dataset (previously a hand-set YAML timeout was silently wiped on UI save, resetting to 30s) - frontend: add per-dataset timeout input; collapsible 请求参数字段映射 with symbols/start/end_param (non-realtime) + asset_type/freq_param (minute); rename 字段映射 -> 响应参数字段映射; chevron at title end; realtime empty-state hint - test: timeout config round-trip (custom value persists, default 30 not emitted) - docs: document timeout in custom-data-source.md
This commit is contained in:
@@ -149,6 +149,16 @@ freq_param: period
|
||||
|
||||
配置后,分钟请求会分别传入 `stock` / `etf` / `index` 和 `1m`;留空时不向上游发送这两个参数,以兼容已有数据源。
|
||||
|
||||
### 请求超时
|
||||
|
||||
每个数据集可单独配置请求超时(秒),默认 30:
|
||||
|
||||
```yaml
|
||||
timeout: 60
|
||||
```
|
||||
|
||||
留空或省略时用默认 30 秒;该值对数据同步与「试拉测试」均生效。在设置页编辑数据源时可在「超时」输入框修改(与 批量 / RPM / 响应路径 同行)。
|
||||
|
||||
## 鉴权
|
||||
|
||||
支持三种简单鉴权:
|
||||
|
||||
Reference in New Issue
Block a user