792922e06f
新增 Nasdaq quote API 完整收盘校验:当 marketStatus 仍为 Open,或 lastTradeTimestamp 早于美东常规收盘时间 16:00 时,不再视为完整收盘数据,也不会提前推进 lastNewDataReportedDate。 盘中未完整数据现在会静默结束并写入 runtime log,不再 fallback 到 FRED,避免北京时间周五夜间误记录盘中数据,确保北京时间周六 08:00 能按新数据报告规则推送美东周五收盘。 新增 curl 网络后端和 transport:auto 策略:显式 HTTPS 代理或检测到环境代理时默认使用 curl,绕开 urllib 对代理 CONNECT 的兼容问题;示例配置仅保留代理占位,不提交真实代理账号密码。
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
paths:
|
|
state_file: ndx-daily-report-state.json
|
|
delivery_log_file: ndx-daily-report-delivery-log.jsonl
|
|
runtime_log_file: ndx-daily-report-runtime.log
|
|
|
|
nasdaq:
|
|
quote_api: https://api.nasdaq.com/api/quote/NDX/info?assetclass=index
|
|
fred_csv: https://fred.stlouisfed.org/graph/fredgraph.csv?id=NASDAQ100
|
|
request_timeout_seconds: 15
|
|
|
|
network:
|
|
# true 表示允许检测 HTTP_PROXY/HTTPS_PROXY 或系统代理。
|
|
# transport: auto 检测到环境代理时会默认改用 curl,避免 urllib 自己处理 CONNECT。
|
|
use_environment_proxy: true
|
|
# 可选。直连超时时可显式指定代理;真实账号密码不要提交到仓库。
|
|
proxy_url: ""
|
|
# auto 会在 https 代理或环境代理场景下使用 curl。
|
|
transport: auto
|
|
|
|
qqbot:
|
|
appid: "用户填写"
|
|
appkey: "用户填写"
|
|
token_api: https://bots.qq.com/app/getAppAccessToken
|
|
base_api: https://api.sgroup.qq.com
|
|
|
|
# c2c 表示私聊,group 表示群聊
|
|
target_type: "c2c"
|
|
|
|
# 可选。为空时脚本会尝试从本地 QQBot/Hermes 日志中自动发现。
|
|
target_openid: ""
|
|
|
|
# 自动发现 openid 时的等待时间
|
|
auto_discover_timeout_seconds: 60
|
|
|
|
# 自动发现成功后是否写回 config.yaml
|
|
save_discovered_target: true
|
|
|
|
report:
|
|
timezone_trade: America/New_York
|
|
timezone_delivery: Asia/Shanghai
|
|
replay_on_weekdays: true
|