-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
59 lines (52 loc) · 2 KB
/
Copy pathconfig.example.yaml
File metadata and controls
59 lines (52 loc) · 2 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
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", "ls", "toss"] # currently supported (strict)
# - sandbox: [true, false]
# - account_id format:
# - kis: "12345678-01" (recommended), "12345678" (also accepted -> normalized to -01)
# - kiwoom: "1234567890" (10 digits)
# - ls: arbitrary non-empty selector, for example "ls-main"
# - toss: arbitrary local selector, for example "toss-main"
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"
- name: "LS계좌"
broker: "ls" # expected: "ls"
sandbox: false
app_key: "YOUR_LS_APP_KEY"
app_secret: "YOUR_LS_APP_SECRET"
account_id: "ls-main"
# mac_address: "YOUR_MAC_ADDRESS" # required only for LS accounts that need the mac_address header
- name: "토스계좌"
broker: "toss" # expected: "toss"
sandbox: false # Toss Open API currently documents production only
app_key_env: "TOSSINVEST_CLIENT_ID"
app_secret_env: "TOSSINVEST_CLIENT_SECRET"
account_id: "toss-main" # local krsec selector
account_seq: "1" # X-Tossinvest-Account value from GET /api/v1/accounts
# 같은 증권사라도 계좌별로 별도 설정 가능
# app_key/app_secret이 같으면 동일하게 입력해도 됨