auto: 일일 백업 2026-07-31 02:00
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -684,6 +684,11 @@ def get_open_orders(account_label: str, code: str = '',
|
||||
'order_price': _to_int(it.get('ord_pric')),
|
||||
'unfilled_qty': _to_int(it.get('oso_qty')),
|
||||
'order_type': (it.get('trde_tp') or '').strip(),
|
||||
# 스톱지정가(trde_tp=28) 주문의 조건단가. 일반 주문은 0.
|
||||
# 실측 확인: ka10075 응답에 stop_pric 로 실려 온다 (2026-07-30).
|
||||
'stop_price': _to_int(it.get('stop_pric')),
|
||||
# 현재가 — 조건단가까지 얼마 남았는지 계산용. 부호 포함 문자열('-4805')이라 abs.
|
||||
'cur_price': abs(_to_int(it.get('cur_prc'))),
|
||||
'exchange': (it.get('stex_tp_txt') or '').strip(),
|
||||
'exchange_code': ex_code,
|
||||
'routing_suffix': _EXCHANGE_CODE_TO_SUFFIX.get(ex_code, ''),
|
||||
|
||||
Reference in New Issue
Block a user