-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
61 lines (51 loc) · 1.84 KB
/
Copy pathconfig.yaml
File metadata and controls
61 lines (51 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ============================================================
# A股选股程序 - 配置文件
# ============================================================
# 默认使用的内置策略名称
# 可选: value_bluechip, growth_momentum, oversold_rebound, high_dividend, volume_breakout
default_strategy: "value_bluechip"
# 是否排除 ST / *ST / 退市股
exclude_st: true
# 是否排除停牌股(成交量为0)
exclude_suspended: true
# 结果排序字段(留空则不排序)
# 可选字段: price, change_pct, volume, amount, turnover_rate, pe_ttm, pb, total_mv, circ_mv
sort_by: "total_mv"
# 排序方向: true=升序, false=降序
ascending: false
# 最多返回多少只股票(0 表示不限制)
top_n: 50
# -----------------------------------------------------------
# 自定义筛选条件(若不为空则覆盖 default_strategy)
# 格式: [{field: 字段名, operator: 运算符, value: 值, description: 描述}, ...]
#
# 可用字段:
# code, name, price, change_pct, change, volume, amount,
# amplitude, high, low, open, pre_close, volume_ratio,
# turnover_rate, pe_ttm, pb, total_mv, circ_mv,
# change_pct_60d, change_pct_ytd
#
# 可用运算符: >, >=, <, <=, ==, !=, between
# between 的 value 为 [下界, 上界]
# -----------------------------------------------------------
custom_conditions: []
# 示例:
# custom_conditions:
# - field: "pe_ttm"
# operator: "between"
# value: [5, 25]
# description: "市盈率 5~25"
# - field: "pb"
# operator: "<"
# value: 3.0
# description: "市净率 < 3"
# - field: "total_mv"
# operator: ">="
# value: 10000000000
# description: "总市值 >= 100亿"
# 日志级别: DEBUG, INFO, WARNING, ERROR
log_level: "INFO"
# 输出格式: table, csv, json
output_format: "table"
# CSV/JSON 输出文件路径(留空则输出到终端)
output_file: ""