create_order

TossSimpleOverseasStock.create_order(ticker: str, side: OrderSide, quantity: int | Decimal, order_type: OrderType, price: Decimal = Decimal('0'), confirm_high_value_order: bool = True) str[source]

주문을 생성합니다.

Parameters:
  • ticker (str) – 티커(symbol)

  • side (OrderSide) – 주문 방향

  • quantity (int|Decimal) – 주문 수량. 소수점 수량은 시장가 매도(MARKET+SELL)에만 허용.

  • order_type (OrderType) – 주문 유형 (LIMIT/MARKET 만 지원)

  • price (Decimal) – 주문 가격 (지정가 주문일 경우에만 필요)

  • confirm_high_value_order (bool) – 고액(1억원 상당 이상) 주문 확인 플래그

Returns:

주문 번호

Return type:

str

Raises:

ValueError – 지원하지 않는 주문 유형/수량/가격인 경우