tofulim / auto_trade

소소한 재테크를 위한 python 기반 자동매매
MIT License
1 stars 0 forks source link

Airflow process 개발 #15

Open tofulim opened 2 months ago

tofulim commented 2 months ago

dags

tofulim commented 1 month ago
  1. daily dag(00:00) - token 갱신 (db에 업로드하면 안됨..)
  2. daily dag(07:40 장외 사전) - portfolio 내 종목들 확인
    • 경향 확인
    • 매수 타이밍일 때
    • 잔액(예수금) 확인 후 구매
    • 매도 타이밍일 때
    • 판매
    • 매수 & 매도에서는 portfolio의 accum_asset 금액을 차감하거나 더한다.
  3. 한투 자동이체날 예수금을 accum_asset에 ratio에 맞게 분배해주는 것
tofulim commented 4 days ago

전제조건

모든 DAG에서 수행하는 DB작업은 HTTP request를 통해 이뤄져야 한다. 그걸 위해 FastAPI Server가 있는 것이고 asset과 portfolio table의 CRUD를 구현해 놓은 것임