update_order¶
- TossSimpleDomesticStock.update_order(org_order_no: str, order_type: OrderType, price: int, quantity: int = 0, stop_price: int = 0, exchange: OrderExchange = OrderExchange.KRX) str[source]¶
주문을 정정합니다.
Note
새 주문 ID가 발급되고 원주문은 REPLACED 상태가 됩니다. 새 주문으로 원주문을 조회할 수 없으니 체인 추적이 필요하면 반환된 주문 ID를 직접 보관하세요.
- Parameters:
org_order_no (str) – 원주문번호
order_type (OrderType) – 주문 유형 (LIMIT/MARKET 만 지원)
price (int) – 정정 가격
quantity (int) – 정정 수량 (0이면 원주문의 미체결 수량 전체)
stop_price (int) – 미지원 - 0 이외의 값이면 ValueError
exchange (OrderExchange) – 미지원
- Returns:
주문 번호 (새로 발급된 주문 ID)
- Return type:
str