Reference in New Issue
Block a user
Delete Branch "feature/issue-264-265-overseas-cash-and-open-position"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
frcr_dncl_amt_2필드가 TTTS3012R output2에 존재하지 않아 해외 매수 현금이 항상 0.00으로 산출되는 버그 수정 —해외주식 매수가능금액조회API(TTTS3007R/VTTS3007R)로 교체,ord_psbl_frcr_amt필드 사용get_open_position()이 HOLD 레코드를 최신 레코드로 인식해 BUY 포지션 반환 실패 수정 —AND action IN ('BUY', 'SELL')필터 추가로 HOLD 레코드 제외변경 파일
src/broker/overseas.py—get_overseas_buying_power()메서드 추가 (TTTS3007R/VTTS3007R)src/main.py— trading_cycle() 및 daily cycle 해외 cash 조회 로직 교체src/db.py—get_open_position()쿼리에 action IN ('BUY', 'SELL') 필터 추가tests/test_main.py— 해외 브로커 mock에get_overseas_buying_powerAsyncMock 추가,frcr_dncl_amt_2제거Test plan
🤖 Generated with Claude Code