feat: 해외주식 지정가 버퍼 최적화 BUY +0.2% / SELL -0.2% (#211) #230
Reference in New Issue
Block a user
Delete Branch "feature/issue-211-overseas-limit-price-policy"
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
current_price × 1.005→current_price × 1.002(+0.5% → +0.2%)current_price→current_price × 0.998(±0% → -0.2%)변경 이유
BUY 버퍼 축소 (0.5% → 0.2%)
기존 0.5% 버퍼는 VTS 제약("KIS VTS only accepts limit orders") 때문에 설정된 값이었음. 연구에 따르면:
SELL 버퍼 추가 (-0.2%)
기존에는
current_price를 그대로 지정가로 사용했으나 문제가 있음:-0.2%적용 시 bid가 last_price 아래인 구간에서도 체결 보장.테스트
test_overseas_buy_order_uses_limit_price: 1.005 → 1.002 업데이트 (회귀 테스트)test_overseas_sell_order_uses_limit_price_below_current: 신규 추가관련 이슈