TossDomesticStock

class pyqqq.brokerage.toss.domestic_stock.TossDomesticStock(auth: TossAuth)[source]

Bases: object

토스증권 국내주식 API

4xx 에러는 재시도 없이 requests.HTTPError 로 즉시 발생하며, e.response.json()["error"]["code"] 로 에러를 구분할 수 있다. 200 응답에 에러 envelope 이 담긴 경우는 ValueError 가 발생한다.

__init__(auth: TossAuth)[source]

메서드

__init__

cancel_order

주문 취소

create_order

주문 생성

get_accounts

계좌 목록 조회

get_buying_power

매수 가능 금액 조회

get_candles

캔들(차트) 데이터 조회

get_commissions

거래 수수료 조회

get_exchange_rate

환율 조회

get_holdings

보유 주식 조회

get_market_calendar

시장 운영 일정(개장 시간) 조회

get_order

주문 상세 조회

get_orderbook

호가 조회

get_orders

주문 내역 조회

get_price_limits

상/하한가 조회

get_prices

현재가 조회

get_sellable_quantity

매도 가능 수량 조회

get_stock_warnings

종목 투자유의(매수 주의) 정보 조회

get_stocks

종목 기본 정보 조회

get_trades

최근 체결 내역 조회

modify_order

주문 정정