get_possible_quantity¶
- TossSimpleOverseasStock.get_possible_quantity(ticker: str, price: Decimal | None = None) Dict[source]¶
주문 가능한 최대 수량과 금액을 조회합니다. (매매 수수료를 포함한 총비용 기준, 정수 수량만)
- Parameters:
ticker (str) – 조회할 자산의 티커(symbol)
price (Decimal) – 조회할 가격. 지정하지 않으면 현재 가격을 사용.
- Returns:
주문 가능한 수량 및 금액 정보
currency (str): 거래 통화 코드 (“USD”)
possible_amount (Decimal): 주문 가능한 금액
quantity (int): 주문 가능한 최대 정수 수량 (수수료 반영)
price (Decimal): 계산 기준 단가
- Return type:
dict
- Raises:
ValueError – 현재가 조회 실패 또는 가격이 유효하지 않은 경우