get_possible_quantity#

KISSimpleOverseasStock.get_possible_quantity(ticker: str, price: Decimal | None = None) Dict[source]#

특정 티커에 대해 지정된 가격으로 주문 가능한 최대 수량과 금액을 조회합니다.

Parameters:
  • ticker (str) – 조회할 자산의 티커(symbol).

  • price (Optional[Decimal], optional) – 조회할 가격. 지정하지 않으면 현재 가격을 사용. 기본값은 None.

Returns:

주문 가능한 수량 및 금액 정보.
  • currency (str): 거래 통화 코드.

  • possible_amount (Decimal): 주문 가능한 금액.

  • quantity (int): 주문 가능한 최대 수량.

  • price (Decimal): 조회된 가격.

Return type:

dict

Raises:

ValueError – 유효하지 않은 티커나 지원되지 않는 거래소인 경우 발생.