브랜치 분리 방식: A / B / C
A 선택 시 커밋 메시지: 위 초안 OK / 수정 / 직접 작성 작업 시점: 지금 / 운영 데이터 1~2일 쌓고 / 주말
This commit is contained in:
23
kiwwom_trader/run.py
Normal file
23
kiwwom_trader/run.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
# kiwwom_trader/run.py
|
||||
# 진입점. 폴더를 /home/hoon 밑으로 옮겨도 KIWOOM_TRADER_ROOT / KIS_BOT_PATH 로 동작.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
# 이 파일이 있는 디렉터리를 먼저 path에 넣어 같은 폴더의 config 로드
|
||||
_run_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
if _run_dir not in sys.path:
|
||||
sys.path.insert(0, _run_dir)
|
||||
|
||||
import config # noqa: F401
|
||||
|
||||
config.load_dotenv()
|
||||
|
||||
def main():
|
||||
from scalping_bot import ScalpingBotKiwoom
|
||||
bot = ScalpingBotKiwoom()
|
||||
bot.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user