update_order#
- TradingBroker.update_order(org_order_no: str, order_type: OrderType, price: int | Decimal, quantity: int = 0)[source]#
기존 주문을 수정합니다.
- Parameters:
org_order_no (str) – 원래 주문 번호
order_type (OrderType) – 변경할 주문 타입
price (int) – 변경할 주문 가격
quantity (int, optional) – 변경할 주문 수량 (기본값: 0, 전량)
- Returns:
새로 생성된 주문 번호
- Return type:
str
- Raises:
NotImplementedError – 이 메서드는 구체적인 하위 클래스에서 구현되어야 합니다.
ValueError – 잘못된 주문 정보가 제공된 경우
Exception – 원래 주문을 찾을 수 없는 경우