Files
python-tools/NdxDailyReport/config.example.yaml
T

46 lines
1.5 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
# curl 经代理访问时默认使用 HTTP/1.1,并对瞬时网络错误重试 2 次。
curl_http1_1: true
curl_retry_count: 2
curl_retry_delay_seconds: 1
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