-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
41 lines (36 loc) · 1.24 KB
/
config.example.yaml
File metadata and controls
41 lines (36 loc) · 1.24 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
server:
host: "0.0.0.0"
port: 9090
storage:
# Optional (빈 값이면 기본 경로 사용)
# token_dir 기본값: <project-root>/.krsec/tokens
# order_context_dir 기본값: ~/.krsec/orders
token_dir: ".krsec/tokens"
order_context_dir: ".krsec/orders"
# enum-like guide
# - broker: ["kis", "kiwoom"] # currently supported (strict)
# - sandbox: [true, false]
# - account_id format:
# - kis: "12345678-01" (recommended), "12345678" (also accepted -> normalized to -01)
# - kiwoom: "1234567890" (10 digits)
accounts:
- name: "메인계좌"
broker: "kis" # expected: "kis"
sandbox: false # true = 모의투자, false = 실전투자
app_key: "YOUR_KIS_APP_KEY"
app_secret: "YOUR_KIS_APP_SECRET"
account_id: "12345678-01"
- name: "서브계좌"
broker: "kis" # expected: "kis"
sandbox: false
app_key: "YOUR_KIS_APP_KEY"
app_secret: "YOUR_KIS_APP_SECRET"
account_id: "87654321-01"
- name: "키움계좌"
broker: "kiwoom" # expected: "kiwoom"
sandbox: false
app_key: "YOUR_KIWOOM_APP_KEY"
app_secret: "YOUR_KIWOOM_APP_SECRET"
account_id: "1234567890"
# 같은 증권사라도 계좌별로 별도 설정 가능
# app_key/app_secret이 같으면 동일하게 입력해도 됨